Home
last modified time | relevance | path

Searched refs:batteryUsageDiff (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtils.java576 Context context, final BatteryUsageDiff batteryUsageDiff) { in convertToBatteryDiffEntry() argument
579 batteryUsageDiff.getUid(), in convertToBatteryDiffEntry()
580 batteryUsageDiff.getUserId(), in convertToBatteryDiffEntry()
581 batteryUsageDiff.getKey(), in convertToBatteryDiffEntry()
582 batteryUsageDiff.getIsHidden(), in convertToBatteryDiffEntry()
583 batteryUsageDiff.getComponentId(), in convertToBatteryDiffEntry()
584 batteryUsageDiff.getPackageName(), in convertToBatteryDiffEntry()
585 batteryUsageDiff.getLabel(), in convertToBatteryDiffEntry()
586 batteryUsageDiff.getConsumerType(), in convertToBatteryDiffEntry()
587 batteryUsageDiff.getForegroundUsageTime(), in convertToBatteryDiffEntry()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java390 final BatteryUsageDiff batteryUsageDiff = in convertToBatteryUsageDiff_returnsExpectedResult() local
393 assertThat(batteryUsageDiff.getUid()).isEqualTo(101L); in convertToBatteryUsageDiff_returnsExpectedResult()
394 assertThat(batteryUsageDiff.getUserId()).isEqualTo(1001L); in convertToBatteryUsageDiff_returnsExpectedResult()
395 assertThat(batteryUsageDiff.getIsHidden()).isFalse(); in convertToBatteryUsageDiff_returnsExpectedResult()
396 assertThat(batteryUsageDiff.getComponentId()).isEqualTo(-1); in convertToBatteryUsageDiff_returnsExpectedResult()
397 assertThat(batteryUsageDiff.getConsumerType()) in convertToBatteryUsageDiff_returnsExpectedResult()
399 assertThat(batteryUsageDiff.getConsumePower()).isEqualTo(1.1); in convertToBatteryUsageDiff_returnsExpectedResult()
400 assertThat(batteryUsageDiff.getForegroundUsageConsumePower()).isEqualTo(1.2); in convertToBatteryUsageDiff_returnsExpectedResult()
401 assertThat(batteryUsageDiff.getForegroundServiceUsageConsumePower()).isEqualTo(1.3); in convertToBatteryUsageDiff_returnsExpectedResult()
402 assertThat(batteryUsageDiff.getBackgroundUsageConsumePower()).isEqualTo(1.4); in convertToBatteryUsageDiff_returnsExpectedResult()
[all …]