/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryLevelDataTest.java | 187 final BatteryLevelData batteryLevelData = in combine_normalFlow_returnExpectedResult() local 203 BatteryLevelData.combine(batteryLevelData, batteryLevelRecordEvents); in combine_normalFlow_returnExpectedResult() 245 final BatteryLevelData batteryLevelData = in getIndexByTimestamps_returnExpectedResult() local 253 assertThat(batteryLevelData.getIndexByTimestamps(0L, 0L)) in getIndexByTimestamps_returnExpectedResult() 258 assertThat(batteryLevelData.getIndexByTimestamps(1694361600000L + 1L, 1694368800000L + 1L)) in getIndexByTimestamps_returnExpectedResult() 263 assertThat(batteryLevelData.getIndexByTimestamps(1694361600000L, 1694368800000L)) in getIndexByTimestamps_returnExpectedResult() 265 assertThat(batteryLevelData.getIndexByTimestamps(1694361600000L + 1L, 1694368800000L - 1L)) in getIndexByTimestamps_returnExpectedResult() 268 batteryLevelData.getIndexByTimestamps( in getIndexByTimestamps_returnExpectedResult()
|
D | DataProcessorTest.java | 941 final BatteryLevelData batteryLevelData = generateBatteryLevelData(batteryHistoryKeys); in getBatteryDiffDataMap_normalFlow_returnExpectedResult() local 958 batteryLevelData.getHourlyBatteryLevelsPerDay(), in getBatteryDiffDataMap_normalFlow_returnExpectedResult() 1146 final BatteryLevelData batteryLevelData = generateBatteryLevelData(batteryHistoryKeys); in generateBatteryUsageMap_returnsExpectedResult() local 1175 batteryLevelData.getHourlyBatteryLevelsPerDay(), in generateBatteryUsageMap_returnsExpectedResult() 1180 batteryLevelData); in generateBatteryUsageMap_returnsExpectedResult() 1449 final BatteryLevelData batteryLevelData = generateBatteryLevelData(batteryHistoryKeys); in generateBatteryUsageMap_multipleUsers_returnsExpectedResult() local 1457 batteryLevelData.getHourlyBatteryLevelsPerDay(), in generateBatteryUsageMap_multipleUsers_returnsExpectedResult() 1462 batteryLevelData); in generateBatteryUsageMap_multipleUsers_returnsExpectedResult() 1554 final BatteryLevelData batteryLevelData = generateBatteryLevelData(batteryHistoryKeys); in generateBatteryUsageMap_usageTimeExceed_returnsExpectedResult() local 1573 batteryLevelData.getHourlyBatteryLevelsPerDay(), in generateBatteryUsageMap_usageTimeExceed_returnsExpectedResult() [all …]
|
D | BatteryChartPreferenceControllerTest.java | 478 BatteryLevelData batteryLevelData = in selectedSlotText_selectFirstSlotAfterTimeUpdated_withMinuteText() local 480 assertThat(batteryLevelData.getHourlyBatteryLevelsPerDay().get(0).isStartTimestamp()) in selectedSlotText_selectFirstSlotAfterTimeUpdated_withMinuteText() 549 BatteryLevelData batteryLevelData = in getTotalHours_getExpectedResult() local 552 final int totalHour = BatteryChartPreferenceController.getTotalHours(batteryLevelData); in getTotalHours_getExpectedResult()
|
D | ConvertUtilsTest.java | 566 final BatteryLevelData batteryLevelData = in convertToBatteryEventList_normalCase_returnsExpectedResult() local 573 ConvertUtils.convertToBatteryEventList(batteryLevelData); in convertToBatteryEventList_normalCase_returnsExpectedResult() 586 final BatteryLevelData batteryLevelData = in convertToBatteryEventList_multipleDays_returnsExpectedResult() local 594 ConvertUtils.convertToBatteryEventList(batteryLevelData); in convertToBatteryEventList_multipleDays_returnsExpectedResult()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryChartPreferenceController.java | 193 void onBatteryLevelDataUpdate(final BatteryLevelData batteryLevelData) { in onBatteryLevelDataUpdate() argument 194 Log.d(TAG, "onBatteryLevelDataUpdate: " + batteryLevelData); in onBatteryLevelDataUpdate() 198 getTotalHours(batteryLevelData)); in onBatteryLevelDataUpdate() 200 if (batteryLevelData == null) { in onBatteryLevelDataUpdate() 210 batteryLevelData.getDailyBatteryLevels().getLevels(), in onBatteryLevelDataUpdate() 211 batteryLevelData.getDailyBatteryLevels().getTimestamps(), in onBatteryLevelDataUpdate() 216 batteryLevelData.getHourlyBatteryLevelsPerDay()) { in onBatteryLevelDataUpdate() 223 batteryLevelData))); in onBatteryLevelDataUpdate() 543 static int getTotalHours(final BatteryLevelData batteryLevelData) { 544 if (batteryLevelData == null) { [all …]
|
D | BatteryUsageDataLoader.java | 121 final BatteryLevelData batteryLevelData = in preprocessBatteryUsageSlots() local 151 if (batteryLevelData == null) { in preprocessBatteryUsageSlots() 157 context, ConvertUtils.convertToBatteryEventList(batteryLevelData)); in preprocessBatteryUsageSlots() 162 batteryLevelData, System.currentTimeMillis() - start)); in preprocessBatteryUsageSlots()
|
D | DataProcessManager.java | 601 final BatteryLevelData batteryLevelData = in getBatteryLevelData() local 618 ? batteryLevelData in getBatteryLevelData() 619 : BatteryLevelData.combine(batteryLevelData, batteryLevelRecordEvents); in getBatteryLevelData() 679 final BatteryLevelData batteryLevelData = in getPeriodBatteryLevelData() local 682 if (batteryLevelData == null) { in getPeriodBatteryLevelData() 699 batteryLevelData.getHourlyBatteryLevelsPerDay(), in getPeriodBatteryLevelData() 703 return batteryLevelData; in getPeriodBatteryLevelData()
|
D | AnomalyEventWrapper.java | 207 boolean hasHighlightSlotPair(BatteryLevelData batteryLevelData) { in hasHighlightSlotPair() argument 209 mHighlightSlotPair = getHighlightSlotPair(batteryLevelData); in hasHighlightSlotPair() 214 Pair<Integer, Integer> getHighlightSlotPair(BatteryLevelData batteryLevelData) { in getHighlightSlotPair() argument 228 batteryLevelData.getIndexByTimestamps(startTimestamp, endTimestamp); in getHighlightSlotPair()
|
D | PowerUsageAdvanced.java | 198 private void onBatteryLevelDataUpdate(BatteryLevelData batteryLevelData) { in onBatteryLevelDataUpdate() argument 202 mBatteryLevelData = Optional.ofNullable(batteryLevelData); in onBatteryLevelDataUpdate() 204 mBatteryChartPreferenceController.onBatteryLevelDataUpdate(batteryLevelData); in onBatteryLevelDataUpdate() 516 Loader<BatteryLevelData> loader, BatteryLevelData batteryLevelData) { in onLoadFinished() argument 517 PowerUsageAdvanced.this.onBatteryLevelDataUpdate(batteryLevelData); in onLoadFinished()
|
D | DataProcessor.java | 145 final BatteryLevelData batteryLevelData = in getBatteryUsageData() local 157 return batteryLevelData == null in getBatteryUsageData() 164 batteryLevelData.getHourlyBatteryLevelsPerDay(), in getBatteryUsageData() 169 batteryLevelData); in getBatteryUsageData() 595 final @Nullable BatteryLevelData batteryLevelData) { in generateBatteryUsageMap() argument 597 if (batteryLevelData == null) { in generateBatteryUsageMap() 606 batteryLevelData.getHourlyBatteryLevelsPerDay(); in generateBatteryUsageMap()
|
D | ConvertUtils.java | 334 final BatteryLevelData batteryLevelData) { in convertToBatteryEventList() argument 337 batteryLevelData.getHourlyBatteryLevelsPerDay(); in convertToBatteryEventList()
|