Home
last modified time | relevance | path

Searched refs:onBatteryChanged (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java52 void onBatteryChanged(@BatteryUpdateType int type); in onBatteryChanged() method
107 mBatteryListener.onBatteryChanged(BatteryUpdateType.MANUAL); in updateBatteryStatus()
109 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in updateBatteryStatus()
111 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_STATUS); in updateBatteryStatus()
116 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_SAVER); in updateBatteryStatus()
DBatterySaverReceiver.java50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()
74 void onBatteryChanged(boolean pluggedIn); in onBatteryChanged() method
DBatterySaverController.java126 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverController
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryBroadcastReceiver.java52 void onBatteryChanged(@BatteryUpdateType int type); in onBatteryChanged() method
107 mBatteryListener.onBatteryChanged(BatteryUpdateType.MANUAL); in updateBatteryStatus()
109 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in updateBatteryStatus()
111 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_STATUS); in updateBatteryStatus()
116 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_SAVER); in updateBatteryStatus()
DBatterySaverReceiver.java50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()
74 void onBatteryChanged(boolean pluggedIn); in onBatteryChanged() method
DBatterySaverController.java126 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverController
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiverTest.java91 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in testOnReceive_batteryLevelChanged_dataUpdated()
103 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_SAVER); in testOnReceive_powerSaveModeChanged_listenerInvoked()
122 verify(mBatteryListener, never()).onBatteryChanged(anyInt()); in testOnReceive_batteryDataNotChanged_listenerNotInvoked()
141 verify(mBatteryListener, times(2)).onBatteryChanged(BatteryUpdateType.MANUAL); in testRegister_updateBatteryStatus()
DBatterySaverReceiverTest.java56 verify(mBatterySaverListener).onBatteryChanged(true); in testOnReceive_devicePluggedIn_pluggedInTrue()
66 verify(mBatterySaverListener).onBatteryChanged(false); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java107 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverButtonPreferenceController
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java107 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverButtonPreferenceController
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DBatterySaverConditionController.java105 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverConditionController
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java105 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverConditionController