/drivers/peripheral/sensor/test/benchmarktest/ |
H A D | sensor_single_interface_benchmark_test.cpp | 132 * @tc.desc: Benchmarktest for interface SetOption 136 BENCHMARK_F(SensorBenchmarkTest, SetOption)(benchmark::State &state) in BENCHMARK_F() 139 int32_t ret = g_sensorInterface->SetOption(g_sensorId, OPTION); in BENCHMARK_F() 144 BENCHMARK_REGISTER_F(SensorBenchmarkTest, SetOption)->
|
H A D | sensor_benchmark_test.cpp | 286 * @tc.desc: Benchmarktest for interface SetOption
290 BENCHMARK_F(SensorBenchmarkTest, SetOption)(benchmark::State &state)
in BENCHMARK_F() 301 ret = g_sensorInterface->SetOption(iter.sensorId, OPTION);
in BENCHMARK_F() 307 BENCHMARK_REGISTER_F(SensorBenchmarkTest, SetOption)->
|
/drivers/peripheral/sensor/test/fuzztest/sensorsetoption_fuzzer/ |
H A D | sensorsetoption_fuzzer.cpp | 28 if (!g_sensorInterface->SetOption(*(int32_t *)data, *(uint32_t *)data)) { in SensorSetOptionFuzzTest()
|
/drivers/hdf_core/framework/model/sensor/driver/ppg/ |
H A D | sensor_ppg_driver.h | 22 int32_t (*SetOption)(uint32_t option); member
|
H A D | sensor_ppg_driver.c | 184 CHECK_NULL_PTR_RETURN_VALUE(drvData->chipData.opsCall.SetOption, HDF_ERR_INVALID_PARAM); in SetPpgOption() 186 ret = drvData->chipData.opsCall.SetOption(option); in SetPpgOption() 221 .ops.SetOption = SetPpgOption in RegisterSensorDev()
|
/drivers/hdf_core/framework/model/sensor/driver/include/ |
H A D | sensor_device_if.h | 19 int32_t (*SetOption)(uint32_t option); member
|
/drivers/peripheral/sensor/interfaces/include/ |
H A D | sensor_if.h | 135 int32_t (*SetOption)(int32_t sensorId, uint32_t option); member
|
/drivers/peripheral/sensor/hdi_impl/ |
H A D | sensor_impl.h | 41 int32_t SetOption(int32_t sensorId, uint32_t option) override;
|
H A D | sensor_impl.cpp | 235 int32_t SensorImpl::SetOption(int32_t sensorId, uint32_t option) in SetOption() function in OHOS::HDI::Sensor::V1_1::SensorImpl 237 HDF_LOGI("%{public}s: Enter the SetOption function, sensorId is %{public}d, option is %{public}u", in SetOption() 239 if (sensorInterface == nullptr || sensorInterface->SetOption == nullptr) { in SetOption() 244 StartTrace(HITRACE_TAG_SENSORS, "SetOption"); in SetOption() 245 int32_t ret = sensorInterface->SetOption(sensorId, option); in SetOption()
|
/drivers/peripheral/sensor/interfaces/v1_0/ |
H A D | isensor_interface_vdi.h | 64 virtual int32_t SetOption(int32_t sensorId, uint32_t option) = 0;
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_device_manager.c | 216 static int32_t SetOption(struct SensorDeviceInfo *deviceInfo, struct HdfSBuf *data, struct HdfSBuf *reply) in SetOption() function 223 CHECK_NULL_PTR_RETURN_VALUE(deviceInfo->ops.SetOption, HDF_ERR_INVALID_PARAM); in SetOption() 230 return deviceInfo->ops.SetOption(option); in SetOption() 265 {SENSOR_OPS_CMD_SET_OPTION, SetOption}, // SENSOR_CMD_SET_OPTION
|
/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_if_service.h | 45 int32_t SetOption(int32_t sensorId, uint32_t option) override;
|
/drivers/hdf_core/framework/test/unittest/sensor/ |
H A D | hdf_sensor_test.c | 209 .SetOption = SensorSetOptionTest, in InitSensorDriverTest()
|
/drivers/peripheral/sensor/test/performance/hdi/ |
H A D | hdf_sensor_hdi_performance_test.cpp | 210 int ret = g_sensorInterface->SetOption(SENSOR_ID, 1); in HWTEST_F()
|
/drivers/peripheral/sensor/test/performance/common/ |
H A D | hdf_sensor_performance_test.cpp | 232 int ret = g_sensorPerformanceDev->SetOption(SENSOR_ID, 1); in HWTEST_F()
|
/drivers/peripheral/sensor/test/unittest/hdi/ |
H A D | hdf_sensor_hdi_test.cpp | 414 int32_t ret = g_sensorInterface->SetOption(iter.sensorId, 0); in HWTEST_F() 431 int32_t ret = g_sensorInterface->SetOption(ABNORMAL_SENSORID, 0); in HWTEST_F()
|
/drivers/peripheral/sensor/test/unittest/common/ |
H A D | hdf_sensor_test.cpp | 556 int32_t ret = g_sensorDev->SetOption(info->sensorId, 0); in HWTEST_F() 572 int32_t ret = g_sensorDev->SetOption(ABNORMAL_SENSORID, 0); in HWTEST_F()
|
/drivers/hdf_core/framework/model/sensor/driver/gas/ |
H A D | sensor_gas_driver.c | 240 deviceInfo->ops.SetOption = SetGasOption; in InitGasOps()
|
/drivers/hdf_core/framework/model/sensor/driver/pedometer/ |
H A D | sensor_pedometer_driver.c | 231 deviceInfo->ops.SetOption = SetPedometerOption; in InitPedometerOps()
|
/drivers/hdf_core/framework/model/sensor/driver/magnetic/ |
H A D | sensor_magnetic_driver.c | 230 deviceInfo->ops.SetOption = SetMagneticOption; in InitMagneticOps()
|
/drivers/hdf_core/framework/model/sensor/driver/proximity/ |
H A D | sensor_proximity_driver.c | 231 deviceInfo->ops.SetOption = SetProximityOption; in InitProximityOps()
|
/drivers/hdf_core/framework/model/sensor/driver/accel/ |
H A D | sensor_accel_driver.c | 253 deviceInfo->ops.SetOption = SetAccelOption; in InitAccelOps()
|
H A D | sensor_gravity_driver.c | 235 deviceInfo->ops.SetOption = SetGravityOption; in InitGravityOps()
|
/drivers/hdf_core/framework/model/sensor/driver/barometer/ |
H A D | sensor_barometer_driver.c | 228 deviceInfo->ops.SetOption = SetBarometerOption; in InitBarometerOps()
|
/drivers/hdf_core/framework/model/sensor/driver/humidity/ |
H A D | sensor_humidity_driver.c | 230 deviceInfo->ops.SetOption = SetHumidityOption; in InitHumidityOps()
|