Lines Matching refs:handle
41 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument
43 Info key(uid, handle); in addSensor()
53 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument
55 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor()
63 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument
65 if (addSensor(uid, handle)) { in enableSensorImpl()
67 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl()
72 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument
74 if (removeSensor(uid, handle)) { in disableSensorImpl()
76 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl()
89 mBatteryStatService->noteStopSensor(info.uid, info.handle); in cleanupImpl()