Home
last modified time | relevance | path

Searched refs:sensorUser_ (Results 1 – 4 of 4) sorted by relevance

/base/powermgr/display_manager/service/native/src/
Ddisplay_power_mgr_service.cpp382 (void) strcpy_s(sensorUser_.name, sizeof(sensorUser_.name), "DisplayPowerMgrService"); in ActivateAmbientSensor()
383 sensorUser_.userData = nullptr; in ActivateAmbientSensor()
384 sensorUser_.callback = &AmbientLightCallback; in ActivateAmbientSensor()
385 SubscribeSensor(SENSOR_TYPE_ID_AMBIENT_LIGHT, &sensorUser_); in ActivateAmbientSensor()
386 SetBatch(SENSOR_TYPE_ID_AMBIENT_LIGHT, &sensorUser_, SAMPLING_RATE, SAMPLING_RATE); in ActivateAmbientSensor()
387 ActivateSensor(SENSOR_TYPE_ID_AMBIENT_LIGHT, &sensorUser_); in ActivateAmbientSensor()
388 SetMode(SENSOR_TYPE_ID_AMBIENT_LIGHT, &sensorUser_, SENSOR_ON_CHANGE); in ActivateAmbientSensor()
402 DeactivateSensor(SENSOR_TYPE_ID_AMBIENT_LIGHT, &sensorUser_); in DeactivateAmbientSensor()
403 UnsubscribeSensor(SENSOR_TYPE_ID_AMBIENT_LIGHT, &sensorUser_); in DeactivateAmbientSensor()
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp278 if (strcpy_s(sensorUser_.name, sizeof(sensorUser_.name), "PowerManager") != EOK) { in HallSensorSubscriberInit()
282 sensorUser_.userData = nullptr; in HallSensorSubscriberInit()
283 sensorUser_.callback = &HallSensorCallback; in HallSensorSubscriberInit()
284 SubscribeSensor(SENSOR_TYPE_ID_HALL, &sensorUser_); in HallSensorSubscriberInit()
285 SetBatch(SENSOR_TYPE_ID_HALL, &sensorUser_, HALL_SAMPLING_RATE, HALL_REPORT_INTERVAL); in HallSensorSubscriberInit()
286 ActivateSensor(SENSOR_TYPE_ID_HALL, &sensorUser_); in HallSensorSubscriberInit()
331 DeactivateSensor(SENSOR_TYPE_ID_HALL, &sensorUser_); in HallSensorSubscriberCancel()
332 UnsubscribeSensor(SENSOR_TYPE_ID_HALL, &sensorUser_); in HallSensorSubscriberCancel()
/base/powermgr/display_manager/service/native/include/
Ddisplay_power_mgr_service.h120 SensorUser sensorUser_ {};
/base/powermgr/power_manager/services/native/include/
Dpower_mgr_service.h182 SensorUser sensorUser_; variable