Home
last modified time | relevance | path

Searched refs:sensorMode (Results 1 – 3 of 3) sorted by relevance

/system/chre/core/include/chre/core/
Dsensor_request_impl.h24 constexpr bool sensorModeIsActive(SensorMode sensorMode) { in sensorModeIsActive() argument
25 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsActive()
26 || sensorMode == SensorMode::ActiveOneShot); in sensorModeIsActive()
29 constexpr bool sensorModeIsContinuous(SensorMode sensorMode) { in sensorModeIsContinuous() argument
30 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsContinuous()
31 || sensorMode == SensorMode::PassiveContinuous); in sensorModeIsContinuous()
34 constexpr bool sensorModeIsOneShot(SensorMode sensorMode) { in sensorModeIsOneShot() argument
35 return (sensorMode == SensorMode::ActiveOneShot in sensorModeIsOneShot()
36 || sensorMode == SensorMode::PassiveOneShot); in sensorModeIsOneShot()
Dsensor_request.h192 constexpr bool sensorModeIsActive(SensorMode sensorMode);
197 constexpr bool sensorModeIsContinuous(SensorMode sensorMode);
202 constexpr bool sensorModeIsOneShot(SensorMode sensorMode);
/system/chre/platform/shared/
Dchre_api_sensor.cc57 SensorMode sensorMode = getSensorModeFromEnum(mode); in chreSensorConfigure() local
58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure()