Home
last modified time | relevance | path

Searched refs:SetOption (Results 1 - 25 of 32) sorted by relevance

12

/drivers/peripheral/sensor/test/benchmarktest/
H A Dsensor_single_interface_benchmark_test.cpp132 * @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 Dsensor_benchmark_test.cpp286 * @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 Dsensorsetoption_fuzzer.cpp28 if (!g_sensorInterface->SetOption(*(int32_t *)data, *(uint32_t *)data)) { in SensorSetOptionFuzzTest()
/drivers/hdf_core/framework/model/sensor/driver/ppg/
H A Dsensor_ppg_driver.h22 int32_t (*SetOption)(uint32_t option); member
H A Dsensor_ppg_driver.c184 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 Dsensor_device_if.h19 int32_t (*SetOption)(uint32_t option); member
/drivers/peripheral/sensor/interfaces/include/
H A Dsensor_if.h135 int32_t (*SetOption)(int32_t sensorId, uint32_t option); member
/drivers/peripheral/sensor/hdi_impl/
H A Dsensor_impl.h41 int32_t SetOption(int32_t sensorId, uint32_t option) override;
H A Dsensor_impl.cpp235 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 Disensor_interface_vdi.h64 virtual int32_t SetOption(int32_t sensorId, uint32_t option) = 0;
/drivers/hdf_core/framework/model/sensor/driver/common/src/
H A Dsensor_device_manager.c216 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 Dsensor_if_service.h45 int32_t SetOption(int32_t sensorId, uint32_t option) override;
/drivers/hdf_core/framework/test/unittest/sensor/
H A Dhdf_sensor_test.c209 .SetOption = SensorSetOptionTest, in InitSensorDriverTest()
/drivers/peripheral/sensor/test/performance/hdi/
H A Dhdf_sensor_hdi_performance_test.cpp210 int ret = g_sensorInterface->SetOption(SENSOR_ID, 1); in HWTEST_F()
/drivers/peripheral/sensor/test/performance/common/
H A Dhdf_sensor_performance_test.cpp232 int ret = g_sensorPerformanceDev->SetOption(SENSOR_ID, 1); in HWTEST_F()
/drivers/peripheral/sensor/test/unittest/hdi/
H A Dhdf_sensor_hdi_test.cpp414 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 Dhdf_sensor_test.cpp556 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 Dsensor_gas_driver.c240 deviceInfo->ops.SetOption = SetGasOption; in InitGasOps()
/drivers/hdf_core/framework/model/sensor/driver/pedometer/
H A Dsensor_pedometer_driver.c231 deviceInfo->ops.SetOption = SetPedometerOption; in InitPedometerOps()
/drivers/hdf_core/framework/model/sensor/driver/magnetic/
H A Dsensor_magnetic_driver.c230 deviceInfo->ops.SetOption = SetMagneticOption; in InitMagneticOps()
/drivers/hdf_core/framework/model/sensor/driver/proximity/
H A Dsensor_proximity_driver.c231 deviceInfo->ops.SetOption = SetProximityOption; in InitProximityOps()
/drivers/hdf_core/framework/model/sensor/driver/accel/
H A Dsensor_accel_driver.c253 deviceInfo->ops.SetOption = SetAccelOption; in InitAccelOps()
H A Dsensor_gravity_driver.c235 deviceInfo->ops.SetOption = SetGravityOption; in InitGravityOps()
/drivers/hdf_core/framework/model/sensor/driver/barometer/
H A Dsensor_barometer_driver.c228 deviceInfo->ops.SetOption = SetBarometerOption; in InitBarometerOps()
/drivers/hdf_core/framework/model/sensor/driver/humidity/
H A Dsensor_humidity_driver.c230 deviceInfo->ops.SetOption = SetHumidityOption; in InitHumidityOps()

Completed in 15 milliseconds

12