Lines Matching refs:handle
36 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument
38 Info key(uid, handle); in addSensor()
48 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument
50 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor()
58 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument
60 if (addSensor(uid, handle)) { in enableSensorImpl()
62 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl()
67 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument
69 if (removeSensor(uid, handle)) { in disableSensorImpl()
71 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl()
77 void BatteryService::noteWakeupSensorEventImpl(int64_t elapsedNanos, uid_t uid, int handle) { in noteWakeupSensorEventImpl() argument
80 mBatteryStatService->noteWakeupSensorEvent(elapsedNanos, uid, handle); in noteWakeupSensorEventImpl()