Lines Matching refs:batteryService

43     sp<IBatteryStats> batteryService = getBatteryService_l();  in noteStartVideo()  local
44 if (mVideoRefCounts[uid] == 0 && batteryService != nullptr) { in noteStartVideo()
45 batteryService->noteStartVideo(uid); in noteStartVideo()
57 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteStopVideo() local
61 if (batteryService != nullptr) { in noteStopVideo()
62 batteryService->noteStopVideo(uid); in noteStopVideo()
70 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteResetVideo() local
72 if (batteryService != nullptr) { in noteResetVideo()
73 batteryService->noteResetVideo(); in noteResetVideo()
79 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteStartAudio() local
80 if (mAudioRefCounts[uid] == 0 && batteryService != nullptr) { in noteStartAudio()
81 batteryService->noteStartAudio(uid); in noteStartAudio()
93 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteStopAudio() local
97 if (batteryService != nullptr) { in noteStopAudio()
98 batteryService->noteStopAudio(uid); in noteStopAudio()
106 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteResetAudio() local
108 if (batteryService != nullptr) { in noteResetAudio()
109 batteryService->noteResetAudio(); in noteResetAudio()
115 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteFlashlightOn() local
120 if (batteryService != nullptr) { in noteFlashlightOn()
121 batteryService->noteFlashlightOn(uid); in noteFlashlightOn()
128 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteFlashlightOff() local
133 if (batteryService != nullptr) { in noteFlashlightOff()
134 batteryService->noteFlashlightOff(uid); in noteFlashlightOff()
141 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteResetFlashlight() local
143 if (batteryService != nullptr) { in noteResetFlashlight()
144 batteryService->noteResetFlashlight(); in noteResetFlashlight()
150 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteStartCamera() local
154 if (batteryService != nullptr) { in noteStartCamera()
155 batteryService->noteStartCamera(uid); in noteStartCamera()
162 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteStopCamera() local
166 if (batteryService != nullptr) { in noteStopCamera()
167 batteryService->noteStopCamera(uid); in noteStopCamera()
174 sp<IBatteryStats> batteryService = getBatteryService_l(); in noteResetCamera() local
176 if (batteryService != nullptr) { in noteResetCamera()
177 batteryService->noteResetCamera(); in noteResetCamera()