/base/sensors/sensor/frameworks/native/src/ |
H A D | native_sensor.cpp | 193 int64_t samplingInterval = attribute->samplingInterval; in OH_Sensor_Subscribe() local 194 ret = SetBatch(sensorType, sensorUser, samplingInterval, samplingInterval); in OH_Sensor_Subscribe() 281 const int64_t samplingInterval) in OH_SensorSubscriptionAttribute_SetSamplingInterval() 283 if (attribute == nullptr || samplingInterval < 0) { in OH_SensorSubscriptionAttribute_SetSamplingInterval() 287 attribute->samplingInterval = samplingInterval; in OH_SensorSubscriptionAttribute_SetSamplingInterval() 292 int64_t *samplingInterval) in OH_SensorSubscriptionAttribute_GetSamplingInterval() 294 if (attribute == nullptr || samplingInterval in OH_SensorSubscriptionAttribute_GetSamplingInterval() 280 OH_SensorSubscriptionAttribute_SetSamplingInterval(Sensor_SubscriptionAttribute* attribute, const int64_t samplingInterval) OH_SensorSubscriptionAttribute_SetSamplingInterval() argument 291 OH_SensorSubscriptionAttribute_GetSamplingInterval(Sensor_SubscriptionAttribute* attribute, int64_t *samplingInterval) OH_SensorSubscriptionAttribute_GetSamplingInterval() argument [all...] |
/base/sensors/sensor/vibration_convert/core/native/src/ |
H A D | audio_parsing.cpp | 148 int32_t AudioParsing::GetAudioData(int32_t samplingInterval, AudioData &data) const in GetAudioData() argument 156 if (samplingInterval < 0) { in GetAudioData() 160 if (samplingInterval == 0) { in GetAudioData() 162 samplingInterval = dataCount / AUDIO_DATA_MAX_NUMBER; in GetAudioData() 164 samplingInterval = dataCount / AUDIO_DATA_MAX_NUMBER + 1; in GetAudioData() 168 if (i % samplingInterval == 0) { in GetAudioData()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_sensor_adapter_wrapper.cpp | 53 int32_t ArkSensorAdapterWrapper::SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) in SubscribeOhosSensor() argument 55 return ctocpp_->SubscribeOhosSensor(sensorTypeId, samplingInterval); in SubscribeOhosSensor()
|
H A D | ark_sensor_adapter_wrapper.h | 34 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_sensor_adapter_impl.cpp | 53 int32_t ArkSensorAdapterImpl::SubscribeOhosSensor(int32_t type, int64_t samplingInterval) in SubscribeOhosSensor() argument 55 return real_->SubscribeOhosSensor(type, samplingInterval); in SubscribeOhosSensor()
|
H A D | ark_sensor_adapter_impl.h | 39 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
|
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/hardware/src/ |
H A D | hdi_service_impl.cpp | 114 int32_t HdiServiceImpl::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval)
in SetBatch() argument 117 if (samplingInterval < 0 || reportInterval < 0) {
in SetBatch() 118 samplingInterval = SAMPLING_INTERVAL_NS;
in SetBatch() 121 g_samplingInterval = samplingInterval;
in SetBatch()
|
/base/sensors/sensor_lite/frameworks/src/ |
H A D | sensor_agent.c | 44 int32_t SetBatch(int32_t sensorTypeId, SensorUser *user, int64_t samplingInterval, int64_t reportInterval)
in SetBatch() argument 49 return SetBatchByProxy(g_proxy, sensorTypeId, user, samplingInterval, reportInterval);
in SetBatch()
|
H A D | sensor_agent_client.c | 65 int32_t SetBatchByProxy(const void *proxy, int32_t sensorId, const SensorUser *user, int64_t samplingInterval,
in SetBatchByProxy() argument 73 return sensor->SetBatch(sensorId, user, samplingInterval, reportInterval);
in SetBatchByProxy()
|
/base/web/webview/test/fuzztest/ohos_adapter/sensoradapter_fuzzer/ |
H A D | sensoradapter_fuzz.cpp | 50 int64_t samplingInterval = 1000; in SensorAdapterFuzzTest() local 56 sensorAdapterImpl.SubscribeOhosSensor(sensorTypeId, samplingInterval); in SensorAdapterFuzzTest()
|
/base/sensors/sensor/vibration_convert/core/native/include/ |
H A D | audio_parsing.h | 36 int32_t GetAudioData(int32_t samplingInterval, AudioData &audioData) const;
|
/base/sensors/sensor/frameworks/native/include/ |
H A D | native_sensor_impl.h | 37 int64_t samplingInterval = -1; member
|
/base/sensors/sensor_lite/interfaces/kits/native/include/ |
H A D | sensor_agent.h | 91 * @param samplingInterval Indicates the sensor data sampling interval to set, in nanoseconds.
97 int32_t SetBatch(int32_t sensorTypeId, SensorUser *user, int64_t samplingInterval, int64_t reportInterval);
|
/base/sensors/medical_sensor/interfaces/native/include/ |
H A D | medical_native_impl.h | 88 * @param samplingInterval Indicates the sensor data sampling interval to set, in nanoseconds.
94 int32_t SetBatch(int32_t sensorTypeId, const MedicalSensorUser *user, int64_t samplingInterval, int64_t reportInterval);
|
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/interface/src/ |
H A D | sensor_hdi_connection.cpp | 89 int32_t SensorHdiConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() argument 91 int32_t ret = iSensorHdiConnection_->SetBatch(sensorId, samplingInterval, reportInterval); in SetBatch()
|
/base/sensors/sensor/interfaces/kits/c/ |
H A D | oh_sensor_type.h | 438 * @param samplingInterval - Data reporting interval to set, in nanoseconds. 444 const int64_t samplingInterval); 450 * @param samplingInterval - Pointer to the data reporting interval, in nanoseconds. 456 int64_t *samplingInterval);
|
/base/sensors/sensor/services/hdi_connection/adapter/include/ |
H A D | compatible_connection.h | 32 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
|
/base/sensors/sensor/services/hdi_connection/hardware/include/ |
H A D | hdi_service_impl.h | 34 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval);
|
/base/sensors/sensor/services/hdi_connection/interface/include/ |
H A D | i_sensor_hdi_connection.h | 34 virtual int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) = 0;
|
/base/sensors/sensor/interfaces/inner_api/ |
H A D | sensor_agent.h | 88 * @param samplingInterval Indicates the sensor data sampling interval to set, in nanoseconds.
94 int32_t SetBatch(int32_t sensorTypeId, const SensorUser *user, int64_t samplingInterval, int64_t reportInterval);
|
/base/sensors/sensor_lite/frameworks/include/ |
H A D | sensor_agent_proxy.h | 43 int32_t SetBatchByProxy(const void *proxy, int32_t sensorId, const SensorUser *user, int64_t samplingInterval,
|
/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | sensor_adapter.h | 57 virtual int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) = 0;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/ |
H A D | ark_sensor_adapter.h | 52 virtual int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) = 0;
|
/base/sensors/sensor/services/hdi_connection/hardware/src/ |
H A D | hdi_service_impl.cpp | 286 int32_t HdiServiceImpl::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval)
in SetBatch() argument 289 if (samplingInterval < 0 || reportInterval < 0) {
in SetBatch() 290 samplingInterval = SAMPLING_INTERVAL_NS;
in SetBatch() 293 samplingInterval_ = samplingInterval;
in SetBatch()
|
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/adapter/include/ |
H A D | compatible_connection.h | 38 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
|