/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | PowerStatsExporterTest.java | 89 config.trackPowerComponent(BatteryConsumer.POWER_COMPONENT_CPU) in setup() 115 mPowerStatsDescriptor = new PowerStats.Descriptor(BatteryConsumer.POWER_COMPONENT_CPU, in setup() 130 assertDevicePowerEstimate(message, actual, BatteryConsumer.POWER_COMPONENT_CPU, 7.51016); in breakdownByProcState_fullRange() 131 assertAllAppsPowerEstimate(message, actual, BatteryConsumer.POWER_COMPONENT_CPU, 7.51016); in breakdownByProcState_fullRange() 133 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 135 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 137 assertUidPowerEstimate(message, actual, APP_UID1, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 140 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 142 assertUidPowerEstimate(message, actual, APP_UID2, BatteryConsumer.POWER_COMPONENT_CPU, in breakdownByProcState_fullRange() 158 assertDevicePowerEstimate(message, actual, BatteryConsumer.POWER_COMPONENT_CPU, 4.526749); in breakdownByProcState_subRange() [all …]
|
D | CpuPowerCalculatorTest.java | 191 assertThat(uidConsumer1.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 193 assertThat(uidConsumer1.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 195 assertThat(uidConsumer1.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 200 assertThat(uidConsumer2.getUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 202 assertThat(uidConsumer2.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 204 assertThat(uidConsumer2.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 209 assertThat(deviceBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 211 assertThat(deviceBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 215 assertThat(appsBatteryConsumer.getConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() 217 assertThat(appsBatteryConsumer.getPowerModel(BatteryConsumer.POWER_COMPONENT_CPU)) in testTimerBasedModel() [all …]
|
D | BatteryUsageStatsTest.java | 297 BatteryConsumer.POWER_COMPONENT_CPU, 10) in buildBatteryUsageStats1() 301 BatteryConsumer.POWER_COMPONENT_CPU, 30) in buildBatteryUsageStats1() 366 BatteryConsumer.POWER_COMPONENT_CPU, cpuPower, cpuPowerModel) in addUidBatteryConsumer() 370 BatteryConsumer.POWER_COMPONENT_CPU, cpuDuration) in addUidBatteryConsumer() 375 BatteryConsumer.POWER_COMPONENT_CPU, in addUidBatteryConsumer() 378 BatteryConsumer.POWER_COMPONENT_CPU, in addUidBatteryConsumer() 381 BatteryConsumer.POWER_COMPONENT_CPU, in addUidBatteryConsumer() 384 BatteryConsumer.POWER_COMPONENT_CPU, in addUidBatteryConsumer() 411 BatteryConsumer.POWER_COMPONENT_CPU, cpuPower) in addAggregateBatteryConsumer() 416 BatteryConsumer.POWER_COMPONENT_CPU, cpuDuration) in addAggregateBatteryConsumer() [all …]
|
D | BatteryStatsManagerTest.java | 50 {BatteryConsumer.POWER_COMPONENT_CPU, in testBatteryUsageStatsDataConsistency()
|
D | CpuPowerStatsProcessorTest.java | 86 mConfig = new AggregatedPowerStatsConfig.PowerComponent(BatteryConsumer.POWER_COMPONENT_CPU) in setup() 225 mDescriptor = new PowerStats.Descriptor(BatteryConsumer.POWER_COMPONENT_CPU, in MockPowerComponentAggregatedPowerStats()
|
D | BatteryUsageStatsRule.java | 103 BatteryConsumer.POWER_COMPONENT_CPU), 10000) in BatteryUsageStatsRule()
|
D | CpuPowerStatsCollectorTest.java | 227 assertThat(descriptor.powerComponentId).isEqualTo(BatteryConsumer.POWER_COMPONENT_CPU); in powerStatsDescriptor()
|
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
D | BatteryUsageStatsPulledTest.java | 277 BatteryConsumer.POWER_COMPONENT_CPU, 400) in buildBatteryUsageStats() 283 BatteryConsumer.POWER_COMPONENT_CPU, 600) in buildBatteryUsageStats() 287 final BatteryConsumer.Key keyFg = uidBuilder.getKey(BatteryConsumer.POWER_COMPONENT_CPU, in buildBatteryUsageStats() 289 final BatteryConsumer.Key keyBg = uidBuilder.getKey(BatteryConsumer.POWER_COMPONENT_CPU, in buildBatteryUsageStats() 291 final BatteryConsumer.Key keyFgs = uidBuilder.getKey(BatteryConsumer.POWER_COMPONENT_CPU, in buildBatteryUsageStats() 293 final BatteryConsumer.Key keyCached = uidBuilder.getKey(BatteryConsumer.POWER_COMPONENT_CPU, in buildBatteryUsageStats() 318 BatteryConsumer.POWER_COMPONENT_CPU, 20100, in buildBatteryUsageStats() 329 BatteryConsumer.POWER_COMPONENT_CPU, 20300) in buildBatteryUsageStats() 337 BatteryConsumer.POWER_COMPONENT_CPU, 10100, in buildBatteryUsageStats() 358 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU, 40); in testLargeAtomTruncated() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | CpuPowerCalculator.java | 99 return powerComponent == BatteryConsumer.POWER_COMPONENT_CPU; in isPowerComponentSupported() 118 keys = app.getKeys(BatteryConsumer.POWER_COMPONENT_CPU); in calculate() 134 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU, totalPowerMah); in calculate() 137 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU, in calculate() 149 app.setConsumedPower(BatteryConsumer.POWER_COMPONENT_CPU, result.powerMah, powerModel) in calculateApp() 150 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_CPU, result.durationMs) in calculateApp()
|
D | BatteryUsageStatsProvider.java | 75 if (!mPowerStatsExporterEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)) { in getPowerCalculators() 268 {BatteryConsumer.POWER_COMPONENT_CPU, in verify()
|
D | CpuPowerStatsCollector.java | 101 BatteryConsumer.POWER_COMPONENT_CPU)), in CpuPowerStatsCollector() 147 mPowerStatsDescriptor = new PowerStats.Descriptor(BatteryConsumer.POWER_COMPONENT_CPU, in ensureInitialized()
|
D | BatteryStatsImpl.java | 571 BatteryConsumer.POWER_COMPONENT_CPU), in Builder() 697 if (mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)) { in updateProcStateCpuTimesLocked() 753 if (mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)) { in updateCpuTimesForAllUids() 813 if (mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU) in ensureKernelSingleUidTimeReaderLocked() 8547 if (mBsi.mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)) { in ensureMultiStateCounters() 10848 if (!mBsi.mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU) in updateUidProcessStateLocked() 10872 BatteryConsumer.POWER_COMPONENT_CPU)) { in updateUidProcessStateLocked() 12071 if (mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)) { in resetAllStatsLocked() 14691 mPowerStatsCollectorEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)); 14716 case BatteryConsumer.POWER_COMPONENT_CPU:
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerStatsTest.java | 66 mDescriptor = new PowerStats.Descriptor(BatteryConsumer.POWER_COMPONENT_CPU, 3, stateLabels, in setup() 92 assertThat(newDescriptor.powerComponentId).isEqualTo(BatteryConsumer.POWER_COMPONENT_CPU); in parceling_compatibleParcel() 131 assertThat(actual.powerComponentId).isEqualTo(BatteryConsumer.POWER_COMPONENT_CPU); in xmlFormat()
|
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/ |
D | BatteryUsageStatsPerfTest.java | 173 BatteryConsumer.POWER_COMPONENT_CPU, 10100) 177 BatteryConsumer.POWER_COMPONENT_CPU, 10300)
|
/frameworks/base/core/java/android/os/ |
D | BatteryConsumer.java | 50 POWER_COMPONENT_CPU, 73 public static final int POWER_COMPONENT_CPU = OsProtoEnums.POWER_COMPONENT_CPU; // 1 field in BatteryConsumer 109 sPowerComponentNames[POWER_COMPONENT_CPU] = "cpu"; 196 POWER_COMPONENT_CPU,
|
D | BatteryStats.java | 4417 CHECKIN_POWER_COMPONENT_LABELS[BatteryConsumer.POWER_COMPONENT_CPU] = "cpu";
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerData.java | 307 case BatteryConsumer.POWER_COMPONENT_CPU: in getPowerComponentName()
|
/frameworks/proto_logging/stats/enums/os/ |
D | enums.proto | 66 POWER_COMPONENT_CPU = 1; enumerator
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 474 config.trackPowerComponent(BatteryConsumer.POWER_COMPONENT_CPU) in createAggregatedPowerStatsConfig() 600 mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_CPU, in systemServicesReady() 603 BatteryConsumer.POWER_COMPONENT_CPU, in systemServicesReady()
|