Home
last modified time | relevance | path

Searched refs:sensorIndex (Results 1 – 2 of 2) sorted by relevance

/system/chre/core/
Dsensor_request_manager.cc91 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); in init() local
98 mSensorRequests[sensorIndex].setSensor(std::move(sensors[i])); in init()
113 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); in getSensorHandle() local
114 sensorHandleIsValid = mSensorRequests[sensorIndex].isSensorSupported(); in getSensorHandle()
135 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); in setSensorRequest() local
136 SensorRequests& requests = mSensorRequests[sensorIndex]; in setSensorRequest()
229 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); in getSensorInfo() local
230 if (!mSensorRequests[sensorIndex].isSensorSupported()) { in getSensorInfo()
242 const Sensor& sensor = mSensorRequests[sensorIndex].getSensor(); in getSensorInfo()
263 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); in removeAllRequests() local
[all …]
/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc370 const sns_smgr_buffering_sample_index_s_v01& sensorIndex) { in populateSensorDataHeader() argument
374 sensorIndex.FirstSampleTimestamp); in populateSensorDataHeader()
381 header->readingCount = sensorIndex.SampleCount; in populateSensorDataHeader()
388 const sns_smgr_buffering_sample_index_s_v01& sensorIndex) { in populateThreeAxisEvent() argument
389 populateSensorDataHeader(sensorType, &data->header, sensorIndex); in populateThreeAxisEvent()
391 for (size_t i = 0; i < sensorIndex.SampleCount; i++) { in populateThreeAxisEvent()
393 bufferingIndMsg.Samples[i + sensorIndex.FirstSampleIdx]; in populateThreeAxisEvent()
417 const sns_smgr_buffering_sample_index_s_v01& sensorIndex) { in populateFloatEvent() argument
418 populateSensorDataHeader(sensorType, &data->header, sensorIndex); in populateFloatEvent()
420 for (size_t i = 0; i < sensorIndex.SampleCount; i++) { in populateFloatEvent()
[all …]