Searched refs:mBatteryListener (Results 1 – 2 of 2) sorted by relevance
80 private OnBatteryChangedListener mBatteryListener; field in BatteryBroadcastReceiver93 mBatteryListener = lsn; in setBatteryChangedListener()113 if (intent == null || mBatteryListener == null) { in updateBatteryStatus()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()[all …]
57 @Mock private BatteryBroadcastReceiver.OnBatteryChangedListener mBatteryListener; field in BatteryBroadcastReceiverTest72 mBatteryBroadcastReceiver.setBatteryChangedListener(mBatteryListener); in setUp()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()[all …]