Home
last modified time | relevance | path

Searched refs:powerComponent (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/power/stats/
DAggregatedPowerStatsConfig.java184 PowerComponent powerComponent = mPowerComponents.get(i); in trackPowerComponent() local
185 if (powerComponent.getPowerComponentId() == parentPowerComponentId) { in trackPowerComponent()
186 parent = powerComponent; in trackPowerComponent()
196 PowerComponent powerComponent = trackPowerComponent(powerComponentId); in trackPowerComponent() local
197 powerComponent.mTrackedDeviceStates = parent.mTrackedDeviceStates; in trackPowerComponent()
198 powerComponent.mTrackedUidStates = parent.mTrackedUidStates; in trackPowerComponent()
199 return powerComponent; in trackPowerComponent()
DPowerStatsExporter.java129 AggregatedPowerStatsConfig.PowerComponent powerComponent) { in populateBatteryUsageStatsBuilder() argument
130 int powerComponentId = powerComponent.getPowerComponentId(); in populateBatteryUsageStatsBuilder()
147 MultiStateStats.States.forEachTrackedStateCombination(powerComponent.getDeviceStateConfig(), in populateBatteryUsageStatsBuilder()
168 populateUidBatteryConsumers(batteryUsageStatsBuilder, powerComponent, in populateBatteryUsageStatsBuilder()
175 AggregatedPowerStatsConfig.PowerComponent powerComponent, in populateUidBatteryConsumers() argument
178 int powerComponentId = powerComponent.getPowerComponentId(); in populateUidBatteryConsumers()
184 && powerComponent in populateUidBatteryConsumers()
200 powerComponent.getUidStateConfig(), in populateUidBatteryConsumers()
DPhonePowerCalculator.java38 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
39 return powerComponent == BatteryConsumer.POWER_COMPONENT_PHONE; in isPowerComponentSupported()
DFlashlightPowerCalculator.java40 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
41 return powerComponent == BatteryConsumer.POWER_COMPONENT_FLASHLIGHT; in isPowerComponentSupported()
DIdlePowerCalculator.java48 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
49 return powerComponent == BatteryConsumer.POWER_COMPONENT_IDLE; in isPowerComponentSupported()
DMemoryPowerCalculator.java41 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
42 return powerComponent == BatteryConsumer.POWER_COMPONENT_MEMORY; in isPowerComponentSupported()
DAudioPowerCalculator.java49 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
50 return powerComponent == BatteryConsumer.POWER_COMPONENT_AUDIO; in isPowerComponentSupported()
DCameraPowerCalculator.java42 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
43 return powerComponent == BatteryConsumer.POWER_COMPONENT_CAMERA; in isPowerComponentSupported()
DAmbientDisplayPowerCalculator.java35 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
36 return powerComponent == BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY; in isPowerComponentSupported()
DVideoPowerCalculator.java46 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
47 return powerComponent == BatteryConsumer.POWER_COMPONENT_VIDEO; in isPowerComponentSupported()
DSystemServicePowerCalculator.java61 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
62 return powerComponent == BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES; in isPowerComponentSupported()
DSensorPowerCalculator.java42 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
43 return powerComponent == BatteryConsumer.POWER_COMPONENT_SENSORS; in isPowerComponentSupported()
DAggregatedPowerStats.java210 for (PowerComponentAggregatedPowerStats powerComponent : in createFromXml()
212 if (powerComponent.powerComponentId == powerComponentId) { in createFromXml()
213 if (!powerComponent.readFromXml(parser)) { in createFromXml()
DGnssPowerCalculator.java46 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
47 return powerComponent == BatteryConsumer.POWER_COMPONENT_GNSS; in isPowerComponentSupported()
DWakelockPowerCalculator.java46 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
47 return powerComponent == BatteryConsumer.POWER_COMPONENT_WAKELOCK; in isPowerComponentSupported()
DUserPowerCalculator.java36 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
DPowerCalculator.java39 @BatteryConsumer.PowerComponent int powerComponent); in isPowerComponentSupported()
DBatteryChargeCalculator.java30 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
DBluetoothPowerCalculator.java66 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
67 return powerComponent == BatteryConsumer.POWER_COMPONENT_BLUETOOTH; in isPowerComponentSupported()
DScreenPowerCalculator.java67 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
68 return powerComponent == BatteryConsumer.POWER_COMPONENT_SCREEN; in isPowerComponentSupported()
DCustomEnergyConsumerPowerCalculator.java42 public boolean isPowerComponentSupported(int powerComponent) { in isPowerComponentSupported() argument
DWifiPowerCalculator.java84 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
85 return powerComponent == BatteryConsumer.POWER_COMPONENT_WIFI; in isPowerComponentSupported()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java212 public final @PowerComponent int powerComponent; field in BatteryConsumer.Dimensions
215 public Dimensions(int powerComponent, int processState) { in Dimensions() argument
216 this.powerComponent = powerComponent; in Dimensions()
224 if (powerComponent != POWER_COMPONENT_ANY) { in toString()
225 sb.append("powerComponent=").append(sPowerComponentNames[powerComponent]); in toString()
257 public final @PowerComponent int powerComponent; field in BatteryConsumer.Key
265 private Key(int powerComponent, int processState, int powerModelColumnIndex, in Key() argument
267 this.powerComponent = powerComponent; in Key()
280 return powerComponent == key.powerComponent in equals()
286 int result = powerComponent; in hashCode()
[all …]
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java167 if (slice.powerComponent.component == componentId in assertSameBatteryConsumer()
180 assertThat(sliceProto.powerComponent.powerDeciCoulombs) in assertSameBatteryConsumer()
182 assertThat(sliceProto.powerComponent.durationMillis) in assertSameBatteryConsumer()
229 private void assertPowerComponentModel(int powerComponent, in assertPowerComponentModel() argument
234 if (powerComponentModel.component == powerComponent) { in assertPowerComponentModel()
237 powerComponent) + " found multiple times in the proto"); in assertPowerComponentModel()
247 "Power component " + BatteryConsumer.powerComponentIdToString(powerComponent) in assertPowerComponentModel()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DUserPowerCalculatorTest.java138 @BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported()
139 return powerComponent == BatteryConsumer.POWER_COMPONENT_AUDIO; in isPowerComponentSupported()
154 @BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported()
155 return powerComponent == BatteryConsumer.POWER_COMPONENT_VIDEO; in isPowerComponentSupported()

12