/drivers/peripheral/sensor/test/benchmarktest/ |
H A D | sensor_benchmark_test.cpp | 154 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME);
in BENCHMARK_F() 191 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME);
in BENCHMARK_F() 211 * @tc.desc: Benchmarktest for interface SetBatch
215 BENCHMARK_F(SensorBenchmarkTest, SetBatch)(benchmark::State &state)
in BENCHMARK_F() 229 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL2, SENSOR_POLL_TIME);
in BENCHMARK_F() 244 BENCHMARK_REGISTER_F(SensorBenchmarkTest, SetBatch)->
263 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME);
in BENCHMARK_F()
|
H A D | sensor_single_interface_benchmark_test.cpp | 98 * @tc.desc: Benchmarktest for interface SetBatch 102 BENCHMARK_F(SensorBenchmarkTest, SetBatch)(benchmark::State &state) in BENCHMARK_F() 105 int32_t ret = g_sensorInterface->SetBatch(g_sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in BENCHMARK_F() 110 BENCHMARK_REGISTER_F(SensorBenchmarkTest, SetBatch)->
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetbatch_fuzzer/ |
H A D | sensorsetbatch_fuzzer.cpp | 28 if (!g_sensorInterface->SetBatch(*(int32_t *)data, (int64_t)(*data), (int64_t)(*data))) { in SensorSetBatchFuzzTest()
|
/drivers/peripheral/sensor/test/unittest/hdi/ |
H A D | hdf_sensor_hdi_test.cpp | 229 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F() 277 ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL2, SENSOR_POLL_TIME); in HWTEST_F() 303 int32_t ret = g_sensorInterface->SetBatch(ABNORMAL_SENSORID, 0, 0); in HWTEST_F() 320 int32_t ret = g_sensorInterface->SetBatch(iter.sensorId, -1, SENSOR_POLL_TIME); in HWTEST_F() 339 int32_t ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F() 388 int32_t ret = g_sensorInterface->SetBatch(iter.sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F() 528 ret = g_sensorInterface->SetBatch(sensorId, SENSOR_INTERVAL1, SENSOR_INTERVAL1); in HWTEST_F() 564 ret = g_sensorInterface->SetBatch(sensorId, SENSOR_INTERVAL3, SENSOR_INTERVAL1); in HWTEST_F() 600 ret = g_sensorInterface->SetBatch(sensorId, SENSOR_INTERVAL4, SENSOR_INTERVAL1); in HWTEST_F()
|
/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); 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() function in HdfSensorDumpTest 185 SetBatch(it.sensorId, g_reportInterval, g_samplingInterval); in HWTEST_F()
|
/drivers/peripheral/sensor/interfaces/include/ |
H A D | sensor_if.h | 110 int32_t (*SetBatch)(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval); member
|
/drivers/peripheral/sensor/test/unittest/common/ |
H A D | hdf_sensor_test.cpp | 355 ret = g_sensorDev->SetBatch(info->sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F() 407 ret = g_sensorDev->SetBatch(info->sensorId, SENSOR_INTERVAL2, SENSOR_POLL_TIME); in HWTEST_F() 432 int32_t ret = g_sensorDev->SetBatch(ABNORMAL_SENSORID, 0, 0); in HWTEST_F() 450 int32_t ret = g_sensorDev->SetBatch(info->sensorId, -1, SENSOR_POLL_TIME); in HWTEST_F() 473 ret = g_sensorDev->SetBatch(info->sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F() 508 int32_t ret = g_sensorDev->SetBatch(ABNORMAL_SENSORID, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F() 528 int32_t ret = g_sensorDev->SetBatch(info->sensorId, SENSOR_INTERVAL1, SENSOR_POLL_TIME); in HWTEST_F()
|
/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() function in OHOS::HDI::Sensor::V1_1::SensorImpl 201 if (sensorInterface == nullptr || sensorInterface->SetBatch == nullptr) { in SetBatch() 206 StartTrace(HITRACE_TAG_SENSORS, "SetBatch"); in SetBatch() 207 int32_t ret = sensorInterface->SetBatch(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;
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_device_manager.c | 181 static int32_t SetBatch(struct SensorDeviceInfo *deviceInfo, struct HdfSBuf *data, struct HdfSBuf *reply) in SetBatch() function 189 CHECK_NULL_PTR_RETURN_VALUE(deviceInfo->ops.SetBatch, HDF_ERR_INVALID_PARAM); in SetBatch() 196 return deviceInfo->ops.SetBatch(samplingInterval, reportInterval); in SetBatch() 263 {SENSOR_OPS_CMD_SET_BATCH, SetBatch}, // SENSOR_CMD_SET_BATCH
|
/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_if_service.h | 41 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
|
/drivers/hdf_core/framework/test/unittest/sensor/ |
H A D | hdf_sensor_test.c | 207 .SetBatch = SensorSetBatchTest, in InitSensorDriverTest()
|
/drivers/peripheral/sensor/test/performance/hdi/ |
H A D | hdf_sensor_hdi_performance_test.cpp | 144 int ret = g_sensorInterface->SetBatch(SENSOR_ID, SENSOR_INTERVAL, SENSOR_POLL_TIME); in HWTEST_F()
|
/drivers/peripheral/sensor/test/performance/common/ |
H A D | hdf_sensor_performance_test.cpp | 166 int ret = g_sensorPerformanceDev->SetBatch(SENSOR_ID, SENSOR_INTERVAL, SENSOR_POLL_TIME); in HWTEST_F()
|
/drivers/hdf_core/framework/model/sensor/driver/gas/ |
H A D | sensor_gas_driver.c | 238 deviceInfo->ops.SetBatch = SetGasBatch; in InitGasOps()
|
/drivers/hdf_core/framework/model/sensor/driver/pedometer/ |
H A D | sensor_pedometer_driver.c | 229 deviceInfo->ops.SetBatch = SetPedometerBatch; in InitPedometerOps()
|
/drivers/hdf_core/framework/model/sensor/driver/magnetic/ |
H A D | sensor_magnetic_driver.c | 228 deviceInfo->ops.SetBatch = SetMagneticBatch; in InitMagneticOps()
|
/drivers/hdf_core/framework/model/sensor/driver/proximity/ |
H A D | sensor_proximity_driver.c | 229 deviceInfo->ops.SetBatch = SetProximityBatch; in InitProximityOps()
|
/drivers/hdf_core/framework/model/sensor/driver/ppg/ |
H A D | sensor_ppg_driver.c | 219 .ops.SetBatch = SetPpgBatch, in RegisterSensorDev()
|
/drivers/hdf_core/framework/model/sensor/driver/accel/ |
H A D | sensor_accel_driver.c | 251 deviceInfo->ops.SetBatch = SetAccelBatch; in InitAccelOps()
|
H A D | sensor_gravity_driver.c | 233 deviceInfo->ops.SetBatch = SetGravityBatch; in InitGravityOps()
|
/drivers/hdf_core/framework/model/sensor/driver/barometer/ |
H A D | sensor_barometer_driver.c | 226 deviceInfo->ops.SetBatch = SetBarometerBatch; in InitBarometerOps()
|
/drivers/hdf_core/framework/model/sensor/driver/humidity/ |
H A D | sensor_humidity_driver.c | 228 deviceInfo->ops.SetBatch = SetHumidityBatch; in InitHumidityOps()
|