Searched refs:FIRST_CUSTOM_POWER_COMPONENT_ID (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | CustomEnergyConsumerPowerCalculatorTest.java | 72 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)) in testMeasuredEnergyCopiedIntoBatteryConsumers() 75 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + 1)) in testMeasuredEnergyCopiedIntoBatteryConsumers() 80 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)) in testMeasuredEnergyCopiedIntoBatteryConsumers() 83 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + 1)) in testMeasuredEnergyCopiedIntoBatteryConsumers() 88 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)) in testMeasuredEnergyCopiedIntoBatteryConsumers() 91 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + 1)) in testMeasuredEnergyCopiedIntoBatteryConsumers()
|
D | BatteryUsageStatsTest.java | 299 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 20) in buildBatteryUsageStats1() 303 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 40); in buildBatteryUsageStats1() 368 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, customComponentPower) in addUidBatteryConsumer() 372 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, customComponentDuration); in addUidBatteryConsumer() 413 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, in addAggregateBatteryConsumer() 418 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, in addAggregateBatteryConsumer() 542 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)).isEqualTo(customComponentPower); in assertUidBatteryConsumer() 546 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)).isEqualTo( in assertUidBatteryConsumer() 550 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)).isEqualTo("FOO"); in assertUidBatteryConsumer() 628 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID)).isEqualTo(customComponentPower); in assertUserBatteryConsumer() [all …]
|
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/ |
D | BatteryUsageStatsPerfTest.java | 175 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 10200) 179 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 10400); 195 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 1234) 197 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 4321);
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | CustomEnergyConsumerPowerCalculator.java | 66 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + i, in calculate() 76 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + i, in calculate() 100 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + i, in calculateApp()
|
D | BatteryStatsImpl.java | 7936 names[i] = "CUSTOM_" + BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + i; in getCustomEnergyConsumerNames()
|
/frameworks/base/core/java/android/os/ |
D | PowerComponents.java | 97 final int index = componentId - BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in getConsumedPowerForCustomComponent() 107 final int index = componentId - BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in getCustomPowerComponentName() 148 final int index = componentId - BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in getUsageDurationForCustomComponentMillis() 185 for (int customComponentId = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in dump() 186 customComponentId < BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID in dump() 252 final int componentId = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + idx; in writeStatsProtoImpl() 362 final int customComponentEnd = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID in writeToXml() 364 for (int componentId = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in writeToXml() 509 final int index = componentId - BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in setConsumedPowerForCustomComponent() 534 final int index = componentId - BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in setUsageDurationForCustomComponentMillis()
|
D | BatteryUsageStats.java | 620 for (int componentId = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in dump() 621 componentId < BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID in dump()
|
D | BatteryConsumer.java | 101 public static final int FIRST_CUSTOM_POWER_COMPONENT_ID = 1000; field in BatteryConsumer
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerData.java | 152 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + component); in populateForUidBatteryConsumer() 155 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + component), in populateForUidBatteryConsumer() 260 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + component); in populateForAggregateBatteryConsumer() 263 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + component), in populateForAggregateBatteryConsumer() 265 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + component)); in populateForAggregateBatteryConsumer() 341 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + component); in computeTotalPowerForCustomComponent()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 279 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 450) in buildBatteryUsageStats() 281 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + 1, 500) in buildBatteryUsageStats() 285 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + 1, 800); in buildBatteryUsageStats() 327 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 20200) in buildBatteryUsageStats() 331 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 20400); in buildBatteryUsageStats() 340 BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID, 10200); in buildBatteryUsageStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerStats.java | 355 } else if (powerComponentId >= BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID) { in createFromXml()
|