Home
last modified time | relevance | path

Searched refs:usageList (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageAdvanced.java283 usageData.usageList.add(sipper); in parsePowerUsageData()
319 if (usageData.usageList.size() <= 1) { in updateUsageDataSummary()
325 BatterySipper sipper = findBatterySipperWithMaxBatteryUsage(usageData.usageList); in updateUsageDataSummary()
346 BatterySipper findBatterySipperWithMaxBatteryUsage(List<BatterySipper> usageList) { in findBatterySipperWithMaxBatteryUsage() argument
347 BatterySipper sipper = usageList.get(0); in findBatterySipperWithMaxBatteryUsage()
348 for (int i = 1, size = usageList.size(); i < size; i++) { in findBatterySipperWithMaxBatteryUsage()
349 final BatterySipper comparedSipper = usageList.get(i); in findBatterySipperWithMaxBatteryUsage()
414 public List<BatterySipper> usageList; field in PowerUsageAdvanced.PowerUsageData
426 usageList = new ArrayList<>(); in PowerUsageData()
DPowerUsageSummary.java563 final List<BatterySipper> usageList = getCoalescedUsageList( in refreshAppListGroup() local
566 mBatteryUtils.removeHiddenBatterySippers(usageList); in refreshAppListGroup()
567 mBatteryUtils.sortUsageList(usageList); in refreshAppListGroup()
569 final int numSippers = usageList.size(); in refreshAppListGroup()
571 final BatterySipper sipper = usageList.get(i); in refreshAppListGroup()
663 BatterySipper findBatterySipperByType(List<BatterySipper> usageList, DrainType type) { in findBatterySipperByType() argument
664 for (int i = 0, size = usageList.size(); i < size; i++) { in findBatterySipperByType()
665 final BatterySipper sipper = usageList.get(i); in findBatterySipperByType()
DBatteryUtils.java320 public void sortUsageList(List<BatterySipper> usageList) { in sortUsageList() argument
321 Collections.sort(usageList, new Comparator<BatterySipper>() { in sortUsageList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageAdvancedTest.java219 mPowerUsageData.usageList.add(mNormalBatterySipper); in testUpdateUsageDataSummary_onlyOneApp_showUsageTime()
229 mPowerUsageData.usageList.add(mNormalBatterySipper); in testUpdateUsageDataSummary_typeIdle_showUsageTime()
238 mPowerUsageData.usageList.add(mNormalBatterySipper); in testUpdateUsageDataSummary_moreThanOneApp_showMaxUsageApp()
239 mPowerUsageData.usageList.add(mMaxBatterySipper); in testUpdateUsageDataSummary_moreThanOneApp_showMaxUsageApp()
241 mPowerUsageData.usageList); in testUpdateUsageDataSummary_moreThanOneApp_showMaxUsageApp()
251 mPowerUsageData.usageList.add(mNormalBatterySipper); in testFindBatterySipperWithMaxBatteryUsage_findCorrectOne()
252 mPowerUsageData.usageList.add(mMaxBatterySipper); in testFindBatterySipperWithMaxBatteryUsage_findCorrectOne()
254 mPowerUsageData.usageList); in testFindBatterySipperWithMaxBatteryUsage_findCorrectOne()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppDetailsTest.java433 List<BatterySipper> usageList = new ArrayList<>(); in findTargetSipper_findCorrectSipper() local
434 usageList.add(mBatterySipper); in findTargetSipper_findCorrectSipper()
435 usageList.add(mOtherBatterySipper); in findTargetSipper_findCorrectSipper()
436 doReturn(usageList).when(mBatteryStatsHelper).getUsageList(); in findTargetSipper_findCorrectSipper()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java650 List<BatterySipper> usageList = batteryHelper.getUsageList(); in findTargetSipper() local
651 for (int i = 0, size = usageList.size(); i < size; i++) { in findTargetSipper()
652 BatterySipper sipper = usageList.get(i); in findTargetSipper()
759 final List<BatterySipper> usageList = new ArrayList<>(mBatteryHelper.getUsageList()); in updateBattery() local
760 final double hiddenAmount = mBatteryUtils.removeHiddenBatterySippers(usageList); in updateBattery()