Home
last modified time | relevance | path

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

/system/chre/core/include/chre/core/
Dsensor_type.h213 constexpr bool sensorModeIsActive(SensorMode sensorMode) { in sensorModeIsActive() argument
214 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsActive()
215 || sensorMode == SensorMode::ActiveOneShot); in sensorModeIsActive()
222 constexpr bool sensorModeIsPassive(SensorMode sensorMode) { in sensorModeIsPassive() argument
223 return (sensorMode == SensorMode::PassiveContinuous in sensorModeIsPassive()
224 || sensorMode == SensorMode::PassiveOneShot); in sensorModeIsPassive()
230 constexpr bool sensorModeIsContinuous(SensorMode sensorMode) { in sensorModeIsContinuous() argument
231 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsContinuous()
232 || sensorMode == SensorMode::PassiveContinuous); in sensorModeIsContinuous()
238 constexpr bool sensorModeIsOneShot(SensorMode sensorMode) { in sensorModeIsOneShot() argument
[all …]
/system/chre/platform/shared/
Dchre_api_sensor.cc70 SensorMode sensorMode = getSensorModeFromEnum(mode); in chreSensorConfigure() local
71 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure()