Home
last modified time | relevance | path

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/
DCustomEnergyConsumerPowerCalculatorTest.java72 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()
DBatteryUsageStatsTest.java299 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/
DBatteryUsageStatsPerfTest.java175 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/
DCustomEnergyConsumerPowerCalculator.java66 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()
DBatteryStatsImpl.java7936 names[i] = "CUSTOM_" + BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID + i; in getCustomEnergyConsumerNames()
/frameworks/base/core/java/android/os/
DPowerComponents.java97 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()
DBatteryUsageStats.java620 for (int componentId = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in dump()
621 componentId < BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID in dump()
DBatteryConsumer.java101 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/
DBatteryConsumerData.java152 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/
DBatteryUsageStatsPulledTest.java279 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/
DPowerStats.java355 } else if (powerComponentId >= BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID) { in createFromXml()