Searched refs:SensorMode (Results 1 – 8 of 8) sorted by relevance
/system/chre/core/tests/ |
D | sensor_request_test.cc | 22 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/ |
D | sensor_request.cc | 172 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 …]
|
D | sensor.cc | 47 if (request.getMode() == SensorMode::Off) { in setRequest() 81 if (mSensorRequest.getMode() != SensorMode::Off) { in setLastEvent()
|
D | sensor_request_manager.cc | 140 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
|
/system/chre/core/include/chre/core/ |
D | sensor_request_impl.h | 24 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()
|
D | sensor_request.h | 180 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/ |
D | chre_api_sensor.cc | 26 using chre::SensorMode; 57 SensorMode sensorMode = getSensorModeFromEnum(mode); in chreSensorConfigure()
|
/system/chre/platform/slpi/ |
D | platform_sensor.cc | 779 uint8_t getSmgrRequestActionForMode(SensorMode mode) { in getSmgrRequestActionForMode()
|