Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java53 void onBatteryChanged(@BatteryUpdateType int type); in onBatteryChanged() method
141 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_NOT_PRESENT); in updateBatteryStatus()
143 mBatteryListener.onBatteryChanged(BatteryUpdateType.MANUAL); in updateBatteryStatus()
145 mBatteryListener.onBatteryChanged(BatteryUpdateType.CHARGING_STATUS); in updateBatteryStatus()
147 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_HEALTH); in updateBatteryStatus()
149 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_LEVEL); in updateBatteryStatus()
151 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_STATUS); in updateBatteryStatus()
158 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_SAVER); in updateBatteryStatus()
161 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_STATUS); in updateBatteryStatus()
DBatterySaverReceiver.java50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()
75 void onBatteryChanged(boolean pluggedIn); in onBatteryChanged() method
DBatterySaverController.java135 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 onReceive_batteryLevelChanged_dataUpdated()
102 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_HEALTH); in onReceive_batteryHealthChanged_dataUpdated()
114 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.CHARGING_STATUS); in onReceive_chargingStatusChanged_dataUpdated()
123 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_NOT_PRESENT); in onReceive_batteryNotPresent_shouldShowHelpMessage()
131 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_SAVER); in onReceive_powerSaveModeChanged_listenerInvoked()
150 verify(mBatteryListener, never()).onBatteryChanged(anyInt()); in onReceive_batteryDataNotChanged_listenerNotInvoked()
158 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_STATUS); in onReceive_dockDefenderBypassed_listenerInvoked()
166 verify(mBatteryListener).onBatteryChanged(BatteryUpdateType.BATTERY_STATUS); in onReceive_usbPortComplianceChanged_listenerInvoked()
187 verify(mBatteryListener, times(2)).onBatteryChanged(BatteryUpdateType.MANUAL); in register_updateBatteryStatus()
DBatterySaverReceiverTest.java54 verify(mBatterySaverListener).onBatteryChanged(true); in testOnReceive_devicePluggedIn_pluggedInTrue()
64 verify(mBatterySaverListener).onBatteryChanged(false); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerTest.java106 mController.onBatteryChanged(/* pluggedIn */ true); in onBatteryChanged_pluggedIn_preferenceDisabled()
113 mController.onBatteryChanged(/* pluggedIn */ false); in onBatteryChanged_unplugged_preferenceEnabled()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java107 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverConditionController
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java126 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverButtonPreferenceController