Lines Matching refs:uid
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::cleanupImpl(uid_t uid) { in cleanupImpl() argument
83 if (info.uid == uid) { in cleanupImpl()
84 mBatteryStatService->noteStopSensor(info.uid, info.handle); in cleanupImpl()