Home
last modified time | relevance | path

Searched refs:getMode (Results 1 – 6 of 6) sorted by relevance

/system/chre/core/tests/
Dsensor_request_test.cc51 EXPECT_EQ(request.getMode(), SensorMode::Off); in TEST()
64 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
77 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveOneShot); in TEST()
91 EXPECT_EQ(mergedRequest.getMode(), SensorMode::PassiveContinuous); in TEST()
103 EXPECT_EQ(mergedRequest.getMode(), SensorMode::PassiveOneShot); in TEST()
116 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
129 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
141 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
155 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
167 EXPECT_EQ(mergedRequest.getMode(), SensorMode::ActiveContinuous); in TEST()
[all …]
/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc712 return mergedRequest.getMode(); in getMergedMode()
892 bool enabled = (request.getMode() != SensorMode::Off); in updateSamplingStatus()
1182 SensorRequest request(chreRequest.getMode(), Nanoseconds(cappedInterval), in populateSensorRequest()
1188 sensorRequest->Action = getSmgrRequestActionForMode(request.getMode()); in populateSensorRequest()
1241 if (sensorModeIsPassive(request.getMode())) { in isRequestAllowed()
1318 if (request.getMode() == SensorMode::Off) { in makeRequest()
1332 sensor->isSensorOff = (request.getMode() == SensorMode::Off); in makeRequest()
1334 if (request.getMode() == SensorMode::Off) { in makeRequest()
1361 && sensor->getRequest().getMode() != SensorMode::Off) { in makeAllPendingRequests()
1387 && sensorModeIsPassive(sensor->getRequest().getMode())) { in removeAllPassiveRequests()
[all …]
/system/chre/core/include/chre/core/
Dsensor_request.h106 SensorMode getMode() const { in getMode() function
/system/chre/platform/shared/
Dplatform_sensor_util.cc57 && sensor->getRequest().getMode() != SensorMode::Off) { in updateLastEvent()
/system/chre/core/
Dsensor_request_manager.cc30 sensorRequest.getMode()); in isSensorRequestValid()
31 bool isRequestOneShot = sensorModeIsOneShot(sensorRequest.getMode()); in isSensorRequestValid()
147 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
424 getSensorTypeName(sensor), request.getMode(), in logStateToBuffer()
/system/chre/platform/slpi/see/
Dplatform_sensor.cc731 .enable = (request.getMode() != SensorMode::Off), in applyRequest()
732 .passive = sensorModeIsPassive(request.getMode()), in applyRequest()
764 if (request.getMode() == SensorMode::Off) { in applyRequest()