Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReader.java473 int numClusters = clusterStartIndices.length; in getBucketStartIndices() local
477 if (numClusters > targetNumBuckets) { in getBucketStartIndices()
482 for (int clusterIdx = 0; clusterIdx < numClusters; clusterIdx++) { in getBucketStartIndices()
488 if (clusterIdx != numClusters - 1) { in getBucketStartIndices()
489 numBucketsInCluster = targetNumBuckets / numClusters; in getBucketStartIndices()
493 int previousBucketsInCluster = targetNumBuckets / numClusters; in getBucketStartIndices()
495 targetNumBuckets - (previousBucketsInCluster * (numClusters - 1)); in getBucketStartIndices()
/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/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidFreqTimeReaderTest.java280 private void setCpuClusterFreqs(int numClusters, int... clusterFreqs) { in setCpuClusterFreqs() argument
281 assertEquals(numClusters, clusterFreqs.length); in setCpuClusterFreqs()
282 when(mPowerProfile.getNumCpuClusters()).thenReturn(numClusters); in setCpuClusterFreqs()
283 for (int i = 0; i < numClusters; ++i) { in setCpuClusterFreqs()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsCpuTimesTest.java136 final int numClusters = 3; in testUpdateCpuTimeLocked() local
137 initKernelCpuSpeedReaders(numClusters); in testUpdateCpuTimeLocked()
147 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
153 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
178 for (int i = 0; i < numClusters; ++i) { in testUpdateCpuTimeLocked()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java13558 final int numClusters = clusterChargeUC.length; in updateCpuEnergyConsumerStatsLocked() local
13560 for (int i = 0; i < numClusters; i++) { in updateCpuEnergyConsumerStatsLocked()
13573 final double[] clusterChargeRatio = new double[numClusters]; in updateCpuEnergyConsumerStatsLocked()
13574 for (int cluster = 0; cluster < numClusters; cluster++) { in updateCpuEnergyConsumerStatsLocked()
13596 for (int cluster = 0; cluster < numClusters; cluster++) { in updateCpuEnergyConsumerStatsLocked()
14461 final int numClusters = policies.length;
14493 u.mCpuClusterSpeedTimesUs.length != numClusters) {
14495 u.mCpuClusterSpeedTimesUs = new LongSamplingCounter[numClusters][];
14498 mWakeLockAllocationsUs = new long[numClusters][];
14502 for (int cluster = 0; cluster < numClusters; cluster++) {
[all …]