/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 152 it->second.reportInterval = reportInterval <= it->second.reportInterval ? reportInterval
in UpdateSensorConfig() 153 : it->second.reportInterval;
in UpdateSensorConfig() 155 BestSensorConfig config = {samplingInterval, reportInterval};
in UpdateSensorConfig() 160 void SensorClientsManager::UpdateSdcSensorConfig(int sensorId, int64_t samplingInterval, int64_t reportInterval)
in UpdateSdcSensorConfig() argument 168 it->second.reportInterval = reportInterval < 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);
93 int64_t reportInterval;
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 259 reportInterval is [%{public}" PRId64 "].", __func__, sensorId, samplingInterval, reportInterval); in SetBatch() 263 int32_t ret = SetBatchSenior(serviceId, sensorId, SA, samplingInterval, reportInterval); in SetBatch() 272 int64_t reportInterval) in SetBatchSenior() 275 std::to_string(mode) + "samplingInterval " + std::to_string(samplingInterval) + "reportInterval " + in SetBatchSenior() 276 std::to_string(reportInterval)); in SetBatchSenior() 278 "[%{public}" PRId64 "], reportInterval is [%{public}" PRId64 "].", __func__, serviceId, sensorId, mode, in SetBatchSenior() 279 samplingInterval, reportInterval); in SetBatchSenior() 284 SensorClientsManager::GetInstance()->SetClientSenSorConfig(sensorId, serviceId, samplingInterval, reportInterval); in SetBatchSenior() 271 SetBatchSenior(int32_t serviceId, int32_t sensorId, int32_t mode, int64_t samplingInterval, int64_t reportInterval) SetBatchSenior() argument 323 SetDelay(int32_t sensorId, int64_t &samplingInterval, int64_t &reportInterval) SetDelay() argument 701 int64_t reportInterval = REPORT_INTERVAL; SetSdcSensor() local [all...] |
H A D | sensor_if_service.h | 41 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override; 43 int64_t reportInterval); 68 int32_t SetDelay(int32_t sensorId, int64_t &samplingInterval, int64_t &reportInterval);
|
H A D | sensor_client_info.h | 47 int32_t reportInterval;
member
|
H A D | sensor_hdi_dump.cpp | 186 sensorInfoData += "reportInterval=" + std::to_string(bestSensorConfig.reportInterval);
201 sensorInfoData += "reportInterval=" + std::to_string(sensorConfig.reportInterval) + ",";
|
/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 | 104 * @param reportInterval Indicates the sensor data reporting interval, 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 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/model/sensor/driver/common/src/ |
H A D | sensor_device_manager.c | 184 int64_t reportInterval; in SetBatch() local 191 if (!HdfSbufReadInt64(data, &samplingInterval) || !HdfSbufReadInt64(data, &reportInterval)) { in SetBatch() 196 return deviceInfo->ops.SetBatch(samplingInterval, reportInterval); in SetBatch()
|