Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DKernelCpuThreadReader.java184 for (Path processPath : processPaths) { in getProcessCpuUsage()
185 final int processId = getProcessId(processPath); in getProcessCpuUsage()
195 getProcessCpuUsage(processPath, processId, uid); in getProcessCpuUsage()
261 private ProcessCpuUsage getProcessCpuUsage(Path processPath, int processId, int uid) { in getProcessCpuUsage() argument
266 + processPath in getProcessCpuUsage()
273 final Path allThreadsPath = processPath.resolve("task"); in getProcessCpuUsage()
295 return new ProcessCpuUsage(processId, getProcessName(processPath), uid, threadCpuUsages); in getProcessCpuUsage()
339 private String getProcessName(Path processPath) { in getProcessName() argument
340 final Path processNamePath = processPath.resolve(PROCESS_NAME_FILENAME); in getProcessName()
365 private int getProcessId(Path processPath) { in getProcessId() argument
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelCpuThreadReaderTest.java105 private void setupDirectory(Path processPath, int[] threadIds, String processName, in setupDirectory() argument
108 assertTrue(processPath.toFile().mkdirs()); in setupDirectory()
111 final Path selfThreadsPath = processPath.resolve("task"); in setupDirectory()
115 Files.write(processPath.resolve("cmdline"), processName.getBytes()); in setupDirectory()