Home
last modified time | relevance | path

Searched refs:numClusters (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DCpuPowerCalculator.java36 final int numClusters = mProfile.getNumCpuClusters(); in calculateApp() local
39 for (int cluster = 0; cluster < numClusters; cluster++) { in calculateApp()
57 if (cpuClusterTimes.length == numClusters) { in calculateApp()
58 for (int i = 0; i < numClusters; i++) { in calculateApp()
70 + numClusters + " actual # " + cpuClusterTimes.length); in calculateApp()
DKernelCpuThreadReader.java461 int numClusters = clusterStartIndices.length; in getBucketStartIndices() local
465 if (numClusters > targetNumBuckets) { in getBucketStartIndices()
470 for (int clusterIdx = 0; clusterIdx < numClusters; clusterIdx++) { in getBucketStartIndices()
476 if (clusterIdx != numClusters - 1) { in getBucketStartIndices()
477 numBucketsInCluster = targetNumBuckets / numClusters; in getBucketStartIndices()
481 int previousBucketsInCluster = targetNumBuckets / numClusters; in getBucketStartIndices()
483 targetNumBuckets - (previousBucketsInCluster * (numClusters - 1)); in getBucketStartIndices()
DKernelCpuUidTimeReader.java389 final int numClusters = powerProfile.getNumCpuClusters(); in readFreqs() local
390 if (numClusterFreqs.size() == numClusters) { in readFreqs()
392 for (int i = 0; i < numClusters; ++i) { in readFreqs()
DBatteryStatsImpl.java9880 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked() local
9881 mKernelCpuSpeedReaders = new KernelCpuSpeedReader[numClusters]; in setPowerProfileLocked()
9883 for (int i = 0; i < numClusters; i++) { in setPowerProfileLocked()
11701 final int numClusters = mPowerProfile.getNumCpuClusters(); in updateClusterSpeedTimes() local
11703 u.mCpuClusterSpeedTimesUs.length != numClusters) { in updateClusterSpeedTimes()
11704 u.mCpuClusterSpeedTimesUs = new LongSamplingCounter[numClusters][]; in updateClusterSpeedTimes()
11853 final int numClusters = mPowerProfile.getNumCpuClusters(); in readKernelUidCpuFreqTimesLocked() local
11884 u.mCpuClusterSpeedTimesUs.length != numClusters) { in readKernelUidCpuFreqTimesLocked()
11886 u.mCpuClusterSpeedTimesUs = new LongSamplingCounter[numClusters][]; in readKernelUidCpuFreqTimesLocked()
11889 mWakeLockAllocationsUs = new long[numClusters][]; in readKernelUidCpuFreqTimesLocked()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidFreqTimeReaderTest.java96 final int[] numClusters = {2, 2, 3, 1}; in testReadFreqs_perClusterTimesNotAvailable() local
101 setCpuClusterFreqs(numClusters[i], numFreqs[i]); in testReadFreqs_perClusterTimesNotAvailable()
106 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); in testReadFreqs_perClusterTimesNotAvailable()
124 final int[] numClusters = {1, 2, 3}; in testReadFreqs_perClusterTimesAvailable() local
129 setCpuClusterFreqs(numClusters[i], numFreqs[i]); in testReadFreqs_perClusterTimesAvailable()
134 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); in testReadFreqs_perClusterTimesAvailable()
291 private void setCpuClusterFreqs(int numClusters, int... clusterFreqs) { in setCpuClusterFreqs() argument
292 assertEquals(numClusters, clusterFreqs.length); in setCpuClusterFreqs()
293 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs()
294 for (int i = 0; i < numClusters; ++i) { in setCpuClusterFreqs()
DBatteryStatsCpuTimesTest.java117 final int numClusters = 3; in testUpdateCpuTimeLocked() local
118 initKernelCpuSpeedReaders(numClusters); in testUpdateCpuTimeLocked()
129 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
135 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
159 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/
DKMeansTest.java133 final int numClusters = 2; in predictTest() local
139 List<KMeans.Mean> means = mKMeans.predict(numClusters, X); in predictTest()
141 assertEquals("Expected number of clusters is invalid", numClusters, means.size()); in predictTest()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java338 final int numClusters = powerProfile.getNumCpuClusters(); in StatsCompanionService() local
339 mKernelCpuSpeedReaders = new KernelCpuSpeedReader[numClusters]; in StatsCompanionService()
341 for (int i = 0; i < numClusters; i++) { in StatsCompanionService()