Searched refs:usageList (Results 1 – 6 of 6) sorted by relevance
283 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() argument347 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.PowerUsageData426 usageList = new ArrayList<>(); in PowerUsageData()
563 final List<BatterySipper> usageList = getCoalescedUsageList( in refreshAppListGroup() local566 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() argument664 for (int i = 0, size = usageList.size(); i < size; i++) { in findBatterySipperByType()665 final BatterySipper sipper = usageList.get(i); in findBatterySipperByType()
320 public void sortUsageList(List<BatterySipper> usageList) { in sortUsageList() argument321 Collections.sort(usageList, new Comparator<BatterySipper>() { in sortUsageList()
219 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()
433 List<BatterySipper> usageList = new ArrayList<>(); in findTargetSipper_findCorrectSipper() local434 usageList.add(mBatterySipper); in findTargetSipper_findCorrectSipper()435 usageList.add(mOtherBatterySipper); in findTargetSipper_findCorrectSipper()436 doReturn(usageList).when(mBatteryStatsHelper).getUsageList(); in findTargetSipper_findCorrectSipper()
650 List<BatterySipper> usageList = batteryHelper.getUsageList(); in findTargetSipper() local651 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() local760 final double hiddenAmount = mBatteryUtils.removeHiddenBatterySippers(usageList); in updateBattery()