Searched refs:onBatteryChanged (Results 1 – 8 of 8) sorted by relevance
53 void onBatteryChanged(@BatteryUpdateType int type); in onBatteryChanged() method141 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()
50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()75 void onBatteryChanged(boolean pluggedIn); in onBatteryChanged() method
135 public void onBatteryChanged(boolean pluggedIn) {} in onBatteryChanged() method in BatterySaverController
91 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()
54 verify(mBatterySaverListener).onBatteryChanged(true); in testOnReceive_devicePluggedIn_pluggedInTrue()64 verify(mBatterySaverListener).onBatteryChanged(false); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()
106 mController.onBatteryChanged(/* pluggedIn */ true); in onBatteryChanged_pluggedIn_preferenceDisabled()113 mController.onBatteryChanged(/* pluggedIn */ false); in onBatteryChanged_unplugged_preferenceEnabled()
107 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverConditionController
126 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() method in BatterySaverButtonPreferenceController