Home
last modified time | relevance | path

Searched refs:clusterSpeedTimesMs (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsCpuTimesTest.java224 final long[][] clusterSpeedTimesMs = {{20, 30}, {40, 50, 60}}; in testUpdateClusterSpeedTimes() local
228 for (int i = 0; i < clusterSpeedTimesMs.length; i++) { in testUpdateClusterSpeedTimes()
233 for (int i = 0; i < clusterSpeedTimesMs.length; i++) { in testUpdateClusterSpeedTimes()
234 put(i, new int[clusterSpeedTimesMs[i].length]); in testUpdateClusterSpeedTimes()
239 initKernelCpuSpeedReaders(clusterSpeedTimesMs.length); in testUpdateClusterSpeedTimes()
240 for (int i = 0; i < clusterSpeedTimesMs.length; ++i) { in testUpdateClusterSpeedTimes()
241 when(mKernelCpuSpeedReaders[i].readDelta()).thenReturn(clusterSpeedTimesMs[i]); in testUpdateClusterSpeedTimes()
256 for (int i = 0; i < clusterSpeedTimesMs.length; ++i) { in testUpdateClusterSpeedTimes()
257 for (int j = 0; j < clusterSpeedTimesMs[i].length; ++j) { in testUpdateClusterSpeedTimes()
258 totalClustersTimeMs += clusterSpeedTimesMs[i][j]; in testUpdateClusterSpeedTimes()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java14276 final long[][] clusterSpeedTimesMs = new long[mKernelCpuSpeedReaders.length][];
14279 clusterSpeedTimesMs[cluster] = mKernelCpuSpeedReaders[cluster].readDelta();
14280 if (clusterSpeedTimesMs[cluster] != null) {
14281 for (int speed = clusterSpeedTimesMs[cluster].length - 1; speed >= 0; --speed) {
14282 totalCpuClustersTimeMs += clusterSpeedTimesMs[cluster][speed];
14305 final int speedsInCluster = clusterSpeedTimesMs[cluster].length;
14318 * clusterSpeedTimesMs[cluster][speed]