Home
last modified time | relevance | path

Searched refs:batteryTips (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipPreferenceController.java96 public void updateBatteryTips(List<BatteryTip> batteryTips) { in updateBatteryTips() argument
97 if (batteryTips == null) { in updateBatteryTips()
100 mBatteryTips = batteryTips; in updateBatteryTips()
102 for (int i = 0, size = batteryTips.size(); i < size; i++) { in updateBatteryTips()
149 List<BatteryTip> batteryTips = bundle.getParcelableArrayList(KEY_BATTERY_TIPS); in restoreInstanceState() local
150 updateBatteryTips(batteryTips); in restoreInstanceState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java90 final List<BatteryTip> batteryTips = mBatteryTipLoader.loadInBackground(); in testLoadBackground_containsAllTipsWithOrder() local
92 assertThat(batteryTips.size()).isEqualTo(TIP_ORDER.length); in testLoadBackground_containsAllTipsWithOrder()
93 for (int i = 0, size = batteryTips.size(); i < size; i++) { in testLoadBackground_containsAllTipsWithOrder()
94 assertThat(batteryTips.get(i).getType()).isEqualTo(TIP_ORDER[i]); in testLoadBackground_containsAllTipsWithOrder()
DBatteryTipPreferenceControllerTest.java123 List<BatteryTip> batteryTips = new ArrayList<>(); in handlePreferenceTreeClick_noDialog_invokeCallback() local
124 batteryTips.add(mBatteryTip); in handlePreferenceTreeClick_noDialog_invokeCallback()
127 mBatteryTipPreferenceController.updateBatteryTips(batteryTips); in handlePreferenceTreeClick_noDialog_invokeCallback()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySettingsFeatureProviderImpl.java51 List<BatteryTip> batteryTips, in addBatteryTipDetector() argument
54 batteryTips.add(new LowBatteryDetector(context, batteryTipPolicy, batteryInfo).detect()); in addBatteryTipDetector()
DBatterySettingsFeatureProvider.java44 List<BatteryTip> batteryTips, in addBatteryTipDetector() argument