Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessor.java284 for (int dailyIndex = 0; dailyIndex < hourlyBatteryLevelsPerDay.size(); dailyIndex++) { in generateAppUsagePeriodMap()
287 resultMap.put(dailyIndex, dailyMap); in generateAppUsagePeriodMap()
288 if (hourlyBatteryLevelsPerDay.get(dailyIndex) == null) { in generateAppUsagePeriodMap()
291 final List<Long> timestamps = hourlyBatteryLevelsPerDay.get(dailyIndex).getTimestamps(); in generateAppUsagePeriodMap()
531 for (int dailyIndex = 0; dailyIndex < hourlyBatteryLevelsPerDay.size(); dailyIndex++) { in getBatteryDiffDataMap()
532 if (hourlyBatteryLevelsPerDay.get(dailyIndex) == null) { in getBatteryDiffDataMap()
536 hourlyBatteryLevelsPerDay.get(dailyIndex).getTimestamps(); in getBatteryDiffDataMap()
541 hourlyBatteryLevelsPerDay.get(dailyIndex).getLevels().get(hourlyIndex); in getBatteryDiffDataMap()
543 hourlyBatteryLevelsPerDay.get(dailyIndex).getLevels().get(hourlyIndex + 1); in getBatteryDiffDataMap()
569 || appUsagePeriodMap.get(dailyIndex) == null in getBatteryDiffDataMap()
[all …]
DBatteryLevelData.java217 for (int dailyIndex = 0; dailyIndex < dailyTimestamps.size() - 1; dailyIndex++) { in getHourlyTimestamps()
219 final long startTime = dailyTimestamps.get(dailyIndex); in getHourlyTimestamps()
220 final long endTime = dailyTimestamps.get(dailyIndex + 1); in getHourlyTimestamps()
DConvertUtils.java339 for (int dailyIndex = 0; dailyIndex < dailyDataSize; dailyIndex++) { in convertToBatteryEventList()
341 levelDataList.get(dailyIndex); in convertToBatteryEventList()
346 if (dailyIndex < dailyDataSize - 1 && hourIndex == hourDataSize - 1) { in convertToBatteryEventList()
DPowerUsageAdvanced.java240 final int dailyIndex = mBatteryChartPreferenceController.getDailyChartIndex(); in onSelectedSlotDataUpdated() local
248 final BatteryDiffData slotUsageData = mBatteryUsageMap.get(dailyIndex).get(hourlyIndex); in onSelectedSlotDataUpdated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessManagerTest.java516 for (int dailyIndex = 0; dailyIndex < expectedHourlySize; dailyIndex++) { in verifyExpectedHourlyBatteryLevelData()
517 assertThat(hourlyResultData.get(dailyIndex).getTimestamps()) in verifyExpectedHourlyBatteryLevelData()
518 .isEqualTo(expectedHourlyTimestamps.get(dailyIndex)); in verifyExpectedHourlyBatteryLevelData()
519 assertThat(hourlyResultData.get(dailyIndex).getLevels()) in verifyExpectedHourlyBatteryLevelData()
520 .isEqualTo(expectedHourlyLevels.get(dailyIndex)); in verifyExpectedHourlyBatteryLevelData()
DDataProcessorTest.java2502 for (int dailyIndex = 0; dailyIndex < expectedHourlySize; dailyIndex++) { in verifyExpectedHourlyBatteryLevelData()
2503 assertThat(hourlyResultData.get(dailyIndex).getTimestamps()) in verifyExpectedHourlyBatteryLevelData()
2504 .isEqualTo(expectedHourlyTimestamps.get(dailyIndex)); in verifyExpectedHourlyBatteryLevelData()
2505 assertThat(hourlyResultData.get(dailyIndex).getLevels()) in verifyExpectedHourlyBatteryLevelData()
2506 .isEqualTo(expectedHourlyLevels.get(dailyIndex)); in verifyExpectedHourlyBatteryLevelData()