Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverReceiver.java32 private BatterySaverListener mBatterySaverListener; field in BatterySaverReceiver
43 if (mBatterySaverListener != null) { in onReceive()
44 mBatterySaverListener.onPowerSaveModeChanged(); in onReceive()
48 if (mBatterySaverListener != null) { in onReceive()
50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()
69 mBatterySaverListener = lsn; in setBatterySaverListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatterySaverReceiver.java32 private BatterySaverListener mBatterySaverListener; field in BatterySaverReceiver
43 if (mBatterySaverListener != null) { in onReceive()
44 mBatterySaverListener.onPowerSaveModeChanged(); in onReceive()
48 if (mBatterySaverListener != null) { in onReceive()
50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()
69 mBatterySaverListener = lsn; in setBatterySaverListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverReceiverTest.java36 private BatterySaverReceiver.BatterySaverListener mBatterySaverListener; field in BatterySaverReceiverTest
46 mBatterySaverReceiver.setBatterySaverListener(mBatterySaverListener); in setUp()
56 verify(mBatterySaverListener).onBatteryChanged(true); in testOnReceive_devicePluggedIn_pluggedInTrue()
66 verify(mBatterySaverListener).onBatteryChanged(false); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()
75 verify(mBatterySaverListener).onPowerSaveModeChanged(); in testOnReceive_powerSaveModeChanged_invokeCallback()