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 | 712 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/ |
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 | 30 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/ |
D | platform_sensor.cc | 731 .enable = (request.getMode() != SensorMode::Off), in applyRequest() 732 .passive = sensorModeIsPassive(request.getMode()), in applyRequest() 764 if (request.getMode() == SensorMode::Off) { in applyRequest()
|