Home
last modified time | relevance | path

Searched refs:SensorRequest (Results 1 – 11 of 11) sorted by relevance

/system/chre/core/tests/
Dsensor_request_test.cc23 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/
Dsensor_request.cc200 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()
Dsensor_request_manager.cc27 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()
Dsensor.cc39 bool Sensor::setRequest(const SensorRequest& request) { in setRequest()
/system/chre/core/include/chre/core/
Dsensor_request_manager.h68 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,
Dsensor_request.h234 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);
Dsensor.h61 bool setRequest(const SensorRequest& request);
96 SensorRequest mSensorRequest;
/system/chre/platform/shared/
Dchre_api_sensor.cc27 using chre::SensorRequest;
58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure()
/system/chre/platform/include/chre/platform/
Dplatform_sensor.h87 bool setRequest(const SensorRequest& request);
/system/chre/platform/linux/
Dplatform_sensor.cc41 bool PlatformSensor::setRequest(const SensorRequest& request) { in setRequest()
/system/chre/platform/slpi/
Dplatform_sensor.cc799 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()