Home
last modified time | relevance | path

Searched refs:SetBatch (Results 1 - 25 of 31) sorted by relevance

12

/drivers/peripheral/sensor/test/benchmarktest/
H A Dsensor_benchmark_test.cpp154 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 Dsensor_single_interface_benchmark_test.cpp98 * @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 Dsensorsetbatch_fuzzer.cpp28 if (!g_sensorInterface->SetBatch(*(int32_t *)data, (int64_t)(*data), (int64_t)(*data))) { in SensorSetBatchFuzzTest()
/drivers/peripheral/sensor/test/unittest/hdi/
H A Dhdf_sensor_hdi_test.cpp229 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 Dsensor_device_if.h17 int32_t (*SetBatch)(int64_t samplingInterval, int64_t reportInterval); 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() function in HdfSensorDumpTest
185 SetBatch(it.sensorId, g_reportInterval, g_samplingInterval); in HWTEST_F()
/drivers/peripheral/sensor/interfaces/include/
H A Dsensor_if.h110 int32_t (*SetBatch)(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval); member
/drivers/peripheral/sensor/test/unittest/common/
H A Dhdf_sensor_test.cpp355 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 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() 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 Disensor_interface_vdi.h62 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 Dsensor_device_manager.c181 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 Dsensor_if_service.h41 int32_t SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) override;
/drivers/hdf_core/framework/test/unittest/sensor/
H A Dhdf_sensor_test.c207 .SetBatch = SensorSetBatchTest, in InitSensorDriverTest()
/drivers/peripheral/sensor/test/performance/hdi/
H A Dhdf_sensor_hdi_performance_test.cpp144 int ret = g_sensorInterface->SetBatch(SENSOR_ID, SENSOR_INTERVAL, SENSOR_POLL_TIME); in HWTEST_F()
/drivers/peripheral/sensor/test/performance/common/
H A Dhdf_sensor_performance_test.cpp166 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 Dsensor_gas_driver.c238 deviceInfo->ops.SetBatch = SetGasBatch; in InitGasOps()
/drivers/hdf_core/framework/model/sensor/driver/pedometer/
H A Dsensor_pedometer_driver.c229 deviceInfo->ops.SetBatch = SetPedometerBatch; in InitPedometerOps()
/drivers/hdf_core/framework/model/sensor/driver/magnetic/
H A Dsensor_magnetic_driver.c228 deviceInfo->ops.SetBatch = SetMagneticBatch; in InitMagneticOps()
/drivers/hdf_core/framework/model/sensor/driver/proximity/
H A Dsensor_proximity_driver.c229 deviceInfo->ops.SetBatch = SetProximityBatch; in InitProximityOps()
/drivers/hdf_core/framework/model/sensor/driver/ppg/
H A Dsensor_ppg_driver.c219 .ops.SetBatch = SetPpgBatch, in RegisterSensorDev()
/drivers/hdf_core/framework/model/sensor/driver/accel/
H A Dsensor_accel_driver.c251 deviceInfo->ops.SetBatch = SetAccelBatch; in InitAccelOps()
H A Dsensor_gravity_driver.c233 deviceInfo->ops.SetBatch = SetGravityBatch; in InitGravityOps()
/drivers/hdf_core/framework/model/sensor/driver/barometer/
H A Dsensor_barometer_driver.c226 deviceInfo->ops.SetBatch = SetBarometerBatch; in InitBarometerOps()
/drivers/hdf_core/framework/model/sensor/driver/humidity/
H A Dsensor_humidity_driver.c228 deviceInfo->ops.SetBatch = SetHumidityBatch; in InitHumidityOps()

Completed in 12 milliseconds

12