Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessManager.java366 final List<BatteryEvent> batteryEventList = in loadPowerConnectionBatteryEventList() local
372 batteryEventList.size(), (System.currentTimeMillis() - startTime))); in loadPowerConnectionBatteryEventList()
373 return batteryEventList; in loadPowerConnectionBatteryEventList()
378 final List<BatteryEvent> batteryEventList) { in loadPowerConnectionBatteryEventList() argument
379 if (batteryEventList == null || batteryEventList.isEmpty()) { in loadPowerConnectionBatteryEventList()
383 mBatteryEventList.addAll(batteryEventList); in loadPowerConnectionBatteryEventList()
DDatabaseUtils.java234 final List<BatteryEvent> batteryEventList = loadListFromContentProvider( in getBatteryEvents() local
236 Log.d(TAG, String.format("getBatteryEvents size=%d in %d/ms", batteryEventList.size(), in getBatteryEvents()
238 return batteryEventList; in getBatteryEvents()
487 final Context context, final List<BatteryEvent> batteryEventList) { in sendBatteryEventData() argument
491 batteryEventList.stream() in sendBatteryEventData()
DDataProcessor.java282 final List<BatteryEvent> batteryEventList) { in generateAppUsagePeriodMap() argument
290 Collections.sort(batteryEventList, BATTERY_EVENT_TIMESTAMP_COMPARATOR); in generateAppUsagePeriodMap()
313 buildAppUsagePeriodList(context, hourlyAppUsageEventList, batteryEventList, in generateAppUsagePeriodMap()
692 final List<BatteryEvent> batteryEventList, final long startTime, final long endTime) { in buildAppUsagePeriodList() argument
746 batteryEventList); in buildAppUsagePeriodList()
817 final List<BatteryEvent> batteryEventList) { in excludePowerConnectedTimeFromAppUsagePeriodList() argument
822 while (index < batteryEventList.size()) { in excludePowerConnectedTimeFromAppUsagePeriodList()
823 BatteryEvent batteryEvent = batteryEventList.get(index); in excludePowerConnectedTimeFromAppUsagePeriodList()
DConvertUtils.java313 final List<BatteryEvent> batteryEventList = new ArrayList<>(); in convertToBatteryEventList() local
318 batteryEventList.add(convertToBatteryEvent( in convertToBatteryEventList()
324 return batteryEventList; in convertToBatteryEventList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java462 final List<BatteryEvent> batteryEventList = in convertToBatteryEventList_normalCase_returnsExpectedResult() local
465 assertThat(batteryEventList).hasSize(2); in convertToBatteryEventList_normalCase_returnsExpectedResult()
466 assertThat(batteryEventList.get(0).getTimestamp()).isEqualTo(1691589600000L); in convertToBatteryEventList_normalCase_returnsExpectedResult()
467 assertThat(batteryEventList.get(0).getType()).isEqualTo(BatteryEventType.EVEN_HOUR); in convertToBatteryEventList_normalCase_returnsExpectedResult()
468 assertThat(batteryEventList.get(0).getBatteryLevel()).isEqualTo(98); in convertToBatteryEventList_normalCase_returnsExpectedResult()
469 assertThat(batteryEventList.get(1).getTimestamp()).isEqualTo(1691596800000L); in convertToBatteryEventList_normalCase_returnsExpectedResult()
470 assertThat(batteryEventList.get(1).getType()).isEqualTo(BatteryEventType.EVEN_HOUR); in convertToBatteryEventList_normalCase_returnsExpectedResult()
471 assertThat(batteryEventList.get(1).getBatteryLevel()).isEqualTo(90); in convertToBatteryEventList_normalCase_returnsExpectedResult()
DDataProcessorTest.java1630 final List<BatteryEvent> batteryEventList = List.of( in excludePowerConnectedTime_startEndNotCharging_returnExpectedResult() local
1642 appUsagePeriodList, batteryEventList); in excludePowerConnectedTime_startEndNotCharging_returnExpectedResult()
1653 final List<BatteryEvent> batteryEventList = List.of( in excludePowerConnectedTime_startEndInCharging_returnExpectedResult() local
1669 appUsagePeriodList, batteryEventList); in excludePowerConnectedTime_startEndInCharging_returnExpectedResult()
1680 final List<BatteryEvent> batteryEventList = List.of( in excludePowerConnectedTime_wholePeriodNotCharging_returnExpectedResult() local
1688 appUsagePeriodList, batteryEventList); in excludePowerConnectedTime_wholePeriodNotCharging_returnExpectedResult()
1697 final List<BatteryEvent> batteryEventList = List.of( in excludePowerConnectedTime_wholePeriodInCharging_returnExpectedResult() local
1703 appUsagePeriodList, batteryEventList); in excludePowerConnectedTime_wholePeriodInCharging_returnExpectedResult()