Searched refs:SensorRequest (Results 1 – 11 of 11) sorted by relevance
/system/chre/core/tests/ |
D | sensor_request_test.cc | 23 using chre::SensorRequest; 46 TEST(SensorRequest, DefaultMinimalPriority) { in TEST() argument 47 SensorRequest request; in TEST() 53 TEST(SensorRequest, ActiveContinuousIsHigherPriorityThanActiveOneShot) { in TEST() argument 54 SensorRequest activeContinuous(SensorMode::ActiveContinuous, in TEST() 56 SensorRequest activeOneShot(SensorMode::ActiveOneShot, in TEST() 58 SensorRequest mergedRequest; in TEST() 66 TEST(SensorRequest, ActiveOneShotIsHigherPriorityThanPassiveContinuous) { in TEST() argument 67 SensorRequest activeOneShot(SensorMode::ActiveOneShot, in TEST() 69 SensorRequest passiveContinuous(SensorMode::PassiveContinuous, in TEST() [all …]
|
/system/chre/core/ |
D | sensor_request.cc | 200 SensorRequest::SensorRequest() in SensorRequest() function in chre::SensorRequest 201 : SensorRequest(SensorMode::Off, in SensorRequest() 205 SensorRequest::SensorRequest(SensorMode mode, in SensorRequest() function in chre::SensorRequest 210 SensorRequest::SensorRequest(Nanoapp *nanoapp, SensorMode mode, in SensorRequest() function in chre::SensorRequest 215 bool SensorRequest::isEquivalentTo(const SensorRequest& request) const { in isEquivalentTo() 221 bool SensorRequest::mergeWith(const SensorRequest& request) { in mergeWith() 261 Nanoseconds SensorRequest::getInterval() const { in getInterval() 265 Nanoseconds SensorRequest::getLatency() const { in getLatency() 269 SensorMode SensorRequest::getMode() const { in getMode() 273 Nanoapp *SensorRequest::getNanoapp() const { in getNanoapp()
|
D | sensor_request_manager.cc | 27 const SensorRequest& sensorRequest) { in isSensorRequestValid() 85 SensorRequest nullRequest = SensorRequest(); in ~SensorRequestManager() 112 uint32_t sensorHandle, const SensorRequest& sensorRequest) { in setSensorRequest() 231 for (const SensorRequest& request : requests.multiplexer.getRequests()) { in removeAllRequests() 252 const SensorRequest *SensorRequestManager::SensorRequests::find( in find() 258 const SensorRequest& sensorRequest = requests[i]; in find() 268 bool SensorRequestManager::SensorRequests::add(const SensorRequest& request, in add() 322 const SensorRequest& request, in update() 327 SensorRequest previousRequest = multiplexer.getRequests()[updateIndex]; in update() 353 SensorRequest maximalRequest = multiplexer.getCurrentMaximalRequest(); in removeAll()
|
D | sensor.cc | 39 bool Sensor::setRequest(const SensorRequest& request) { in setRequest()
|
/system/chre/core/include/chre/core/ |
D | sensor_request_manager.h | 68 const SensorRequest& sensorRequest); 109 RequestMultiplexer<SensorRequest> multiplexer; 122 const SensorRequest *find(const Nanoapp *nanoapp, size_t *index) const; 133 bool add(const SensorRequest& request, bool *requestChanged); 158 bool update(size_t updateIndex, const SensorRequest& request,
|
D | sensor_request.h | 234 class SensorRequest { 240 SensorRequest(); 250 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency); 262 SensorRequest(Nanoapp *nanoapp, SensorMode mode, Nanoseconds interval, 272 bool isEquivalentTo(const SensorRequest& request) const; 281 bool mergeWith(const SensorRequest& request);
|
D | sensor.h | 61 bool setRequest(const SensorRequest& request); 96 SensorRequest mSensorRequest;
|
/system/chre/platform/shared/ |
D | chre_api_sensor.cc | 27 using chre::SensorRequest; 58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure()
|
/system/chre/platform/include/chre/platform/ |
D | platform_sensor.h | 87 bool setRequest(const SensorRequest& request);
|
/system/chre/platform/linux/ |
D | platform_sensor.cc | 41 bool PlatformSensor::setRequest(const SensorRequest& request) { in setRequest()
|
/system/chre/platform/slpi/ |
D | platform_sensor.cc | 799 const SensorRequest& chreRequest, uint8_t sensorId, uint8_t dataType, in populateSensorRequest() 811 SensorRequest request( in populateSensorRequest() 936 bool PlatformSensor::setRequest(const SensorRequest& request) { in setRequest()
|