Searched refs:getMode (Results 1 – 6 of 6) sorted by relevance
/system/chre/core/tests/ |
D | sensor_request_test.cc | 51 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/ |
D | platform_sensor.cc | 697 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/ |
D | sensor_request.h | 106 SensorMode getMode() const { in getMode() function
|
/system/chre/platform/shared/ |
D | platform_sensor_util.cc | 57 && sensor->getRequest().getMode() != SensorMode::Off) { in updateLastEvent()
|
/system/chre/core/ |
D | sensor_request_manager.cc | 36 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/ |
D | platform_sensor.cc | 798 .enable = (request.getMode() != SensorMode::Off), in applyRequest() 799 .passive = sensorModeIsPassive(request.getMode()), in applyRequest() 862 if (request.getMode() == SensorMode::Off) { in applyRequest()
|