Searched refs:numClusters (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelUidCpuClusterTimeReader.java | 171 final int numClusters = buf.get(); in readImpl() local 172 if (numClusters <= 0) { in readImpl() 173 Slog.wtf(TAG, "Cluster time format error: " + numClusters); in readImpl() 177 mNumClusters = numClusters; in readImpl() 179 if (buf.remaining() < numClusters) { in readImpl() 184 if (!readCoreInfo(buf, numClusters)) { in readImpl() 188 buf.position(buf.position() + numClusters); in readImpl() 209 private boolean readCoreInfo(IntBuffer buf, int numClusters) { in readCoreInfo() argument 211 int[] numCoresOnCluster = new int[numClusters]; in readCoreInfo() 212 for (int i = 0; i < numClusters; i++) { in readCoreInfo() [all …]
|
D | CpuPowerCalculator.java | 36 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()
|
D | KernelUidCpuFreqTimeReader.java | 151 final int numClusters = powerProfile.getNumCpuClusters(); in readFreqs() local 152 if (numClusterFreqs.size() == numClusters) { in readFreqs() 154 for (int i = 0; i < numClusters; ++i) { in readFreqs()
|
D | BatteryStatsImpl.java | 10239 final int numClusters = mPowerProfile.getNumCpuClusters(); in setPowerProfileLocked() local 10240 mKernelCpuSpeedReaders = new KernelCpuSpeedReader[numClusters]; in setPowerProfileLocked() 10242 for (int i = 0; i < numClusters; i++) { in setPowerProfileLocked() 12032 final int numClusters = mPowerProfile.getNumCpuClusters(); in updateClusterSpeedTimes() local 12034 u.mCpuClusterSpeedTimesUs.length != numClusters) { in updateClusterSpeedTimes() 12035 u.mCpuClusterSpeedTimesUs = new LongSamplingCounter[numClusters][]; in updateClusterSpeedTimes() 12182 final int numClusters = mPowerProfile.getNumCpuClusters(); in readKernelUidCpuFreqTimesLocked() local 12211 u.mCpuClusterSpeedTimesUs.length != numClusters) { in readKernelUidCpuFreqTimesLocked() 12212 u.mCpuClusterSpeedTimesUs = new LongSamplingCounter[numClusters][]; in readKernelUidCpuFreqTimesLocked() 12215 mWakeLockAllocationsUs = new long[numClusters][]; in readKernelUidCpuFreqTimesLocked() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReaderTest.java | 91 final int[] numClusters = {2, 2, 3, 1}; in testReadFreqs_perClusterTimesNotAvailable() local 94 setCpuClusterFreqs(numClusters[i], numFreqs[i]); in testReadFreqs_perClusterTimesNotAvailable() 101 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); in testReadFreqs_perClusterTimesNotAvailable() 122 final int[] numClusters = {1, 2, 3}; in testReadFreqs_perClusterTimesAvailable() local 125 setCpuClusterFreqs(numClusters[i], numFreqs[i]); in testReadFreqs_perClusterTimesAvailable() 132 Arrays.toString(freqs[i]), numClusters[i], Arrays.toString(numFreqs[i])); in testReadFreqs_perClusterTimesAvailable() 294 private void setCpuClusterFreqs(int numClusters, int... clusterFreqs) { in setCpuClusterFreqs() argument 295 assertEquals(numClusters, clusterFreqs.length); in setCpuClusterFreqs() 296 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs() 297 for (int i = 0; i < numClusters; ++i) { in setCpuClusterFreqs()
|
D | BatteryStatsCpuTimesTest.java | 111 final int numClusters = 3; in testUpdateCpuTimeLocked() local 112 initKernelCpuSpeedReaders(numClusters); in testUpdateCpuTimeLocked() 123 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked() 129 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked() 152 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
|
/frameworks/base/tests/Internal/src/com/android/internal/ml/clustering/ |
D | KMeansTest.java | 132 final int numClusters = 2; in predictTest() local 138 List<KMeans.Mean> means = mKMeans.predict(numClusters, X); in predictTest() 140 assertEquals("Expected number of clusters is invalid", numClusters, means.size()); in predictTest()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 191 final int numClusters = powerProfile.getNumCpuClusters(); in StatsCompanionService() local 192 mKernelCpuSpeedReaders = new KernelCpuSpeedReader[numClusters]; in StatsCompanionService() 194 for (int i = 0; i < numClusters; i++) { in StatsCompanionService()
|