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.cc697 return mergedRequest.getMode(); in getMergedMode()
877 bool enabled = (request.getMode() != SensorMode::Off); in updateSamplingStatus()
1167 SensorRequest request(chreRequest.getMode(), Nanoseconds(cappedInterval), in populateSensorRequest()
1173 sensorRequest->Action = getSmgrRequestActionForMode(request.getMode()); in populateSensorRequest()
1226 if (sensorModeIsPassive(request.getMode())) { 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()
1372 && 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.cc36 sensorRequest.getMode()); in isSensorRequestValid()
37 bool isRequestOneShot = sensorModeIsOneShot(sensorRequest.getMode()); in isSensorRequestValid()
154 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
443 getSensorTypeName(sensor), request.getMode(), in logStateToBuffer()
/system/chre/platform/slpi/see/
Dplatform_sensor.cc798 .enable = (request.getMode() != SensorMode::Off), in applyRequest()
799 .passive = sensorModeIsPassive(request.getMode()), in applyRequest()
862 if (request.getMode() == SensorMode::Off) { in applyRequest()