Home
last modified time | relevance | path

Searched refs:threadCpuUsages (Results 1 – 6 of 6) sorted by relevance

/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DKernelCpuThreadReaderDiff.java168 for (int j = 0; j < processCpuUsage.threadCpuUsages.size(); j++) { in createCpuUsageMap()
170 processCpuUsage.threadCpuUsages.get(j); in createCpuUsageMap()
193 for (int i = 0; i < processCpuUsage.threadCpuUsages.size(); i++) { in changeToDiffs()
195 processCpuUsage.threadCpuUsages.get(i); in changeToDiffs()
224 for (int i = 0; i < processCpuUsage.threadCpuUsages.size(); i++) { in applyThresholding()
226 processCpuUsage.threadCpuUsages.get(i); in applyThresholding()
241 processCpuUsage.threadCpuUsages = thresholded; in applyThresholding()
H A DKernelCpuThreadReader.java274 final ArrayList<ThreadCpuUsage> threadCpuUsages = new ArrayList<>(); in getProcessCpuUsage() local
281 threadCpuUsages.add(threadCpuUsage); in getProcessCpuUsage()
289 if (threadCpuUsages.isEmpty()) { in getProcessCpuUsage()
293 Slog.d(TAG, "Read CPU usage of " + threadCpuUsages.size() + " threads"); in getProcessCpuUsage()
295 return new ProcessCpuUsage(processId, getProcessName(processPath), uid, threadCpuUsages); in getProcessCpuUsage()
533 public ArrayList<ThreadCpuUsage> threadCpuUsages; field in KernelCpuThreadReader.ProcessCpuUsage
540 ArrayList<ThreadCpuUsage> threadCpuUsages) { in ProcessCpuUsage() argument
544 this.threadCpuUsages = threadCpuUsages; in ProcessCpuUsage()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelCpuThreadReaderEndToEndTest.java141 final List<ThreadCpuUsage> threadCpuUsages = in getAverageWorkTime() local
142 currentProcessCpuUsage.get().threadCpuUsages.stream() in getAverageWorkTime()
147 numSamples, threadCpuUsages.size()); in getAverageWorkTime()
150 final OptionalDouble averageWorkTimeMillis = threadCpuUsages.stream() in getAverageWorkTime()
H A DKernelCpuThreadReaderDiffTest.java282 ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = new ArrayList<>(); in createProcess() local
285 threadCpuUsages.add( in createProcess()
291 0, "process", 0, threadCpuUsages))); in createProcess()
297 .flatMap(p -> p.threadCpuUsages.stream()) in cpuUsages()
305 .flatMap(p -> p.threadCpuUsages.stream()) in threadNames()
H A DKernelCpuThreadReaderTest.java145 assertEquals(threadIds.length, processCpuUsage.threadCpuUsages.size()); in checkResults()
148 final ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = in checkResults() local
149 new ArrayList<>(processCpuUsage.threadCpuUsages); in checkResults()
150 threadCpuUsages.sort(Comparator.comparingInt(a -> a.threadId)); in checkResults()
153 for (KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage : threadCpuUsages) { in checkResults()
/aosp14/frameworks/base/services/core/java/com/android/server/stats/pull/
H A DStatsPullAtomService.java3229 ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages =
3230 processCpuUsage.threadCpuUsages;
3231 for (int j = 0; j < threadCpuUsages.size(); j++) {
3232 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = threadCpuUsages.get(j);