Home
last modified time | relevance | path

Searched refs:samplingInterval (Results 1 - 25 of 48) sorted by relevance

12

/base/sensors/sensor/frameworks/native/src/
H A Dnative_sensor.cpp193 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 Daudio_parsing.cpp148 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 Dark_sensor_adapter_wrapper.cpp53 int32_t ArkSensorAdapterWrapper::SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) in SubscribeOhosSensor() argument
55 return ctocpp_->SubscribeOhosSensor(sensorTypeId, samplingInterval); in SubscribeOhosSensor()
H A Dark_sensor_adapter_wrapper.h34 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_sensor_adapter_impl.cpp53 int32_t ArkSensorAdapterImpl::SubscribeOhosSensor(int32_t type, int64_t samplingInterval) in SubscribeOhosSensor() argument
55 return real_->SubscribeOhosSensor(type, samplingInterval); in SubscribeOhosSensor()
H A Dark_sensor_adapter_impl.h39 int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) override;
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/hardware/src/
H A Dhdi_service_impl.cpp114 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 Dsensor_agent.c44 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 Dsensor_agent_client.c65 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 Dsensoradapter_fuzz.cpp50 int64_t samplingInterval = 1000; in SensorAdapterFuzzTest() local
56 sensorAdapterImpl.SubscribeOhosSensor(sensorTypeId, samplingInterval); in SensorAdapterFuzzTest()
/base/sensors/sensor/vibration_convert/core/native/include/
H A Daudio_parsing.h36 int32_t GetAudioData(int32_t samplingInterval, AudioData &audioData) const;
/base/sensors/sensor/frameworks/native/include/
H A Dnative_sensor_impl.h37 int64_t samplingInterval = -1; member
/base/sensors/sensor_lite/interfaces/kits/native/include/
H A Dsensor_agent.h91 * @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 Dmedical_native_impl.h88 * @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 Dsensor_hdi_connection.cpp89 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 Doh_sensor_type.h438 * @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 Dcompatible_connection.h32 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
/base/sensors/sensor/services/hdi_connection/hardware/include/
H A Dhdi_service_impl.h34 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval);
/base/sensors/sensor/services/hdi_connection/interface/include/
H A Di_sensor_hdi_connection.h34 virtual int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) = 0;
/base/sensors/sensor/interfaces/inner_api/
H A Dsensor_agent.h88 * @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 Dsensor_agent_proxy.h43 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 Dsensor_adapter.h57 virtual int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) = 0;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_sensor_adapter.h52 virtual int32_t SubscribeOhosSensor(int32_t sensorTypeId, int64_t samplingInterval) = 0;
/base/sensors/sensor/services/hdi_connection/hardware/src/
H A Dhdi_service_impl.cpp286 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 Dcompatible_connection.h38 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;

Completed in 9 milliseconds

12