Home
last modified time | relevance | path

Searched refs:mBatteryStatService (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/utils/
DBatteryNotifier.cpp37 IInterface::asBinder(mBatteryStatService)->unlinkToDeath(mDeathNotifier); in ~BatteryNotifier()
177 mBatteryStatService.clear(); in onBatteryStatServiceDied()
187 if (mBatteryStatService != nullptr) { in getBatteryService_l()
188 return mBatteryStatService; in getBatteryService_l()
194 mBatteryStatService = interface_cast<IBatteryStats>(sm->checkService(name)); in getBatteryService_l()
195 if (mBatteryStatService == nullptr) { in getBatteryService_l()
203 IInterface::asBinder(mBatteryStatService)->linkToDeath(mDeathNotifier); in getBatteryService_l()
209 mBatteryStatService->noteStartVideo(AID_MEDIA); in getBatteryService_l()
212 mBatteryStatService->noteStartAudio(AID_AUDIOSERVER); in getBatteryService_l()
216 return mBatteryStatService; in getBatteryService_l()
/frameworks/native/services/sensorservice/
DBatteryService.cpp33 BatteryService::BatteryService() : mBatteryStatService(nullptr) { in BatteryService()
62 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl()
71 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl()
84 mBatteryStatService->noteStopSensor(info.uid, info.handle); in cleanupImpl()
94 if (mBatteryStatService == nullptr) { in checkService()
98 mBatteryStatService = interface_cast<IBatteryStats>(sm->getService(name)); in checkService()
101 return mBatteryStatService != nullptr; in checkService()
DBatteryService.h29 sp<IBatteryStats> mBatteryStatService; variable
/frameworks/av/media/utils/include/mediautils/
DBatteryNotifier.h65 sp<IBatteryStats> mBatteryStatService; variable