Home
last modified time | relevance | path

Searched refs:BatteryUpdateType (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()
58 BatteryUpdateType.MANUAL,
59 BatteryUpdateType.BATTERY_LEVEL,
60 BatteryUpdateType.BATTERY_SAVER,
61 BatteryUpdateType.BATTERY_STATUS,
62 BatteryUpdateType.BATTERY_HEALTH,
63 BatteryUpdateType.CHARGING_STATUS,
64 BatteryUpdateType.BATTERY_NOT_PRESENT
66 public @interface BatteryUpdateType { annotation in BatteryBroadcastReceiver
141 mBatteryListener.onBatteryChanged(BatteryUpdateType.BATTERY_NOT_PRESENT); in updateBatteryStatus()
[all …]
DTopLevelBatteryPreferenceController.java57 if (type == BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_NOT_PRESENT) { in TopLevelBatteryPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiverTest.java18 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
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()
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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageBaseTest.java76 bundle.putInt(KEY_REFRESH_TYPE, BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader()
84 BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader()
96 bundle.putInt(KEY_REFRESH_TYPE, BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_loaderReset_initLoader()
104 BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_loaderReset_initLoader()
116 bundle.putInt(KEY_REFRESH_TYPE, BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_nullLoader_initLoader()
123 BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_nullLoader_initLoader()
DPowerUsageSummaryTest.java195 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_contextNull_doNothing()
204 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_batteryNotPresent_doNothing()
217 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_deviceRotate_doNotUpdateBatteryTip()
230 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_LEVEL); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
244 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_tipNeedUpdate_updateBatteryTip()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageBase.java18 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
82 if (type == BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_NOT_PRESENT) { in onCreate()
125 protected void onLoadFinished(@BatteryUpdateType int refreshType) { in onLoadFinished()
129 protected abstract void refreshUi(@BatteryUpdateType int refreshType); in refreshUi()
DPowerUsageSummary.java19 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
194 protected void refreshUi(@BatteryUpdateType int refreshType) { in refreshUi()
205 if (mNeedUpdateBatteryTip && refreshType != BatteryUpdateType.BATTERY_LEVEL) { in refreshUi()
252 protected void restartBatteryStatsLoader(@BatteryUpdateType int refreshType) { in restartBatteryStatsLoader()
DPowerUsageAdvanced.java18 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
82 restartBatteryStatsLoader(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL);
178 protected void refreshUi(@BatteryUpdateType int refreshType) { in refreshUi()