Home
last modified time | relevance | path

Searched refs:getPercentOfTotal (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryDiffEntryTest.java85 assertThat(entry.getPercentOfTotal()).isEqualTo(22.0); in testSetTotalConsumePower_returnExpectedResult()
99 assertThat(entry.getPercentOfTotal()).isEqualTo(0); in testSetTotalConsumePower_setZeroValue_returnsZeroValue()
111 assertThat(entryList.get(0).getPercentOfTotal()).isEqualTo(30); in testComparator_sortCollectionsInDescOrder()
112 assertThat(entryList.get(1).getPercentOfTotal()).isEqualTo(20); in testComparator_sortCollectionsInDescOrder()
113 assertThat(entryList.get(2).getPercentOfTotal()).isEqualTo(10); in testComparator_sortCollectionsInDescOrder()
DConvertUtilsTest.java424 assertThat((int) entry.getPercentOfTotal()).isEqualTo(percentOfTotal); in assertBatteryDiffEntry()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryDiffEntry.java47 (a, b) -> Double.compare(b.getPercentOfTotal(), a.getPercentOfTotal());
89 public double getPercentOfTotal() { in getPercentOfTotal() method in BatteryDiffEntry
DConvertUtils.java335 if (entry.getPercentOfTotal() < PERCENTAGE_OF_TOTAL_THRESHOLD in purgeLowPercentageAndFakeData()
DBatteryChartPreferenceController.java427 pref.setPercent(entry.getPercentOfTotal()); in addPreferenceToScreen()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java131 mBatteryDiffEntry.getPercentOfTotal(), /* round */ true), in handlePreferenceTreeClick()
218 mBatteryDiffEntry.getPercentOfTotal(), /* round */ true);
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceControllerTest.java172 when(mBatteryDiffEntry.getPercentOfTotal()).thenReturn(60.0); in updateBatteryWithDiffEntry_withConsumePower_summaryPercent()