Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorDevice.cpp341 const int sensor_handle = mActivationCount.keyAt(i); in enableAllSensors() local
343 sensor_handle); in enableAllSensors()
346 err = mSensorDevice->batch(mSensorDevice, sensor_handle, in enableAllSensors()
349 ALOGE_IF(err, "Error calling batch on sensor %d (%s)", sensor_handle, strerror(-err)); in enableAllSensors()
355 sensor_handle, 1); in enableAllSensors()
356 ALOGE_IF(err, "Error activating sensor %d (%s)", sensor_handle, strerror(-err)); in enableAllSensors()
362 sensor_handle, info.bestBatchParams.batchDelay); in enableAllSensors()
363 ALOGE_IF(err, "Error calling setDelay sensor %d (%s)", sensor_handle, strerror(-err)); in enableAllSensors()
374 const int sensor_handle = mActivationCount.keyAt(i); in disableAllSensors() local
376 sensor_handle); in disableAllSensors()
[all …]
DSensorService.cpp572 const int sensor_handle = mSensorEventBuffer[i].meta_data.sensor; in threadLoop() local
573 SensorRecord* rec = mActiveSensors.valueFor(sensor_handle); in threadLoop()
1540 int32_t sensor_handle = buffer[i].sensor; in sendEvents() local
1547 sensor_handle = buffer[i].meta_data.sensor; in sendEvents()
1549 ssize_t index = mSensorInfo.indexOfKey(sensor_handle); in sendEvents()
1589 } while ((i<numEvents) && ((buffer[i].sensor == sensor_handle && in sendEvents()
1592 buffer[i].meta_data.sensor == sensor_handle))); in sendEvents()
1714 const int sensor_handle = mSensorInfo.keyAt(i); in sendPendingFlushEventsLocked() local
1715 flushCompleteEvent.meta_data.sensor = sensor_handle; in sendPendingFlushEventsLocked()
1716 bool wakeUpSensor = mService->getSensorFromHandle(sensor_handle).isWakeUpSensor(); in sendPendingFlushEventsLocked()