Home
last modified time | relevance | path

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

/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()
95 if (mBatteryStatService == nullptr) { in checkService()
99 mBatteryStatService = interface_cast<IBatteryStats>(sm->getService(name)); in checkService()
102 return mBatteryStatService != nullptr; in checkService()
DBatteryService.h29 sp<IBatteryStats> mBatteryStatService; variable
/frameworks/av/media/utils/
DBatteryNotifier.cpp37 IInterface::asBinder(mBatteryStatService)->unlinkToDeath(mDeathNotifier); in ~BatteryNotifier()
183 mBatteryStatService.clear(); in onBatteryStatServiceDied()
193 if (mBatteryStatService != nullptr) { in getBatteryService_l()
194 return mBatteryStatService; in getBatteryService_l()
200 mBatteryStatService = interface_cast<IBatteryStats>(sm->checkService(name)); in getBatteryService_l()
201 if (mBatteryStatService == nullptr) { in getBatteryService_l()
209 IInterface::asBinder(mBatteryStatService)->linkToDeath(mDeathNotifier); in getBatteryService_l()
216 mBatteryStatService->noteStartVideo(it->first); in getBatteryService_l()
220 mBatteryStatService->noteStartAudio(it->first); in getBatteryService_l()
224 return mBatteryStatService; in getBatteryService_l()
/frameworks/av/media/utils/include/mediautils/
DBatteryNotifier.h65 sp<IBatteryStats> mBatteryStatService; variable