Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReader.java183 for (Path processPath : processPaths) { in getProcessCpuUsage()
184 final int processId = getProcessId(processPath); in getProcessCpuUsage()
194 getProcessCpuUsage(processPath, processId, uid); in getProcessCpuUsage()
257 private ProcessCpuUsage getProcessCpuUsage(Path processPath, int processId, int uid) { in getProcessCpuUsage() argument
262 + processPath in getProcessCpuUsage()
269 final Path allThreadsPath = processPath.resolve("task"); in getProcessCpuUsage()
291 return new ProcessCpuUsage(processId, getProcessName(processPath), uid, threadCpuUsages); in getProcessCpuUsage()
328 private String getProcessName(Path processPath) { in getProcessName() argument
329 final Path processNamePath = processPath.resolve(PROCESS_NAME_FILENAME); in getProcessName()
354 private int getProcessId(Path processPath) { in getProcessId() argument
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
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()