Home
last modified time | relevance | path

Searched refs:sensor_handle (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorDevice.cpp760 const int sensor_handle = mActivationCount.keyAt(i); in enableAllSensors() local
762 sensor_handle); in enableAllSensors()
764 sensor_handle, in enableAllSensors()
767 ALOGE_IF(err, "Error calling batch on sensor %d (%s)", sensor_handle, strerror(-err)); in enableAllSensors()
770 err = checkReturnAndGetStatus(mSensors->activate(sensor_handle, 1 /* enabled */)); in enableAllSensors()
771 ALOGE_IF(err, "Error activating sensor %d (%s)", sensor_handle, strerror(-err)); in enableAllSensors()
787 const int sensor_handle = mActivationCount.keyAt(i); in disableAllSensors() local
789 sensor_handle); in disableAllSensors()
790 checkReturn(mSensors->activate(sensor_handle, 0 /* enabled */)); in disableAllSensors()
DSensorEventConnection.cpp242 int32_t sensor_handle = buffer[i].sensor; in sendEvents() local
249 sensor_handle = buffer[i].meta_data.sensor; in sendEvents()
252 ssize_t index = mSensorInfo.indexOfKey(sensor_handle); in sendEvents()
295 } while ((i<numEvents) && ((buffer[i].sensor == sensor_handle && in sendEvents()
298 buffer[i].meta_data.sensor == sensor_handle))); in sendEvents()
DSensorService.cpp809 const int sensor_handle = mSensorEventBuffer[i].meta_data.sensor; in threadLoop() local
810 SensorRecord* rec = mActiveSensors.valueFor(sensor_handle); in threadLoop()