Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
H A 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()
/aosp14/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
H A 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()
/aosp14/frameworks/base/core/java/android/os/
H A DBatteryConsumer.java98 public static final int POWER_COMPONENT_COUNT = 18; field in BatteryConsumer
103 private static final String[] sPowerComponentNames = new String[POWER_COMPONENT_COUNT];
608 if (componentId >= POWER_COMPONENT_COUNT) { in getKey()
707 keys = new Key[POWER_COMPONENT_COUNT][]; in BatteryConsumerDataLayout()
710 for (int componentId = 0; componentId < POWER_COMPONENT_COUNT; componentId++) { in BatteryConsumerDataLayout()
H A DPowerComponents.java159 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in dump()
219 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in writeStatsProtoImpl()
330 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in writeToXml()
555 for (int componentId = BatteryConsumer.POWER_COMPONENT_COUNT - 1; componentId >= 0; in addPowerAndDuration()
627 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in getTotalPower()
H A DAggregateBatteryConsumer.java103 for (int i = 0; i < POWER_COMPONENT_COUNT; i++) { in writePowerComponentModelProto()
H A DBatteryUsageStats.java573 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in dump()
H A DBatteryStats.java4362 new String[BatteryConsumer.POWER_COMPONENT_COUNT];
4659 powerComponent < BatteryConsumer.POWER_COMPONENT_COUNT; powerComponent++) { in dumpCheckinLocked()
8740 for (int powerComponent = 0; powerComponent < BatteryConsumer.POWER_COMPONENT_COUNT; in dumpProtoSystemLocked()
/aosp14/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
H A DBatteryUsageStatsPulledTest.java80 for (int i = 0; i < BatteryConsumer.POWER_COMPONENT_COUNT; i++) { in testGetStatsProto()
129 if (componentId < BatteryConsumer.POWER_COMPONENT_COUNT) { in assertSameBatteryConsumer()
146 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in assertSameBatteryConsumer()
/aosp14/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/
H A DBatteryUsageStatsPerfTest.java187 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT;
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBatteryUsageStatsTest.java171 for (int i = 0; i < BatteryConsumer.POWER_COMPONENT_COUNT; i++) { in testPowerComponentNames_existAndUnique()
175 assertThat(allNames).hasSize(BatteryConsumer.POWER_COMPONENT_COUNT); in testPowerComponentNames_existAndUnique()