Lines Matching refs:handle
41 status_t BatteryService::noteStartSensor(int uid, int handle) { in noteStartSensor() argument
45 data.writeInt32(handle); in noteStartSensor()
52 status_t BatteryService::noteStopSensor(int uid, int handle) { in noteStopSensor() argument
56 data.writeInt32(handle); 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()
111 noteStopSensor(info.uid, info.handle); in cleanupImpl()