/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | CpuPowerStatsCollector.java | 76 private CpuScalingPolicies mCpuScalingPolicies; field in CpuPowerStatsCollector 115 mCpuScalingPolicies = mInjector.getCpuScalingPolicies(); in ensureInitialized() 130 int cpuScalingStepCount = mCpuScalingPolicies.getScalingStepCount(); in ensureInitialized() 137 mLayout.addDeviceSectionCpuTimeByCluster(mCpuScalingPolicies.getPolicies().length); in ensureInitialized() 163 } else if (mCpuScalingPolicies.getPolicies().length == mCpuEnergyConsumerIds.length) { in initPowerBrackets() 168 + mCpuScalingPolicies.getPolicies().length in initPowerBrackets() 177 int[] stepToBracketMap = new int[mCpuScalingPolicies.getScalingStepCount()]; in initPowerBracketsFromPowerProfile() 179 for (int policy : mCpuScalingPolicies.getPolicies()) { in initPowerBracketsFromPowerProfile() 180 int[] frequencies = mCpuScalingPolicies.getFrequencies(policy); in initPowerBracketsFromPowerProfile() 191 int[] stepToBracketMap = new int[mCpuScalingPolicies.getScalingStepCount()]; in initPowerBracketsByCluster() [all …]
|
D | CpuPowerCalculator.java | 37 private final CpuScalingPolicies mCpuScalingPolicies; field in CpuPowerCalculator 66 mCpuScalingPolicies = cpuScalingPolicies; in CpuPowerCalculator() 67 int[] policies = mCpuScalingPolicies.getPolicies(); in CpuPowerCalculator() 110 result.cpuFreqTimes = new long[mCpuScalingPolicies.getScalingStepCount()]; in calculate()
|
D | BatteryUsageStatsProvider.java | 51 private final CpuScalingPolicies mCpuScalingPolicies; field in BatteryUsageStatsProvider 64 mCpuScalingPolicies = cpuScalingPolicies; in BatteryUsageStatsProvider() 77 new CpuPowerCalculator(mCpuScalingPolicies, mPowerProfile)); in getPowerCalculators() 120 new SystemServicePowerCalculator(mCpuScalingPolicies, mPowerProfile)); in getPowerCalculators()
|
D | CpuPowerStatsProcessor.java | 37 private final CpuScalingPolicies mCpuScalingPolicies; field in CpuPowerStatsProcessor 76 mCpuScalingPolicies = scalingPolicies; in CpuPowerStatsProcessor() 219 int[] policies = mCpuScalingPolicies.getPolicies(); in initEnergyConsumerToPowerBracketMaps() 225 int[] freqs = mCpuScalingPolicies.getFrequencies(policies[cluster]); in initEnergyConsumerToPowerBracketMaps()
|
D | BatteryStatsImpl.java | 273 protected CpuScalingPolicies mCpuScalingPolicies; field in BatteryStatsImpl 819 mCpuScalingPolicies.getScalingStepCount()); in ensureKernelSingleUidTimeReaderLocked() 2007 return mCpuScalingPolicies; in getCpuScalingPolicies() 8555 mBsi.mCpuScalingPolicies.getScalingStepCount(), in ensureMultiStateCounters() 8562 mBsi.mCpuScalingPolicies.getScalingStepCount(), in ensureMultiStateCounters() 10796 final int cpuFreqCount = mBsi.mCpuScalingPolicies.getScalingStepCount(); in ChildUid() 11205 return mCpuScalingPolicies; in getCpuScalingPolicies() 11213 mCpuScalingPolicies.getScalingStepCount()); in getCpuTimeInFreqContainer() 11250 mCpuScalingPolicies = cpuScalingPolicies; in BatteryStatsImpl() 11413 int[] policies = mCpuScalingPolicies.getPolicies(); in initPowerProfile() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerProfile.java | 523 private SparseArray<CpuScalingPolicyPower> mCpuScalingPolicies; field in PowerProfile 545 mCpuScalingPolicies = new SparseArray<>(policyCount); in initCpuScalingPolicies() 559 mCpuScalingPolicies.put(policy, new CpuScalingPolicyPower( in initCpuScalingPolicies() 572 mCpuScalingPolicies = new SparseArray<>(policyCount); in initCpuScalingPolicies() 586 mCpuScalingPolicies.put(cpuId, in initCpuScalingPolicies() 591 mCpuScalingPolicies = new SparseArray<>(1); in initCpuScalingPolicies() 592 mCpuScalingPolicies.put(0, in initCpuScalingPolicies() 605 for (int i = mCpuScalingPolicies.size() - 1; i >= 0; i--) { in initCpuPowerBrackets() 606 int policy = mCpuScalingPolicies.keyAt(i); in initCpuPowerBrackets() 607 CpuScalingPolicyPower cpuScalingPolicyPower = mCpuScalingPolicies.valueAt(i); in initCpuPowerBrackets() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | CpuPowerStatsCollectorTest.java | 80 private CpuScalingPolicies mCpuScalingPolicies; field in CpuPowerStatsCollectorTest 108 return mCpuScalingPolicies; in getCpuScalingPolicies() 161 mCpuScalingPolicies = new CpuScalingPolicies( in powerBrackets_specifiedInPowerProfile() 412 mCpuScalingPolicies = new CpuScalingPolicies(cpus, freqs); in mockCpuScalingPolicies()
|
D | MockBatteryStatsImpl.java | 179 mCpuScalingPolicies = cpuScalingPolicies; in setCpuScalingPolicies()
|
D | BatteryStatsImplTest.java | 106 private final CpuScalingPolicies mCpuScalingPolicies = new CpuScalingPolicies( field in BatteryStatsImplTest 136 .setCpuScalingPolicies(mCpuScalingPolicies) in setUp()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 187 private final CpuScalingPolicies mCpuScalingPolicies; field in BatteryStatsService 414 mCpuScalingPolicies = new CpuScalingPolicyReader().read(); in BatteryStatsService() 430 mCpuScalingPolicies, mPowerStatsUidResolver); in BatteryStatsService() 446 powerStatsExporter, mPowerProfile, mCpuScalingPolicies, in BatteryStatsService() 483 new CpuPowerStatsProcessor(mPowerProfile, mCpuScalingPolicies)); in createAggregatedPowerStatsConfig() 3178 mCpuScalingPolicies, new PowerStatsUidResolver()); in dumpUnmonitored() 3220 mCpuScalingPolicies, new PowerStatsUidResolver()); in dumpUnmonitored()
|