Searched refs:batteryTips (Results 1 – 4 of 4) sorted by relevance
97 public void updateBatteryTips(List<BatteryTip> batteryTips) { in updateBatteryTips() argument98 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() local154 updateBatteryTips(batteryTips); in restoreInstanceState()
106 final List<BatteryTip> batteryTips = worker != null ? worker.getResults() : null; in getSlice() local108 if (batteryTips == null) { in getSlice()113 for (BatteryTip batteryTip : batteryTips) { in getSlice()213 final List<BatteryTip> batteryTips = loader.loadInBackground(); in refreshBatteryTips() local214 for (BatteryTip batteryTip : batteryTips) { in refreshBatteryTips()224 return batteryTips; in refreshBatteryTips()239 final List<BatteryTip> batteryTips = refreshBatteryTips(mContext); in onSlicePinned() local240 updateResults(batteryTips); in onSlicePinned()
92 final List<BatteryTip> batteryTips = mBatteryTipLoader.loadInBackground(); in testLoadBackground_containsAllTipsWithOrder() local94 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()
178 List<BatteryTip> batteryTips = new ArrayList<>(); in testHandlePreferenceTreeClick_noDialog_invokeCallback() local179 batteryTips.add(mBatteryTip); in testHandlePreferenceTreeClick_noDialog_invokeCallback()182 mBatteryTipPreferenceController.updateBatteryTips(batteryTips); in testHandlePreferenceTreeClick_noDialog_invokeCallback()