Home
last modified time | relevance | path

Searched refs:POWER_COMPONENT_CPU (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsExporterTest.java89 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 …]
DCpuPowerCalculatorTest.java191 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 …]
DBatteryUsageStatsTest.java297 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 …]
DBatteryStatsManagerTest.java50 {BatteryConsumer.POWER_COMPONENT_CPU, in testBatteryUsageStatsDataConsistency()
DCpuPowerStatsProcessorTest.java86 mConfig = new AggregatedPowerStatsConfig.PowerComponent(BatteryConsumer.POWER_COMPONENT_CPU) in setup()
225 mDescriptor = new PowerStats.Descriptor(BatteryConsumer.POWER_COMPONENT_CPU, in MockPowerComponentAggregatedPowerStats()
DBatteryUsageStatsRule.java103 BatteryConsumer.POWER_COMPONENT_CPU), 10000) in BatteryUsageStatsRule()
DCpuPowerStatsCollectorTest.java227 assertThat(descriptor.powerComponentId).isEqualTo(BatteryConsumer.POWER_COMPONENT_CPU); in powerStatsDescriptor()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java277 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/
DCpuPowerCalculator.java99 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()
DBatteryUsageStatsProvider.java75 if (!mPowerStatsExporterEnabled.get(BatteryConsumer.POWER_COMPONENT_CPU)) { in getPowerCalculators()
268 {BatteryConsumer.POWER_COMPONENT_CPU, in verify()
DCpuPowerStatsCollector.java101 BatteryConsumer.POWER_COMPONENT_CPU)), in CpuPowerStatsCollector()
147 mPowerStatsDescriptor = new PowerStats.Descriptor(BatteryConsumer.POWER_COMPONENT_CPU, in ensureInitialized()
DBatteryStatsImpl.java571 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/
DPowerStatsTest.java66 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/
DBatteryUsageStatsPerfTest.java173 BatteryConsumer.POWER_COMPONENT_CPU, 10100)
177 BatteryConsumer.POWER_COMPONENT_CPU, 10300)
/frameworks/base/core/java/android/os/
DBatteryConsumer.java50 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,
DBatteryStats.java4417 CHECKIN_POWER_COMPONENT_LABELS[BatteryConsumer.POWER_COMPONENT_CPU] = "cpu";
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerData.java307 case BatteryConsumer.POWER_COMPONENT_CPU: in getPowerComponentName()
/frameworks/proto_logging/stats/enums/os/
Denums.proto66 POWER_COMPONENT_CPU = 1; enumerator
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java474 config.trackPowerComponent(BatteryConsumer.POWER_COMPONENT_CPU) in createAggregatedPowerStatsConfig()
600 mStats.setPowerStatsCollectorEnabled(BatteryConsumer.POWER_COMPONENT_CPU, in systemServicesReady()
603 BatteryConsumer.POWER_COMPONENT_CPU, in systemServicesReady()