Lines Matching defs:BatteryNotifier
17 #define LOG_TAG "BatteryNotifier"
20 #include "include/mediautils/BatteryNotifier.h"
28 void BatteryNotifier::DeathNotifier::binderDied(const wp<IBinder>& /*who*/) {
29 BatteryNotifier::getInstance().onBatteryStatServiceDied();
32 BatteryNotifier::BatteryNotifier() : mVideoRefCount(0), mAudioRefCount(0) {}
34 BatteryNotifier::~BatteryNotifier() {
41 void BatteryNotifier::noteStartVideo() {
50 void BatteryNotifier::noteStopVideo() {
65 void BatteryNotifier::noteResetVideo() {
74 void BatteryNotifier::noteStartAudio() {
83 void BatteryNotifier::noteStopAudio() {
98 void BatteryNotifier::noteResetAudio() {
107 void BatteryNotifier::noteFlashlightOn(const String8& id, int uid) {
120 void BatteryNotifier::noteFlashlightOff(const String8& id, int uid) {
133 void BatteryNotifier::noteResetFlashlight() {
142 void BatteryNotifier::noteStartCamera(const String8& id, int uid) {
154 void BatteryNotifier::noteStopCamera(const String8& id, int uid) {
166 void BatteryNotifier::noteResetCamera() {
175 void BatteryNotifier::onBatteryStatServiceDied() {
186 sp<IBatteryStats> BatteryNotifier::getBatteryService_l() {
219 ANDROID_SINGLETON_STATIC_INSTANCE(BatteryNotifier);