Home
last modified time | relevance | path

Searched refs:SELECTED_INDEX_ALL (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartPreferenceController.java85 @VisibleForTesting int mDailyChartIndex = BatteryChartViewModel.SELECTED_INDEX_ALL;
86 @VisibleForTesting int mHourlyChartIndex = BatteryChartViewModel.SELECTED_INDEX_ALL;
201 mDailyChartIndex = BatteryChartViewModel.SELECTED_INDEX_ALL; in onBatteryLevelDataUpdate()
202 mHourlyChartIndex = BatteryChartViewModel.SELECTED_INDEX_ALL; in onBatteryLevelDataUpdate()
299 mHourlyChartIndex = BatteryChartViewModel.SELECTED_INDEX_ALL; in setBatteryChartViewInner()
307 trapezoidIndex == BatteryChartViewModel.SELECTED_INDEX_ALL in setBatteryChartViewInner()
318 if (mDailyChartIndex == BatteryChartViewModel.SELECTED_INDEX_ALL) { in setBatteryChartViewInner()
334 trapezoidIndex == BatteryChartViewModel.SELECTED_INDEX_ALL in setBatteryChartViewInner()
382 mDailyChartIndex = BatteryChartViewModel.SELECTED_INDEX_ALL; in refreshUi()
389 if (mDailyChartIndex == BatteryChartViewModel.SELECTED_INDEX_ALL) { in refreshUi()
[all …]
DBatteryChartViewModel.java31 public static final int SELECTED_INDEX_ALL = -1; field in BatteryChartViewModel
65 private int mSelectedIndex = SELECTED_INDEX_ALL;
122 final int textIndex = index != SELECTED_INDEX_ALL ? index : size(); in getSlotBatteryLevelText()
DDataProcessor.java95 static final int SELECTED_INDEX_ALL = BatteryChartViewModel.SELECTED_INDEX_ALL; field in DataProcessor
601 allUsageMap.put(SELECTED_INDEX_ALL, batteryDiffData); in generateBatteryUsageMap()
602 resultMap.put(SELECTED_INDEX_ALL, allUsageMap); in generateBatteryUsageMap()
918 batteryUsageMap.get(SELECTED_INDEX_ALL).get(SELECTED_INDEX_ALL); in loadLabelAndIcon()
1299 SELECTED_INDEX_ALL, in insertDailyUsageDiffData()
1309 .forEach(key -> diffDataList.add(resultMap.get(key).get(SELECTED_INDEX_ALL))); in insertAllUsageDiffData()
1311 allUsageMap.put(SELECTED_INDEX_ALL, getAccumulatedUsageDiffData(context, diffDataList)); in insertAllUsageDiffData()
1312 resultMap.put(SELECTED_INDEX_ALL, allUsageMap); in insertAllUsageDiffData()
1828 if (batteryUsageMap.get(SELECTED_INDEX_ALL) == null in isUsageMapValid()
1829 || !batteryUsageMap.get(SELECTED_INDEX_ALL).containsKey(SELECTED_INDEX_ALL)) { in isUsageMapValid()
[all …]
DPowerUsageAdvanced.java461 .get(BatteryChartViewModel.SELECTED_INDEX_ALL) in getAllBatteryDiffData()
462 .get(BatteryChartViewModel.SELECTED_INDEX_ALL); in getAllBatteryDiffData()
DBatteryChartView.java299 ? BatteryChartViewModel.SELECTED_INDEX_ALL in onTrapezoidClicked()
626 == BatteryChartViewModel.SELECTED_INDEX_ALL) in drawTrapezoids()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartPreferenceControllerTest.java19 import static com.android.settings.fuelgauge.batteryusage.BatteryChartViewModel.SELECTED_INDEX_ALL;
268 mBatteryChartPreferenceController.mHourlyChartIndex = SELECTED_INDEX_ALL; in setBatteryChartViewModel_60Hours()
310 mBatteryChartPreferenceController.mDailyChartIndex = SELECTED_INDEX_ALL; in onBatteryLevelDataUpdate_selectAllForMultipleDays_showDailyChartOnly()
399 mBatteryChartPreferenceController.mDailyChartIndex = SELECTED_INDEX_ALL; in selectedSlotText_selectAllDaysAllHours_returnNull()
400 mBatteryChartPreferenceController.mHourlyChartIndex = SELECTED_INDEX_ALL; in selectedSlotText_selectAllDaysAllHours_returnNull()
412 mBatteryChartPreferenceController.mHourlyChartIndex = SELECTED_INDEX_ALL; in selectedSlotText_onlyOneDayDataSelectAllHours_returnNull()
424 mBatteryChartPreferenceController.mHourlyChartIndex = SELECTED_INDEX_ALL; in selectedSlotText_selectADayAllHours_onlyDayText()
DDataProcessorTest.java1184 .get(DataProcessor.SELECTED_INDEX_ALL) in generateBatteryUsageMap_returnsExpectedResult()
1185 .get(DataProcessor.SELECTED_INDEX_ALL); in generateBatteryUsageMap_returnsExpectedResult()
1226 resultDiffData = resultMap.get(0).get(DataProcessor.SELECTED_INDEX_ALL); in generateBatteryUsageMap_returnsExpectedResult()
1240 resultDiffData = resultMap.get(1).get(DataProcessor.SELECTED_INDEX_ALL); in generateBatteryUsageMap_returnsExpectedResult()
1466 .get(DataProcessor.SELECTED_INDEX_ALL) in generateBatteryUsageMap_multipleUsers_returnsExpectedResult()
1467 .get(DataProcessor.SELECTED_INDEX_ALL); in generateBatteryUsageMap_multipleUsers_returnsExpectedResult()
1484 assertThat(resultMap.get(0).get(DataProcessor.SELECTED_INDEX_ALL)).isNotNull(); in generateBatteryUsageMap_multipleUsers_returnsExpectedResult()
1582 .get(DataProcessor.SELECTED_INDEX_ALL) in generateBatteryUsageMap_usageTimeExceed_returnsExpectedResult()
1583 .get(DataProcessor.SELECTED_INDEX_ALL); in generateBatteryUsageMap_usageTimeExceed_returnsExpectedResult()
1602 assertThat(resultMap.get(0).get(DataProcessor.SELECTED_INDEX_ALL)).isNotNull(); in generateBatteryUsageMap_usageTimeExceed_returnsExpectedResult()
[all …]
DBatteryChartViewTest.java92 assertThat(selectedIndex[0]).isEqualTo(BatteryChartViewModel.SELECTED_INDEX_ALL); in onClick_invokesCallback()