Home
last modified time | relevance | path

Searched refs:threadCpuUsage (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java167 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = in createCpuUsageMap() local
172 threadCpuUsage.threadId, in createCpuUsageMap()
174 threadCpuUsage.threadName), in createCpuUsageMap()
175 threadCpuUsage.usageTimesMillis); in createCpuUsageMap()
192 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = in changeToDiffs() local
197 threadCpuUsage.threadId, in changeToDiffs()
199 threadCpuUsage.threadName); in changeToDiffs()
203 previous = new int[threadCpuUsage.usageTimesMillis.length]; in changeToDiffs()
205 threadCpuUsage.usageTimesMillis = in changeToDiffs()
206 cpuTimeDiff(threadCpuUsage.usageTimesMillis, previous); in changeToDiffs()
[all …]
DKernelCpuThreadReader.java273 ThreadCpuUsage threadCpuUsage = getThreadCpuUsage(threadDirectory); in getProcessCpuUsage() local
274 if (threadCpuUsage == null) { in getProcessCpuUsage()
277 threadCpuUsages.add(threadCpuUsage); in getProcessCpuUsage()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java153 for (KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage : threadCpuUsages) { in checkResults()
154 assertEquals(threadIds[threadCount], threadCpuUsage.threadId); in checkResults()
155 assertEquals(threadNames[threadCount], threadCpuUsage.threadName); in checkResults()
157 for (int i = 0; i < threadCpuUsage.usageTimesMillis.length; i++) { in checkResults()
160 threadCpuUsage.usageTimesMillis[i]); in checkResults()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1886 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = threadCpuUsages.get(j); in pullCpuTimePerThreadFreq() local
1887 if (threadCpuUsage.usageTimesMillis.length != cpuFrequencies.length) { in pullCpuTimePerThreadFreq()
1890 + " but got " + threadCpuUsage.usageTimesMillis.length; in pullCpuTimePerThreadFreq()
1899 e.writeInt(threadCpuUsage.threadId); in pullCpuTimePerThreadFreq()
1901 e.writeString(threadCpuUsage.threadName); in pullCpuTimePerThreadFreq()
1905 e.writeInt(threadCpuUsage.usageTimesMillis[k]); in pullCpuTimePerThreadFreq()