Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DBatteryUsageStatsProvider.java44 private final PowerProfile mPowerProfile; field in BatteryUsageStatsProvider
58 mPowerProfile = stats instanceof BatteryStatsImpl in BatteryUsageStatsProvider()
70 mPowerCalculators.add(new CpuPowerCalculator(mPowerProfile)); in getPowerCalculators()
71 mPowerCalculators.add(new MemoryPowerCalculator(mPowerProfile)); in getPowerCalculators()
72 mPowerCalculators.add(new WakelockPowerCalculator(mPowerProfile)); in getPowerCalculators()
74 mPowerCalculators.add(new MobileRadioPowerCalculator(mPowerProfile)); in getPowerCalculators()
76 mPowerCalculators.add(new WifiPowerCalculator(mPowerProfile)); in getPowerCalculators()
77 mPowerCalculators.add(new BluetoothPowerCalculator(mPowerProfile)); in getPowerCalculators()
80 mPowerCalculators.add(new GnssPowerCalculator(mPowerProfile)); in getPowerCalculators()
81 mPowerCalculators.add(new CameraPowerCalculator(mPowerProfile)); in getPowerCalculators()
[all …]
DBatteryStatsHelper.java86 private PowerProfile mPowerProfile; field in BatteryStatsHelper
246 return mPowerProfile; in getPowerProfile()
250 mPowerProfile = new PowerProfile(mContext); in create()
262 mPowerProfile = new PowerProfile(mContext); in create()
334 mPowerCalculators.add(new CpuPowerCalculator(mPowerProfile)); in refreshStats()
335 mPowerCalculators.add(new MemoryPowerCalculator(mPowerProfile)); in refreshStats()
336 mPowerCalculators.add(new WakelockPowerCalculator(mPowerProfile)); in refreshStats()
338 mPowerCalculators.add(new MobileRadioPowerCalculator(mPowerProfile)); in refreshStats()
340 mPowerCalculators.add(new WifiPowerCalculator(mPowerProfile)); in refreshStats()
341 mPowerCalculators.add(new BluetoothPowerCalculator(mPowerProfile)); in refreshStats()
[all …]
DBatteryStatsImpl.java613 if (mPowerProfile == null) { in initKernelSingleUidTimeReaderLocked()
617 mCpuFreqs = mCpuUidFreqTimeReader.readFreqs(mPowerProfile); in initKernelSingleUidTimeReaderLocked()
1107 protected PowerProfile mPowerProfile; field in BatteryStatsImpl
6726 final double opVolt = mPowerProfile.getAveragePower( in getGpsBatteryDrainMaMs()
6736 += mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_SIGNAL_QUALITY_BASED, i) in getGpsBatteryDrainMaMs()
10739 mPowerProfile = profile; in setPowerProfileLocked()
10744 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked()
10748 final int numSpeedSteps = mPowerProfile.getNumSpeedStepsInCpuCluster(i); in setPowerProfileLocked()
10751 firstCpuOfCluster += mPowerProfile.getNumCoresInCpuCluster(i); in setPowerProfileLocked()
10756 mEstimatedBatteryCapacityMah = (int) mPowerProfile.getBatteryCapacity(); in setPowerProfileLocked()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryUsageStatsRule.java52 private final PowerProfile mPowerProfile; field in BatteryUsageStatsRule
65 mPowerProfile = spy(new PowerProfile(context, true /* forTest */)); in BatteryUsageStatsRule()
68 mBatteryStats.setPowerProfile(mPowerProfile); in BatteryUsageStatsRule()
73 when(mPowerProfile.getAveragePower(key)).thenReturn(value); in setAveragePower()
74 when(mPowerProfile.getAveragePowerOrDefault(eq(key), anyDouble())).thenReturn(value); in setAveragePower()
79 when(mPowerProfile.getAveragePower(key)).thenReturn(0.0); in setAveragePowerUnspecified()
80 when(mPowerProfile.getAveragePowerOrDefault(eq(key), anyDouble())) in setAveragePowerUnspecified()
86 when(mPowerProfile.getNumElements(key)).thenReturn(values.length); in setAveragePower()
88 when(mPowerProfile.getAveragePower(key, i)).thenReturn(values[i]); in setAveragePower()
94 when(mPowerProfile.getNumCpuClusters()).thenReturn(number); in setNumCpuClusters()
[all …]
DPowerCalculatorTest.java44 private PowerProfile mPowerProfile; field in PowerCalculatorTest
54 when(mPowerProfile.getAveragePower(PowerProfile.POWER_AUDIO)).thenReturn(12.0); in testMediaPowerCalculator()
55 when(mPowerProfile.getAveragePower(PowerProfile.POWER_VIDEO)).thenReturn(25.0); in testMediaPowerCalculator()
65 MediaPowerCalculator mediaPowerCalculator = new MediaPowerCalculator(mPowerProfile); in testMediaPowerCalculator()
DKernelCpuUidFreqTimeReaderTest.java66 private PowerProfile mPowerProfile; field in KernelCpuUidFreqTimeReaderTest
117 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
125 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
145 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
153 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
173 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadDelta()
225 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadAbsolute()
337 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs()
339 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)).thenReturn(clusterFreqs[i]); in setCpuClusterFreqs()
DBatteryStatsCpuTimesTest.java97 PowerProfile mPowerProfile; field in BatteryStatsCpuTimesTest
120 mBatteryStatsImpl.setPowerProfile(mPowerProfile); in testUpdateCpuTimeLocked()
125 when(mCpuUidFreqTimeReader.readFreqs(mPowerProfile)).thenReturn(freqs); in testUpdateCpuTimeLocked()
215 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterSpeedTimesMs.length); in testUpdateClusterSpeedTimes()
217 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testUpdateClusterSpeedTimes()
630 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterFreqs.length); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
632 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
740 when(mPowerProfile.getNumCpuClusters()).thenReturn(clusterFreqs.length); in testReadKernelUidCpuFreqTimesLocked_partialTimers()
742 when(mPowerProfile.getNumSpeedStepsInCpuCluster(i)) in testReadKernelUidCpuFreqTimesLocked_partialTimers()
1309 mBatteryStatsImpl.setPowerProfile(mPowerProfile); in updateTimeBasesLocked()
DMockBatteryStatsImpl.java114 mPowerProfile = powerProfile; in setPowerProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DBatteryExternalStatsWorkerTest.java195 mPowerProfile = new PowerProfile(context, true /* forTest */); in TestBatteryStatsImpl()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt77750 Lcom/android/internal/os/BatteryStatsImpl;->mPowerProfile:Lcom/android/internal/os/PowerProfile;