Home | History | Annotate | Download | only in sensorservice

Lines Matching refs:handle

41 status_t BatteryService::noteStartSensor(int uid, int handle) {
45 data.writeInt32(handle);
52 status_t BatteryService::noteStopSensor(int uid, int handle) {
56 data.writeInt32(handle);
63 bool BatteryService::addSensor(uid_t uid, int handle) {
65 Info key(uid, handle);
75 bool BatteryService::removeSensor(uid_t uid, int handle) {
77 ssize_t index = mActivations.indexOf(Info(uid, handle));
85 void BatteryService::enableSensorImpl(uid_t uid, int handle) {
87 if (addSensor(uid, handle)) {
89 noteStartSensor(uid, handle);
94 void BatteryService::disableSensorImpl(uid_t uid, int handle) {
96 if (removeSensor(uid, handle)) {
98 noteStopSensor(uid, handle);
111 noteStopSensor(info.uid, info.handle);