Home
last modified time | relevance | path

Searched refs:mBatterySaverReceiver (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverReceiverTest.java37 private BatterySaverReceiver mBatterySaverReceiver; field in BatterySaverReceiverTest
43 mBatterySaverReceiver = new BatterySaverReceiver(mContext); in setUp()
44 mBatterySaverReceiver.setBatterySaverListener(mBatterySaverListener); in setUp()
52 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_devicePluggedIn_pluggedInTrue()
62 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()
71 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_powerSaveModeChanged_invokeCallback()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java45 private final BatterySaverReceiver mBatterySaverReceiver; field in BatterySaverButtonPreferenceController
54 mBatterySaverReceiver = new BatterySaverReceiver(context); in BatterySaverButtonPreferenceController()
55 mBatterySaverReceiver.setBatterySaverListener(this); in BatterySaverButtonPreferenceController()
81 mBatterySaverReceiver.setListening(true); in onStart()
86 mBatterySaverReceiver.setListening(false); in onStop()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeObserver.java36 private final BroadcastReceiver mBatterySaverReceiver = new BroadcastReceiver() { field in DarkModeObserver
85 mBatterySaverReceiver, batteryFilter); in subscribe()
94 mContext.unregisterReceiver(mBatterySaverReceiver); in unsubscribe()