/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_clients_manager.cpp | 144 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 D | sensor_clients_manager.h | 46 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 D | sensor_if_service.cpp | 255 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 D | sensor_if_service.h | 41 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 D | sensor_client_info.h | 46 int32_t samplingInterval;
member
|
/drivers/peripheral/sensor/test/unittest/dump/ |
H A D | hdf_sensor_dump_test.cpp | 62 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 D | isensor_interface_vdi.h | 62 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 D | sensor_device_if.h | 17 int32_t (*SetBatch)(int64_t samplingInterval, int64_t reportInterval);
|
/drivers/peripheral/sensor/interfaces/include/ |
H A D | sensor_if.h | 103 * @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 D | sensor_impl.h | 39 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
|
H A D | sensor_impl.cpp | 197 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 D | hdf_sensor_test.c | 143 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 D | sensor_controller.c | 309 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 D | sensor_device_manager.c | 183 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 D | sensor_gas_driver.c | 171 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 D | sensor_pedometer_driver.c | 165 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 D | sensor_magnetic_driver.c | 162 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 D | sensor_proximity_driver.c | 161 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 D | sensor_ppg_driver.c | 147 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 D | sensor_accel_driver.c | 187 static int32_t SetAccelBatch(int64_t samplingInterval, int64_t interval) in SetAccelBatch() argument 196 drvData->interval = samplingInterval; in SetAccelBatch()
|
H A D | sensor_gravity_driver.c | 166 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 D | sensor_barometer_driver.c | 162 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 D | sensor_humidity_driver.c | 162 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 D | sensor_gyro_driver.c | 162 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 D | sensor_temperature_driver.c | 164 static int32_t SetTemperatureBatch(int64_t samplingInterval, int64_t interval) in SetTemperatureBatch() argument 173 drvData->interval = samplingInterval; in SetTemperatureBatch()
|