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.java194 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid); in testCpuFreqTimes() local
195 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes()
197 for (int i = 0; i < cpuTimesMs.length / 2; ++i) { in testCpuFreqTimes()
198 actualCpuTimeMs += cpuTimesMs[i]; in testCpuFreqTimes()
222 final long[] cpuTimesMs = getAllCpuFreqTimes(sTestPkgUid); in testCpuFreqTimes_screenOff() local
223 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_screenOff()
225 for (int i = 0; i < cpuTimesMs.length / 2; ++i) { in testCpuFreqTimes_screenOff()
226 actualTotalCpuTimeMs += cpuTimesMs[i]; in testCpuFreqTimes_screenOff()
230 for (int i = cpuTimesMs.length / 2; i < cpuTimesMs.length; ++i) { in testCpuFreqTimes_screenOff()
231 actualScreenOffCpuTimeMs += cpuTimesMs[i]; in testCpuFreqTimes_screenOff()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelSingleUidTimeReader.java92 final long[] cpuTimesMs; in readDeltaMs() local
100 cpuTimesMs = readCpuTimesFromByteBuffer(buffer); in readDeltaMs()
109 return computeDelta(uid, cpuTimesMs); in readDeltaMs()
125 final long[] cpuTimesMs; in readCpuTimesFromByteBuffer() local
126 cpuTimesMs = new long[mCpuFreqsCount]; in readCpuTimesFromByteBuffer()
129 cpuTimesMs[i] = buffer.getLong() * 10; in readCpuTimesFromByteBuffer()
131 return cpuTimesMs; in readCpuTimesFromByteBuffer()
215 final long[] cpuTimesMs = allUidsCpuTimesMs.valueAt(i); in setAllUidsCpuTimesMs() local
216 if (cpuTimesMs != null) { in setAllUidsCpuTimesMs()
217 mLastUidCpuTimeMs.put(allUidsCpuTimesMs.keyAt(i), cpuTimesMs.clone()); in setAllUidsCpuTimesMs()
DBatteryStatsImpl.java437 long[] cpuTimesMs = mKernelSingleUidTimeReader.readDeltaMs(uid); in updateProcStateCpuTimes() local
440 cpuTimesMs = addCpuTimes(cpuTimesMs, in updateProcStateCpuTimes()
444 if (onBattery && cpuTimesMs != null) { in updateProcStateCpuTimes()
446 u.addProcStateTimesMs(procState, cpuTimesMs, onBattery); in updateProcStateCpuTimes()
447 u.addProcStateScreenOffTimesMs(procState, cpuTimesMs, onBatteryScreenOff); in updateProcStateCpuTimes()
499 final long[] cpuTimesMs = allUidCpuFreqTimesMs.valueAt(i); in copyFromAllUidsCpuTimes() local
500 if (cpuTimesMs == null) { in copyFromAllUidsCpuTimes()
504 uid, cpuTimesMs.clone()); in copyFromAllUidsCpuTimes()
6970 private long[] nullIfAllZeros(LongSamplingCounterArray cpuTimesMs, int which) { in nullIfAllZeros() argument
6971 if (cpuTimesMs == null) { in nullIfAllZeros()
[all …]