Home
last modified time | relevance | path

Searched refs:cpuTimesMs (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBstatsCpuTimesValidationTest.java196 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid); in testCpuFreqTimes() local
197 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes()
199 for (int i = 0; i < cpuTimesMs.length / 2; ++i) { in testCpuFreqTimes()
200 actualCpuTimeMs += cpuTimesMs[i]; in testCpuFreqTimes()
224 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid); in testCpuFreqTimes_screenOff() local
225 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_screenOff()
227 for (int i = 0; i < cpuTimesMs.length / 2; ++i) { in testCpuFreqTimes_screenOff()
228 actualTotalCpuTimeMs += cpuTimesMs[i]; in testCpuFreqTimes_screenOff()
232 for (int i = cpuTimesMs.length / 2; i < cpuTimesMs.length; ++i) { in testCpuFreqTimes_screenOff()
233 actualScreenOffCpuTimeMs += cpuTimesMs[i]; in testCpuFreqTimes_screenOff()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelSingleUidTimeReader.java90 final long[] cpuTimesMs; in readDeltaMs() local
98 cpuTimesMs = readCpuTimesFromByteBuffer(buffer); in readDeltaMs()
107 return computeDelta(uid, cpuTimesMs); in readDeltaMs()
123 final long[] cpuTimesMs; in readCpuTimesFromByteBuffer() local
124 cpuTimesMs = new long[mCpuFreqsCount]; in readCpuTimesFromByteBuffer()
127 cpuTimesMs[i] = buffer.getLong() * 10; in readCpuTimesFromByteBuffer()
129 return cpuTimesMs; in readCpuTimesFromByteBuffer()
201 final long[] cpuTimesMs = allUidsCpuTimesMs.valueAt(i); in setAllUidsCpuTimesMs() local
202 if (cpuTimesMs != null) { in setAllUidsCpuTimesMs()
203 mLastUidCpuTimeMs.put(allUidsCpuTimesMs.keyAt(i), cpuTimesMs.clone()); in setAllUidsCpuTimesMs()
DBatteryStatsImpl.java474 long[] cpuTimesMs = mKernelSingleUidTimeReader.readDeltaMs(uid); in updateProcStateCpuTimes() local
477 cpuTimesMs = addCpuTimes(cpuTimesMs, in updateProcStateCpuTimes()
481 if (onBattery && cpuTimesMs != null) { in updateProcStateCpuTimes()
483 u.addProcStateTimesMs(procState, cpuTimesMs, onBattery); in updateProcStateCpuTimes()
484 u.addProcStateScreenOffTimesMs(procState, cpuTimesMs, onBatteryScreenOff); in updateProcStateCpuTimes()
536 final long[] cpuTimesMs = allUidCpuFreqTimesMs.valueAt(i); in copyFromAllUidsCpuTimes() local
537 if (cpuTimesMs == null) { in copyFromAllUidsCpuTimes()
541 uid, cpuTimesMs.clone()); in copyFromAllUidsCpuTimes()
6840 private long[] nullIfAllZeros(LongSamplingCounterArray cpuTimesMs, int which) { in nullIfAllZeros() argument
6841 if (cpuTimesMs == null) { in nullIfAllZeros()
[all …]