Home
last modified time | relevance | path

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

/system/chre/core/tests/
Dsensor_request_test.cc24 using chre::SensorRequest;
26 TEST(SensorRequest, DefaultMinimalPriority) { in TEST() argument
27 SensorRequest request; in TEST()
33 TEST(SensorRequest, ActiveContinuousIsHigherPriorityThanActiveOneShot) { in TEST() argument
34 SensorRequest activeContinuous(SensorMode::ActiveContinuous, Nanoseconds(0), in TEST()
36 SensorRequest activeOneShot(SensorMode::ActiveOneShot, Nanoseconds(0), in TEST()
38 SensorRequest mergedRequest; in TEST()
46 TEST(SensorRequest, ActiveOneShotIsHigherPriorityThanPassiveContinuous) { in TEST() argument
47 SensorRequest activeOneShot(SensorMode::ActiveOneShot, Nanoseconds(0), in TEST()
49 SensorRequest passiveContinuous(SensorMode::PassiveContinuous, Nanoseconds(0), in TEST()
[all …]
/system/chre/core/
Dsensor_request.cc26 Nanoseconds getBatchInterval(const SensorRequest &request) { in getBatchInterval()
40 SensorRequest::SensorRequest() in SensorRequest() function in chre::SensorRequest
41 : SensorRequest(SensorMode::Off, Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT), in SensorRequest()
44 SensorRequest::SensorRequest(SensorMode mode, Nanoseconds interval, in SensorRequest() function in chre::SensorRequest
46 : SensorRequest(kInvalidInstanceId, mode, interval, latency) {} in SensorRequest()
48 SensorRequest::SensorRequest(uint32_t instanceId, SensorMode mode, in SensorRequest() function in chre::SensorRequest
64 bool SensorRequest::isEquivalentTo(const SensorRequest &request) const { in isEquivalentTo()
70 bool SensorRequest::onlyBiasRequestUpdated(const SensorRequest &request) const { in onlyBiasRequestUpdated()
76 bool SensorRequest::mergeWith(const SensorRequest &request) { in mergeWith()
Dsensor_request_multiplexer.cc23 const SensorRequest *SensorRequestMultiplexer::findRequest( in findRequest()
27 const DynamicVector<SensorRequest> &requests = getRequests(); in findRequest()
29 const SensorRequest &sensorRequest = requests[i]; in findRequest()
Dsensor_request_manager.cc32 const SensorRequest &sensorRequest) { in isSensorRequestValid()
116 const DynamicVector<SensorRequest> &requests = in postSamplingStatus()
163 const SensorRequest &sensorRequest) { in setSensorRequest()
175 SensorRequest request = sensorRequest; in setSensorRequest()
247 const SensorRequest &previousRequest = in setSensorRequest()
297 for (const SensorRequest &request : sensor.getRequests()) { in removeAllRequests()
336 const DynamicVector<SensorRequest> &SensorRequestManager::getRequests( in getRequests()
370 SensorRequest previousRequest = in configureBiasEvents()
675 const SensorRequest &sensorRequest) { in addSensorRequestLog()
683 const SensorRequest &request, in addRequest()
[all …]
/system/chre/core/include/chre/core/
Dsensor_request.h37 class SensorRequest {
43 SensorRequest();
54 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency);
67 SensorRequest(uint32_t instanceId, SensorMode mode, Nanoseconds interval,
77 bool isEquivalentTo(const SensorRequest &request) const;
86 bool onlyBiasRequestUpdated(const SensorRequest &request) const;
95 bool mergeWith(const SensorRequest &request);
Dsensor_request_multiplexer.h29 class SensorRequestMultiplexer : public RequestMultiplexer<SensorRequest> {
43 const SensorRequest *findRequest(uint32_t instanceId, size_t *index) const;
Dsensor_request_manager.h107 const SensorRequest &sensorRequest);
157 const DynamicVector<SensorRequest> &getRequests(uint32_t sensorHandle) const;
388 bool addRequest(Sensor &sensor, const SensorRequest &request,
405 const SensorRequest &request, bool *requestChanged);
474 const SensorRequest &sensorRequest);
491 const SensorRequest &prevSensorRequest);
Dsensor.h78 const SensorRequest &getMaximalRequest() const { in getMaximalRequest()
85 const DynamicVector<SensorRequest> &getRequests() const { in getRequests()
/system/chre/platform/shared/
Dchre_api_sensor.cc28 using chre::SensorRequest;
97 SensorRequest sensorRequest(nanoapp->getInstanceId(), sensorMode, in chreSensorConfigure()
Dplatform_sensor_manager.cc84 const SensorRequest &request) { in configureSensor()
/system/chre/platform/include/chre/platform/
Dplatform_sensor_manager.h85 bool configureSensor(Sensor &sensor, const SensorRequest &request);
/system/chre/platform/slpi/see/
Dplatform_sensor_manager.cc711 const SensorRequest &request) { in configureSensor()