Home
last modified time | relevance | path

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

/system/chre/core/tests/
Dsensor_request_test.cc22 using chre::SensorMode;
51 EXPECT_EQ(request.getMode(), SensorMode::Off); in TEST()
55 SensorRequest activeContinuous(SensorMode::ActiveContinuous, in TEST()
57 SensorRequest activeOneShot(SensorMode::ActiveOneShot, in TEST()
64 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
68 SensorRequest activeOneShot(SensorMode::ActiveOneShot, in TEST()
70 SensorRequest passiveContinuous(SensorMode::PassiveContinuous, in TEST()
77 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveOneShot); in TEST()
82 SensorRequest passiveContinuous(SensorMode::PassiveContinuous, in TEST()
84 SensorRequest passiveOneShot(SensorMode::PassiveOneShot, in TEST()
[all …]
/system/chre/core/
Dsensor_request.cc41 : SensorRequest(SensorMode::Off, in SensorRequest()
45 SensorRequest::SensorRequest(SensorMode mode, Nanoseconds interval, in SensorRequest()
49 SensorRequest::SensorRequest(Nanoapp *nanoapp, SensorMode mode, in SensorRequest()
70 if (request.mMode != SensorMode::Off) { in mergeWith()
102 SensorMode maximalSensorMode = SensorMode::Off; in mergeWith()
103 if (mMode == SensorMode::ActiveContinuous in mergeWith()
104 || request.mMode == SensorMode::ActiveContinuous) { in mergeWith()
105 maximalSensorMode = SensorMode::ActiveContinuous; in mergeWith()
106 } else if (mMode == SensorMode::ActiveOneShot in mergeWith()
107 || request.mMode == SensorMode::ActiveOneShot) { in mergeWith()
[all …]
Dsensor_type.cc219 SensorMode getSensorModeFromEnum(enum chreSensorConfigureMode enumSensorMode) { in getSensorModeFromEnum()
222 return SensorMode::Off; in getSensorModeFromEnum()
224 return SensorMode::ActiveContinuous; in getSensorModeFromEnum()
226 return SensorMode::ActiveOneShot; in getSensorModeFromEnum()
228 return SensorMode::PassiveContinuous; in getSensorModeFromEnum()
230 return SensorMode::PassiveOneShot; in getSensorModeFromEnum()
233 return SensorMode::Off; in getSensorModeFromEnum()
Dsensor_request_manager.cc140 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
/system/chre/core/include/chre/core/
Dsensor_type.h201 enum class SensorMode { enum
213 constexpr bool sensorModeIsActive(SensorMode sensorMode) { in sensorModeIsActive()
214 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsActive()
215 || sensorMode == SensorMode::ActiveOneShot); in sensorModeIsActive()
222 constexpr bool sensorModeIsPassive(SensorMode sensorMode) { in sensorModeIsPassive()
223 return (sensorMode == SensorMode::PassiveContinuous in sensorModeIsPassive()
224 || sensorMode == SensorMode::PassiveOneShot); in sensorModeIsPassive()
230 constexpr bool sensorModeIsContinuous(SensorMode sensorMode) { in sensorModeIsContinuous()
231 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsContinuous()
232 || sensorMode == SensorMode::PassiveContinuous); in sensorModeIsContinuous()
[all …]
Dsensor_request.h54 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency);
67 SensorRequest(Nanoapp *nanoapp, SensorMode mode, Nanoseconds interval,
106 SensorMode getMode() const { in getMode()
133 SensorMode mMode;
/system/chre/platform/shared/
Dchre_api_sensor.cc26 using chre::SensorMode;
70 SensorMode sensorMode = getSensorModeFromEnum(mode); in chreSensorConfigure()
Dplatform_sensor_util.cc57 && sensor->getRequest().getMode() != SensorMode::Off) { in updateLastEvent()
/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc686 SensorMode getMergedMode(uint8_t sensorId, SensorType sensorType, in getMergedMode()
717 SensorMode mode = getMergedMode(sensorId, SensorType::Unknown, dummyRequest); in onOtherClientPresenceChange()
816 bool enabled = (request.getMode() != SensorMode::Off); in updateSamplingStatus()
1035 uint8_t getSmgrRequestActionForMode(SensorMode mode) { in getSmgrRequestActionForMode()
1036 if (mode != SensorMode::Off) { in getSmgrRequestActionForMode()
1156 SensorMode mergedMode = getMergedMode( in isRequestAllowed()
1228 if (request.getMode() == SensorMode::Off) { in makeRequest()
1242 sensor->isSensorOff = (request.getMode() == SensorMode::Off); in makeRequest()
1244 if (request.getMode() == SensorMode::Off) { in makeRequest()
1271 && sensor->getRequest().getMode() != SensorMode::Off) { in makeAllPendingRequests()
[all …]
/system/chre/platform/slpi/see/
Dplatform_sensor.cc490 .enable = (request.getMode() != SensorMode::Off), in applyRequest()