Home
last modified time | relevance | path

Searched refs:SetMode (Results 1 – 25 of 36) sorted by relevance

12

/drivers/peripheral/sensor/test/fuzztest/sensorsetmode_fuzzer/
Dsensorsetmode_fuzzer.cpp29 if (!g_sensorInterface->SetMode(*(int32_t *)data, *(int32_t *)data)) { in SensorSetModeFuzzTest()
/drivers/peripheral/sensor/test/benchmarktest/
Dsensor_benchmark_test.cpp237 BENCHMARK_F(SensorBenchmarkTest, SetMode)(benchmark::State &state) in BENCHMARK_F() argument
248 ret = g_sensorInterface->SetMode(0, SENSOR_MODE_ON_CHANGE); in BENCHMARK_F()
250 ret = g_sensorInterface->SetMode(0, SENSOR_MODE_REALTIME); in BENCHMARK_F()
261 BENCHMARK_REGISTER_F(SensorBenchmarkTest, SetMode)->
/drivers/hdf_core/framework/model/sensor/driver/include/
Dsensor_device_if.h18 int32_t (*SetMode)(int32_t mode); member
/drivers/hdf_core/framework/model/sensor/driver/ppg/
Dsensor_ppg_driver.h23 int32_t (*SetMode)(uint32_t mode); member
Dsensor_ppg_driver.c162 CHECK_NULL_PTR_RETURN_VALUE(drvData->chipData.opsCall.SetMode, HDF_ERR_INVALID_PARAM); in SetPpgMode()
169 ret = drvData->chipData.opsCall.SetMode(mode); in SetPpgMode()
220 .ops.SetMode = SetPpgMode, in RegisterSensorDev()
/drivers/peripheral/sensor/interfaces/include/
Dsensor_if.h122 int32_t (*SetMode)(int32_t sensorId, int32_t mode); member
/drivers/peripheral/sensor/test/unittest/hdi/
Dhdf_sensor_hdi_test.cpp334 ret = g_sensorInterface->SetMode(iter.sensorId, SENSOR_MODE_ON_CHANGE);
337 ret = g_sensorInterface->SetMode(iter.sensorId, SENSOR_MODE_REALTIME);
361 int32_t ret = g_sensorInterface->SetMode(ABNORMAL_SENSORID, SENSOR_MODE_REALTIME);
382 ret = g_sensorInterface->SetMode(iter.sensorId, SENSOR_MODE_DEFAULT);
/drivers/peripheral/sensor/interfaces/v1_0/
Disensor_interface_vdi.h51 virtual int32_t SetMode(int32_t sensorId, int32_t mode) = 0;
/drivers/peripheral/sensor/hdi_impl/
Dsensor_impl.h40 int32_t SetMode(int32_t sensorId, int32_t mode) override;
Dsensor_impl.cpp239 int32_t SensorImpl::SetMode(int32_t sensorId, int32_t mode) in SetMode() function in OHOS::HDI::Sensor::V1_1::SensorImpl
243 if (sensorInterface == nullptr || sensorInterface->SetMode == nullptr) { in SetMode()
249 int32_t ret = sensorInterface->SetMode(sensorId, mode); in SetMode()
/drivers/peripheral/sensor/hdi_service/
Dsensor_if_service.h40 int32_t SetMode(int32_t sensorId, int32_t mode) override;
Dsensor_if_service.cpp181 int32_t SensorIfService::SetMode(int32_t sensorId, int32_t mode) in SetMode() function in OHOS::HDI::Sensor::V1_1::SensorIfService
191 int32_t ret = sensorVdiImpl_->SetMode(sensorId, mode); in SetMode()
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_device_manager.c199 static int32_t SetMode(struct SensorDeviceInfo *deviceInfo, struct HdfSBuf *data, struct HdfSBuf *r… in SetMode() function
206 CHECK_NULL_PTR_RETURN_VALUE(deviceInfo->ops.SetMode, HDF_ERR_INVALID_PARAM); in SetMode()
213 return deviceInfo->ops.SetMode(mode); in SetMode()
264 {SENSOR_OPS_CMD_SET_MODE, SetMode}, // SENSOR_CMD_SET_MODE
/drivers/peripheral/sensor/test/unittest/common/
Dhdf_sensor_test.cpp476 ret = g_sensorDev->SetMode(info->sensorId, SENSOR_MODE_ON_CHANGE);
479 ret = g_sensorDev->SetMode(info->sensorId, SENSOR_MODE_REALTIME);
530 ret = g_sensorDev->SetMode(info->sensorId, SENSOR_MODE_DEFAULT);
/drivers/hdf_core/framework/test/unittest/sensor/
Dhdf_sensor_test.c208 .SetMode = SensorSetModeTest, in InitSensorDriverTest()
/drivers/peripheral/sensor/test/performance/hdi/
Dhdf_sensor_hdi_performance_test.cpp189 int ret = g_sensorInterface->SetMode(SENSOR_ID, 1);
/drivers/peripheral/sensor/test/performance/common/
Dhdf_sensor_performance_test.cpp211 int ret = g_sensorPerformanceDev->SetMode(SENSOR_ID, 1);
/drivers/hdf_core/framework/include/wifi/
Dwifi_mac80211_ops.h484 int32_t (*SetMode)(NetDevice *netDev, enum WlanWorkMode mode); member
/drivers/hdf_core/framework/model/sensor/driver/pedometer/
Dsensor_pedometer_driver.c230 deviceInfo->ops.SetMode = SetPedometerMode; in InitPedometerOps()
/drivers/hdf_core/framework/model/sensor/driver/barometer/
Dsensor_barometer_driver.c227 deviceInfo->ops.SetMode = SetBarometerMode; in InitBarometerOps()
/drivers/hdf_core/framework/model/sensor/driver/accel/
Dsensor_gravity_driver.c234 deviceInfo->ops.SetMode = SetGravityMode; in InitGravityOps()
/drivers/hdf_core/framework/model/sensor/driver/gyro/
Dsensor_gyro_driver.c227 deviceInfo->ops.SetMode = SetGyroMode; in InitGyroOps()
/drivers/hdf_core/framework/model/sensor/driver/proximity/
Dsensor_proximity_driver.c230 deviceInfo->ops.SetMode = SetProximityMode; in InitProximityOps()
/drivers/hdf_core/framework/model/sensor/driver/temperature/
Dsensor_temperature_driver.c231 deviceInfo->ops.SetMode = SetTemperatureMode; in InitTemperatureOps()
/drivers/hdf_core/framework/model/sensor/driver/humidity/
Dsensor_humidity_driver.c229 deviceInfo->ops.SetMode = SetHumidityMode; in InitHumidityOps()

12