Home
last modified time | relevance | path

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

12

/drivers/peripheral/sensor/hdi_service/
H A Dsensor_clients_manager.cpp144 void SensorClientsManager::UpdateSensorConfig(int sensorId, int64_t samplingInterval, int64_t reportInterval) in UpdateSensorConfig() argument
150 it->second.samplingInterval = samplingInterval <= it->second.samplingInterval ? samplingInterval in UpdateSensorConfig()
151 : it->second.samplingInterval; in UpdateSensorConfig()
155 BestSensorConfig config = {samplingInterval, reportInterval}; in UpdateSensorConfig()
160 void SensorClientsManager::UpdateSdcSensorConfig(int sensorId, int64_t samplingInterval, int64_t reportInterval) in UpdateSdcSensorConfig() argument
166 it->second.samplingInterval = samplingInterval < in UpdateSdcSensorConfig()
176 UpdateClientPeriodCount(int sensorId, int64_t samplingInterval, int64_t reportInterval) UpdateClientPeriodCount() argument
208 SetSensorBestConfig(int sensorId, int64_t &samplingInterval, int64_t &reportInterval) SetSensorBestConfig() argument
226 SetSdcSensorBestConfig(int sensorId, int64_t &samplingInterval, int64_t &reportInterval) SetSdcSensorBestConfig() argument
245 GetSensorBestConfig(int sensorId, int64_t &samplingInterval, int64_t &reportInterval) GetSensorBestConfig() argument
392 SetClientSenSorConfig(int32_t sensorId, int32_t serviceId, int64_t samplingInterval, int64_t &reportInterval) SetClientSenSorConfig() argument
[all...]
H A Dsensor_clients_manager.h46 void SetSensorBestConfig(int sensorId, int64_t &samplingInterval, int64_t &reportInterval);
47 void SetSdcSensorBestConfig(int sensorId, int64_t &samplingInterval, int64_t &reportInterval);
48 void GetSensorBestConfig(int sensorId, int64_t &samplingInterval, int64_t &reportInterval);
64 void UpdateSensorConfig(int sensorId, int64_t samplingInterval, int64_t reportInterval);
65 void UpdateSdcSensorConfig(int sensorId, int64_t samplingInterval, int64_t reportInterval);
74 void SetClientSenSorConfig(int32_t sensorId, int32_t serviceId, int64_t samplingInterval, int64_t &reportInterval);
76 void UpdateClientPeriodCount(int sensorId, int64_t samplingInterval, int64_t reportInterval);
92 int64_t samplingInterval; member
H A Dsensor_if_service.cpp255 int32_t SensorIfService::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() argument
258 HDF_LOGD("%{public}s: sensorId is %{public}d, samplingInterval is [%{public}" PRId64 "], \ in SetBatch()
259 reportInterval is [%{public}" PRId64 "].", __func__, sensorId, samplingInterval, reportInterval); in SetBatch()
263 int32_t ret = SetBatchSenior(serviceId, sensorId, SA, samplingInterval, reportInterval); in SetBatch()
271 int32_t SensorIfService::SetBatchSenior(int32_t serviceId, int32_t sensorId, int32_t mode, int64_t samplingInterval, in SetBatchSenior() argument
275 std::to_string(mode) + "samplingInterval " + std::to_string(samplingInterval) + "reportInterval " + in SetBatchSenior()
277 HDF_LOGI("%{public}s: serviceId is %{public}d, sensorId is %{public}d, mode is %{public}d, samplingInterval is " in SetBatchSenior()
279 samplingInterval, reportInterval); in SetBatchSenior()
284 SensorClientsManager::GetInstance()->SetClientSenSorConfig(sensorId, serviceId, samplingInterval, reportInterva in SetBatchSenior()
323 SetDelay(int32_t sensorId, int64_t &samplingInterval, int64_t &reportInterval) SetDelay() argument
700 int64_t samplingInterval = rateLevel == REPORT_INTERVAL ? REPORT_INTERVAL : COMMON_REPORT_FREQUENCY / rateLevel; SetSdcSensor() local
[all...]
H A Dsensor_if_service.h41 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
42 int32_t SetBatchSenior(int32_t serviceId, int32_t sensorId, int32_t mode, int64_t samplingInterval,
68 int32_t SetDelay(int32_t sensorId, int64_t &samplingInterval, int64_t &reportInterval);
H A Dsensor_client_info.h46 int32_t samplingInterval; member
/drivers/peripheral/sensor/test/unittest/dump/
H A Dhdf_sensor_dump_test.cpp62 void SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval);
121 void HdfSensorDumpTest::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() argument
124 SensorClientsManager::GetInstance()->SetClientSenSorConfig(sensorId, g_serviceId, samplingInterval, reportInterval); in SetBatch()
125 SensorClientsManager::GetInstance()->UpdateSensorConfig(sensorId, samplingInterval, reportInterval); in SetBatch()
126 SensorClientsManager::GetInstance()->UpdateClientPeriodCount(sensorId, samplingInterval, reportInterval); in SetBatch()
/drivers/peripheral/sensor/interfaces/v1_0/
H A Disensor_interface_vdi.h62 virtual int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) = 0;
68 virtual int32_t SetSaBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetSaBatch() argument
/drivers/hdf_core/framework/model/sensor/driver/include/
H A Dsensor_device_if.h17 int32_t (*SetBatch)(int64_t samplingInterval, int64_t reportInterval);
/drivers/peripheral/sensor/interfaces/include/
H A Dsensor_if.h103 * @param samplingInterval Indicates the sensor data sampling interval to set, in nanoseconds.
110 int32_t (*SetBatch)(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval);
/drivers/peripheral/sensor/hdi_impl/
H A Dsensor_impl.h39 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
H A Dsensor_impl.cpp197 int32_t SensorImpl::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() argument
199 HDF_LOGI("%{public}s: sensorId is %{public}d, samplingInterval is [%{public}" PRId64 "], \ in SetBatch()
200 reportInterval is [%{public}" PRId64 "].", __func__, sensorId, samplingInterval, reportInterval); in SetBatch()
207 int32_t ret = sensorInterface->SetBatch(sensorId, samplingInterval, reportInterval); in SetBatch()
/drivers/hdf_core/framework/test/unittest/sensor/
H A Dhdf_sensor_test.c143 static int32_t SensorSetBatchTest(int64_t samplingInterval, int64_t interval) in SensorSetBatchTest() argument
150 drvData->interval = samplingInterval; in SensorSetBatchTest()
/drivers/peripheral/sensor/hal/src/
H A Dsensor_controller.c309 static int32_t SetSensorBatch(int32_t sensorId, int64_t samplingInterval, int64_t interval) in SetSensorBatch() argument
316 if (samplingInterval < 0) { in SetSensorBatch()
317 HDF_LOGE("%{public}s: invalid param , samplingInterval is [%{public}" PRId64 "]", __func__, samplingInterval); in SetSensorBatch()
330 if (!HdfSbufWriteInt32(msg, SENSOR_OPS_IO_CMD_SET_BATCH) || !HdfSbufWriteInt64(msg, samplingInterval) || in SetSensorBatch()
/drivers/hdf_core/framework/model/sensor/driver/common/src/
H A Dsensor_device_manager.c183 int64_t samplingInterval; in SetBatch() local
191 if (!HdfSbufReadInt64(data, &samplingInterval) || !HdfSbufReadInt64(data, &reportInterval)) { in SetBatch()
196 return deviceInfo->ops.SetBatch(samplingInterval, reportInterval); in SetBatch()
/drivers/hdf_core/framework/model/sensor/driver/gas/
H A Dsensor_gas_driver.c171 static int32_t SetGasBatch(int64_t samplingInterval, int64_t interval) in SetGasBatch() argument
180 drvData->interval = samplingInterval; in SetGasBatch()
/drivers/hdf_core/framework/model/sensor/driver/pedometer/
H A Dsensor_pedometer_driver.c165 static int32_t SetPedometerBatch(int64_t samplingInterval, int64_t interval) in SetPedometerBatch() argument
174 drvData->interval = samplingInterval; in SetPedometerBatch()
/drivers/hdf_core/framework/model/sensor/driver/magnetic/
H A Dsensor_magnetic_driver.c162 static int32_t SetMagneticBatch(int64_t samplingInterval, int64_t interval) in SetMagneticBatch() argument
171 drvData->interval = samplingInterval; in SetMagneticBatch()
/drivers/hdf_core/framework/model/sensor/driver/proximity/
H A Dsensor_proximity_driver.c161 static int32_t SetProximityBatch(int64_t samplingInterval, int64_t interval) in SetProximityBatch() argument
170 drvData->interval = samplingInterval; in SetProximityBatch()
/drivers/hdf_core/framework/model/sensor/driver/ppg/
H A Dsensor_ppg_driver.c147 static int32_t SetPpgBatch(int64_t samplingInterval, int64_t interval) in SetPpgBatch() argument
153 drvData->interval = samplingInterval; in SetPpgBatch()
/drivers/hdf_core/framework/model/sensor/driver/accel/
H A Dsensor_accel_driver.c187 static int32_t SetAccelBatch(int64_t samplingInterval, int64_t interval) in SetAccelBatch() argument
196 drvData->interval = samplingInterval; in SetAccelBatch()
H A Dsensor_gravity_driver.c166 static int32_t SetGravityBatch(int64_t samplingInterval, int64_t interval) in SetGravityBatch() argument
176 ms = OsalDivS64(samplingInterval, (SENSOR_CONVERT_UNIT * SENSOR_CONVERT_UNIT)); in SetGravityBatch()
/drivers/hdf_core/framework/model/sensor/driver/barometer/
H A Dsensor_barometer_driver.c162 static int32_t SetBarometerBatch(int64_t samplingInterval, int64_t interval) in SetBarometerBatch() argument
171 drvData->interval = samplingInterval; in SetBarometerBatch()
/drivers/hdf_core/framework/model/sensor/driver/humidity/
H A Dsensor_humidity_driver.c162 static int32_t SetHumidityBatch(int64_t samplingInterval, int64_t interval) in SetHumidityBatch() argument
171 drvData->interval = samplingInterval; in SetHumidityBatch()
/drivers/hdf_core/framework/model/sensor/driver/gyro/
H A Dsensor_gyro_driver.c162 static int32_t SetGyroBatch(int64_t samplingInterval, int64_t interval) in SetGyroBatch() argument
171 drvData->interval = samplingInterval; in SetGyroBatch()
/drivers/hdf_core/framework/model/sensor/driver/temperature/
H A Dsensor_temperature_driver.c164 static int32_t SetTemperatureBatch(int64_t samplingInterval, int64_t interval) in SetTemperatureBatch() argument
173 drvData->interval = samplingInterval; in SetTemperatureBatch()

Completed in 17 milliseconds

12