Home
last modified time | relevance | path

Searched refs:POWER_COMPONENT_COUNT (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetrics.java50 double[] totalPowerPerComponentMah = new double[BatteryConsumer.POWER_COMPONENT_COUNT]; in PowerMetrics()
51 long[] totalDurationPerComponentMs = new long[BatteryConsumer.POWER_COMPONENT_COUNT]; in PowerMetrics()
59 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; in PowerMetrics()
72 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in PowerMetrics()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java94 double[] totalPowerByComponentMah = new double[BatteryConsumer.POWER_COMPONENT_COUNT]; in populateForUidBatteryConsumer()
96 new double[BatteryConsumer.POWER_COMPONENT_COUNT]; in populateForUidBatteryConsumer()
97 long[] totalDurationByComponentMs = new long[BatteryConsumer.POWER_COMPONENT_COUNT]; in populateForUidBatteryConsumer()
126 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in populateForUidBatteryConsumer()
160 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in populateForUidBatteryConsumer()
238 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in populateForAggregateBatteryConsumer()
268 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in populateForAggregateBatteryConsumer()
276 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in isPowerProfileModelsOnly()
326 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; component++) { in computeTotalPower()
348 for (int component = 0; component < BatteryConsumer.POWER_COMPONENT_COUNT; in computeTotalDuration()
/frameworks/base/core/java/android/os/
DBatteryConsumer.java99 public static final int POWER_COMPONENT_COUNT = 18; field in BatteryConsumer
104 private static final String[] sPowerComponentNames = new String[POWER_COMPONENT_COUNT];
612 if (componentId >= POWER_COMPONENT_COUNT) { in getKey()
712 keys = new Key[POWER_COMPONENT_COUNT][]; in BatteryConsumerDataLayout()
715 for (int componentId = 0; componentId < POWER_COMPONENT_COUNT; componentId++) { in BatteryConsumerDataLayout()
DPowerComponents.java161 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in dump()
221 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in writeStatsProtoImpl()
332 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in writeToXml()
562 for (int componentId = BatteryConsumer.POWER_COMPONENT_COUNT - 1; componentId >= 0; in addPowerAndDuration()
634 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in getTotalPower()
DAggregateBatteryConsumer.java104 for (int i = 0; i < POWER_COMPONENT_COUNT; i++) { in writePowerComponentModelProto()
DBatteryUsageStats.java599 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in dump()
DBatteryStats.java4413 new String[BatteryConsumer.POWER_COMPONENT_COUNT];
4710 powerComponent < BatteryConsumer.POWER_COMPONENT_COUNT; powerComponent++) { in dumpCheckinLocked()
8766 for (int powerComponent = 0; powerComponent < BatteryConsumer.POWER_COMPONENT_COUNT; in dumpProtoSystemLocked()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java85 for (int i = 0; i < BatteryConsumer.POWER_COMPONENT_COUNT; i++) { in testGetStatsProto()
134 if (componentId < BatteryConsumer.POWER_COMPONENT_COUNT) { in assertSameBatteryConsumer()
151 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in assertSameBatteryConsumer()
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/
DBatteryUsageStatsPerfTest.java187 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT;
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryUsageStatsTest.java178 for (int i = 0; i < BatteryConsumer.POWER_COMPONENT_COUNT; i++) { in testPowerComponentNames_existAndUnique()
182 assertThat(allNames).hasSize(BatteryConsumer.POWER_COMPONENT_COUNT); in testPowerComponentNames_existAndUnique()
/frameworks/base/core/java/com/android/internal/os/
DPowerStats.java358 } else if (powerComponentId < BatteryConsumer.POWER_COMPONENT_COUNT) { in createFromXml()