/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | AggregatedPowerStatsConfig.java | 184 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()
|
D | PowerStatsExporter.java | 129 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()
|
D | PhonePowerCalculator.java | 38 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 39 return powerComponent == BatteryConsumer.POWER_COMPONENT_PHONE; in isPowerComponentSupported()
|
D | FlashlightPowerCalculator.java | 40 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 41 return powerComponent == BatteryConsumer.POWER_COMPONENT_FLASHLIGHT; in isPowerComponentSupported()
|
D | IdlePowerCalculator.java | 48 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 49 return powerComponent == BatteryConsumer.POWER_COMPONENT_IDLE; in isPowerComponentSupported()
|
D | MemoryPowerCalculator.java | 41 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 42 return powerComponent == BatteryConsumer.POWER_COMPONENT_MEMORY; in isPowerComponentSupported()
|
D | AudioPowerCalculator.java | 49 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 50 return powerComponent == BatteryConsumer.POWER_COMPONENT_AUDIO; in isPowerComponentSupported()
|
D | CameraPowerCalculator.java | 42 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 43 return powerComponent == BatteryConsumer.POWER_COMPONENT_CAMERA; in isPowerComponentSupported()
|
D | AmbientDisplayPowerCalculator.java | 35 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 36 return powerComponent == BatteryConsumer.POWER_COMPONENT_AMBIENT_DISPLAY; in isPowerComponentSupported()
|
D | VideoPowerCalculator.java | 46 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 47 return powerComponent == BatteryConsumer.POWER_COMPONENT_VIDEO; in isPowerComponentSupported()
|
D | SystemServicePowerCalculator.java | 61 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 62 return powerComponent == BatteryConsumer.POWER_COMPONENT_SYSTEM_SERVICES; in isPowerComponentSupported()
|
D | SensorPowerCalculator.java | 42 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 43 return powerComponent == BatteryConsumer.POWER_COMPONENT_SENSORS; in isPowerComponentSupported()
|
D | AggregatedPowerStats.java | 210 for (PowerComponentAggregatedPowerStats powerComponent : in createFromXml() 212 if (powerComponent.powerComponentId == powerComponentId) { in createFromXml() 213 if (!powerComponent.readFromXml(parser)) { in createFromXml()
|
D | GnssPowerCalculator.java | 46 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 47 return powerComponent == BatteryConsumer.POWER_COMPONENT_GNSS; in isPowerComponentSupported()
|
D | WakelockPowerCalculator.java | 46 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 47 return powerComponent == BatteryConsumer.POWER_COMPONENT_WAKELOCK; in isPowerComponentSupported()
|
D | UserPowerCalculator.java | 36 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
|
D | PowerCalculator.java | 39 @BatteryConsumer.PowerComponent int powerComponent); in isPowerComponentSupported()
|
D | BatteryChargeCalculator.java | 30 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument
|
D | BluetoothPowerCalculator.java | 66 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 67 return powerComponent == BatteryConsumer.POWER_COMPONENT_BLUETOOTH; in isPowerComponentSupported()
|
D | ScreenPowerCalculator.java | 67 public boolean isPowerComponentSupported(@BatteryConsumer.PowerComponent int powerComponent) { in isPowerComponentSupported() argument 68 return powerComponent == BatteryConsumer.POWER_COMPONENT_SCREEN; in isPowerComponentSupported()
|
D | CustomEnergyConsumerPowerCalculator.java | 42 public boolean isPowerComponentSupported(int powerComponent) { in isPowerComponentSupported() argument
|
D | WifiPowerCalculator.java | 84 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/ |
D | BatteryConsumer.java | 212 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/ |
D | BatteryUsageStatsPulledTest.java | 167 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/ |
D | UserPowerCalculatorTest.java | 138 @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()
|