Searched refs:SensorMode (Results 1 – 10 of 10) sorted by relevance
/system/chre/core/tests/ |
D | sensor_request_test.cc | 22 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/ |
D | sensor_request.cc | 41 : SensorRequest(SensorMode::Off, in SensorRequest() 45 SensorRequest::SensorRequest(SensorMode mode, Nanoseconds interval, in SensorRequest() 49 SensorRequest::SensorRequest(uint32_t instanceId, SensorMode mode, in SensorRequest() 71 if (request.mMode != SensorMode::Off) { in mergeWith() 103 SensorMode maximalSensorMode = SensorMode::Off; in mergeWith() 104 if (mMode == SensorMode::ActiveContinuous in mergeWith() 105 || request.mMode == SensorMode::ActiveContinuous) { in mergeWith() 106 maximalSensorMode = SensorMode::ActiveContinuous; in mergeWith() 107 } else if (mMode == SensorMode::ActiveOneShot in mergeWith() 108 || request.mMode == SensorMode::ActiveOneShot) { in mergeWith() [all …]
|
D | sensor_type.cc | 276 SensorMode getSensorModeFromEnum(enum chreSensorConfigureMode enumSensorMode) { in getSensorModeFromEnum() 279 return SensorMode::Off; in getSensorModeFromEnum() 281 return SensorMode::ActiveContinuous; in getSensorModeFromEnum() 283 return SensorMode::ActiveOneShot; in getSensorModeFromEnum() 285 return SensorMode::PassiveContinuous; in getSensorModeFromEnum() 287 return SensorMode::PassiveOneShot; in getSensorModeFromEnum() 290 return SensorMode::Off; in getSensorModeFromEnum()
|
D | sensor_request_manager.cc | 154 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
|
/system/chre/core/include/chre/core/ |
D | sensor_type.h | 214 enum class SensorMode { enum 226 constexpr bool sensorModeIsActive(SensorMode sensorMode) { in sensorModeIsActive() 227 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsActive() 228 || sensorMode == SensorMode::ActiveOneShot); in sensorModeIsActive() 235 constexpr bool sensorModeIsPassive(SensorMode sensorMode) { in sensorModeIsPassive() 236 return (sensorMode == SensorMode::PassiveContinuous in sensorModeIsPassive() 237 || sensorMode == SensorMode::PassiveOneShot); in sensorModeIsPassive() 243 constexpr bool sensorModeIsContinuous(SensorMode sensorMode) { in sensorModeIsContinuous() 244 return (sensorMode == SensorMode::ActiveContinuous in sensorModeIsContinuous() 245 || sensorMode == SensorMode::PassiveContinuous); in sensorModeIsContinuous() [all …]
|
D | sensor_request.h | 54 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency); 67 SensorRequest(uint32_t instanceId, SensorMode mode, Nanoseconds interval, 106 SensorMode getMode() const { in getMode() 130 SensorMode mMode;
|
/system/chre/platform/shared/ |
D | chre_api_sensor.cc | 26 using chre::SensorMode; 154 SensorMode sensorMode = getSensorModeFromEnum(mode); in chreSensorConfigure()
|
D | platform_sensor_util.cc | 57 && sensor->getRequest().getMode() != SensorMode::Off) { in updateLastEvent()
|
/system/chre/platform/slpi/smgr/ |
D | platform_sensor.cc | 680 SensorMode getMergedMode(uint8_t sensorId, SensorType sensorType, in getMergedMode() 711 SensorMode mode = getMergedMode(sensorId, SensorType::Unknown, dummyRequest); in onOtherClientPresenceChange() 877 bool enabled = (request.getMode() != SensorMode::Off); in updateSamplingStatus() 1110 uint8_t getSmgrRequestActionForMode(SensorMode mode) { in getSmgrRequestActionForMode() 1111 if (mode != SensorMode::Off) { in getSmgrRequestActionForMode() 1231 SensorMode mergedMode = getMergedMode( in isRequestAllowed() 1303 if (request.getMode() == SensorMode::Off) { in makeRequest() 1317 sensor->isSensorOff = (request.getMode() == SensorMode::Off); in makeRequest() 1319 if (request.getMode() == SensorMode::Off) { in makeRequest() 1346 && sensor->getRequest().getMode() != SensorMode::Off) { in makeAllPendingRequests() [all …]
|
/system/chre/platform/slpi/see/ |
D | platform_sensor.cc | 798 .enable = (request.getMode() != SensorMode::Off), in applyRequest() 862 if (request.getMode() == SensorMode::Off) { in applyRequest()
|