Lines Matching refs:uid
41 status_t BatteryService::noteStartSensor(int uid, int handle) { in noteStartSensor() argument
44 data.writeInt32(uid); in noteStartSensor()
52 status_t BatteryService::noteStopSensor(int uid, int handle) { in noteStopSensor() argument
55 data.writeInt32(uid); in noteStopSensor()
63 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument
65 Info key(uid, handle); in addSensor()
75 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument
77 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor()
85 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument
87 if (addSensor(uid, handle)) { in enableSensorImpl()
89 noteStartSensor(uid, handle); in enableSensorImpl()
94 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument
96 if (removeSensor(uid, handle)) { in disableSensorImpl()
98 noteStopSensor(uid, handle); in disableSensorImpl()
104 void BatteryService::cleanupImpl(uid_t uid) { in cleanupImpl() argument
110 if (info.uid == uid) { in cleanupImpl()
111 noteStopSensor(info.uid, info.handle); in cleanupImpl()