Home
last modified time | relevance | path

Searched refs:POWER_COMPONENT_SCREEN (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DScreenPowerCalculatorTest.java98 assertThat(uid1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
104 assertThat(uid1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
106 assertThat(uid1.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
110 assertThat(uid2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
116 assertThat(uid2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
118 assertThat(uid2.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
122 assertThat(deviceConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
126 assertThat(deviceConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
128 assertThat(deviceConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
132 assertThat(appsConsumer.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN)) in testMeasuredEnergyBasedModel()
[all …]
DBatteryUsageStatsTest.java116 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, i * 100); in testParcelability_largeNumberOfUids()
364 BatteryConsumer.POWER_COMPONENT_SCREEN, screenPower, screenPowerModel) in addUidBatteryConsumer()
534 BatteryConsumer.POWER_COMPONENT_SCREEN)).isEqualTo(screenPower); in assertUidBatteryConsumer()
536 BatteryConsumer.POWER_COMPONENT_SCREEN)).isEqualTo(screenPowerModel); in assertUidBatteryConsumer()
/frameworks/base/services/core/java/com/android/server/power/stats/
DScreenPowerCalculator.java68 return powerComponent == BatteryConsumer.POWER_COMPONENT_SCREEN; in isPowerComponentSupported()
96 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN, in calculate()
98 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, in calculate()
116 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, in calculate()
118 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN, in calculate()
123 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, totalAppPower, powerModel) in calculate()
124 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN, totalAppDuration); in calculate()
213 app.setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_SCREEN, durationMs) in smearScreenBatteryDrain()
214 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, powerMah, in smearScreenBatteryDrain()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java275 BatteryConsumer.POWER_COMPONENT_SCREEN, 300) in buildBatteryUsageStats()
310 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, in buildBatteryUsageStats()
357 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, 30) in testLargeAtomTruncated()
366 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, 300) in testLargeAtomTruncated()
374 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN, 3) in testLargeAtomTruncated()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java49 POWER_COMPONENT_SCREEN,
72 public static final int POWER_COMPONENT_SCREEN = OsProtoEnums.POWER_COMPONENT_SCREEN; // 0 field in BatteryConsumer
108 sPowerComponentNames[POWER_COMPONENT_SCREEN] = "screen";
DBatteryStats.java4416 CHECKIN_POWER_COMPONENT_LABELS[BatteryConsumer.POWER_COMPONENT_SCREEN] = "scrn";
4728 formatCharge(consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)), in dumpCheckinLocked()
8274 consumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_SCREEN)); in dumpProtoAppsLocked()
8788 case BatteryConsumer.POWER_COMPONENT_SCREEN: in dumpProtoSystemLocked()
8912 || powerComponent == BatteryConsumer.POWER_COMPONENT_SCREEN in shouldHidePowerComponent()
/frameworks/proto_logging/stats/enums/os/
Denums.proto65 POWER_COMPONENT_SCREEN = 0; enumerator