Home
last modified time | relevance | path

Searched refs:reportInterval (Results 1 - 13 of 13) sorted by relevance

/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
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 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);
93 int64_t reportInterval; member
H A Dsensor_if_service.cpp255 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 Dsensor_if_service.h41 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 Dsensor_client_info.h47 int32_t reportInterval; member
H A Dsensor_hdi_dump.cpp186 sensorInfoData += "reportInterval=" + std::to_string(bestSensorConfig.reportInterval);
201 sensorInfoData += "reportInterval=" + std::to_string(sensorConfig.reportInterval) + ",";
/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.h104 * @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 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
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 Dsensor_device_manager.c184 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()

Completed in 6 milliseconds