Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipPreferenceController.java97 public void updateBatteryTips(List<BatteryTip> batteryTips) { in updateBatteryTips() argument
98 if (batteryTips == null) { in updateBatteryTips()
102 mBatteryTips = batteryTips; in updateBatteryTips()
105 for (int i = 0, size = batteryTips.size(); i < size; i++) { in updateBatteryTips()
106 mBatteryTips.get(i).updateState(batteryTips.get(i)); in updateBatteryTips()
111 for (int i = 0, size = batteryTips.size(); i < size; i++) { in updateBatteryTips()
153 List<BatteryTip> batteryTips = bundle.getParcelableArrayList(KEY_BATTERY_TIPS); in restoreInstanceState() local
154 updateBatteryTips(batteryTips); in restoreInstanceState()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBatteryFixSlice.java106 final List<BatteryTip> batteryTips = worker != null ? worker.getResults() : null; in getSlice() local
108 if (batteryTips == null) { in getSlice()
113 for (BatteryTip batteryTip : batteryTips) { in getSlice()
213 final List<BatteryTip> batteryTips = loader.loadInBackground(); in refreshBatteryTips() local
214 for (BatteryTip batteryTip : batteryTips) { in refreshBatteryTips()
224 return batteryTips; in refreshBatteryTips()
239 final List<BatteryTip> batteryTips = refreshBatteryTips(mContext); in onSlicePinned() local
240 updateResults(batteryTips); in onSlicePinned()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java92 final List<BatteryTip> batteryTips = mBatteryTipLoader.loadInBackground(); in testLoadBackground_containsAllTipsWithOrder() local
94 assertThat(batteryTips.size()).isEqualTo(TIP_ORDER.length); in testLoadBackground_containsAllTipsWithOrder()
95 for (int i = 0, size = batteryTips.size(); i < size; i++) { in testLoadBackground_containsAllTipsWithOrder()
96 assertThat(batteryTips.get(i).getType()).isEqualTo(TIP_ORDER[i]); in testLoadBackground_containsAllTipsWithOrder()
DBatteryTipPreferenceControllerTest.java178 List<BatteryTip> batteryTips = new ArrayList<>(); in testHandlePreferenceTreeClick_noDialog_invokeCallback() local
179 batteryTips.add(mBatteryTip); in testHandlePreferenceTreeClick_noDialog_invokeCallback()
182 mBatteryTipPreferenceController.updateBatteryTips(batteryTips); in testHandlePreferenceTreeClick_noDialog_invokeCallback()