Home
last modified time | relevance | path

Searched refs:SensorMode (Results 1 – 8 of 8) sorted by relevance

/system/chre/core/tests/
Dsensor_request_test.cc22 using chre::SensorMode;
50 EXPECT_EQ(request.getMode(), SensorMode::Off); in TEST()
54 SensorRequest activeContinuous(SensorMode::ActiveContinuous, in TEST()
56 SensorRequest activeOneShot(SensorMode::ActiveOneShot, in TEST()
63 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
67 SensorRequest activeOneShot(SensorMode::ActiveOneShot, in TEST()
69 SensorRequest passiveContinuous(SensorMode::PassiveContinuous, in TEST()
76 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveOneShot); in TEST()
81 SensorRequest passiveContinuous(SensorMode::PassiveContinuous, in TEST()
83 SensorRequest passiveOneShot(SensorMode::PassiveOneShot, in TEST()
[all …]
/system/chre/core/
Dsensor_request.cc172 SensorMode getSensorModeFromEnum(enum chreSensorConfigureMode enumSensorMode) { in getSensorModeFromEnum()
175 return SensorMode::Off; in getSensorModeFromEnum()
177 return SensorMode::ActiveContinuous; in getSensorModeFromEnum()
179 return SensorMode::ActiveOneShot; in getSensorModeFromEnum()
181 return SensorMode::PassiveContinuous; in getSensorModeFromEnum()
183 return SensorMode::PassiveOneShot; in getSensorModeFromEnum()
186 return SensorMode::Off; in getSensorModeFromEnum()
201 : SensorRequest(SensorMode::Off, in SensorRequest()
205 SensorRequest::SensorRequest(SensorMode mode, in SensorRequest()
210 SensorRequest::SensorRequest(Nanoapp *nanoapp, SensorMode mode, in SensorRequest()
[all …]
Dsensor.cc47 if (request.getMode() == SensorMode::Off) { in setRequest()
81 if (mSensorRequest.getMode() != SensorMode::Off) { in setLastEvent()
Dsensor_request_manager.cc140 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
/system/chre/core/include/chre/core/
Dsensor_request_impl.h24 constexpr bool sensorModeIsActive(SensorMode sensorMode) { in sensorModeIsActive()
25 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsActive()
26 || sensorMode == SensorMode::ActiveOneShot); in sensorModeIsActive()
29 constexpr bool sensorModeIsContinuous(SensorMode sensorMode) { in sensorModeIsContinuous()
30 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsContinuous()
31 || sensorMode == SensorMode::PassiveContinuous); in sensorModeIsContinuous()
34 constexpr bool sensorModeIsOneShot(SensorMode sensorMode) { in sensorModeIsOneShot()
35 return (sensorMode == SensorMode::ActiveOneShot in sensorModeIsOneShot()
36 || sensorMode == SensorMode::PassiveOneShot); in sensorModeIsOneShot()
Dsensor_request.h180 enum class SensorMode { enum
192 constexpr bool sensorModeIsActive(SensorMode sensorMode);
197 constexpr bool sensorModeIsContinuous(SensorMode sensorMode);
202 constexpr bool sensorModeIsOneShot(SensorMode sensorMode);
212 SensorMode getSensorModeFromEnum(enum chreSensorConfigureMode enumSensorMode);
250 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency);
262 SensorRequest(Nanoapp *nanoapp, SensorMode mode, Nanoseconds interval,
297 SensorMode getMode() const;
317 SensorMode mMode;
/system/chre/platform/shared/
Dchre_api_sensor.cc26 using chre::SensorMode;
57 SensorMode sensorMode = getSensorModeFromEnum(mode); in chreSensorConfigure()
/system/chre/platform/slpi/
Dplatform_sensor.cc779 uint8_t getSmgrRequestActionForMode(SensorMode mode) { in getSmgrRequestActionForMode()