Home
last modified time | relevance | path

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

/frameworks/base/apct-tests/perftests/core/src/android/os/
DCpuUsageTrackingPerfTest.java54 final String procFile = "/proc/self/stat"; in timeReadStatFileDirectly() local
56 byte[] data = Files.readAllBytes(Paths.get(procFile)); in timeReadStatFileDirectly()
64 final String procFile = "/proc/self/time_in_state"; in timeReadPidProcDirectly() local
66 byte[] data = Files.readAllBytes(Paths.get(procFile)); in timeReadPidProcDirectly()
74 final String procFile = "/proc/self/task/" + android.os.Process.myTid() in timeReadThreadProcDirectly() local
77 byte[] data = Files.readAllBytes(Paths.get(procFile)); in timeReadThreadProcDirectly()
/frameworks/base/core/java/com/android/internal/os/
DKernelSingleUidTimeReader.java87 final String procFile = new StringBuilder(PROC_FILE_DIR) in readDeltaMs() local
92 final byte[] data = mInjector.readData(procFile); in readDeltaMs()
94 verifyCpuFreqsCount(data.length, procFile); in readDeltaMs()
103 if (DBG) Slog.e(TAG, "Some error occured while reading " + procFile, e); in readDeltaMs()
111 private void verifyCpuFreqsCount(int numBytes, String procFile) { in verifyCpuFreqsCount() argument
117 + "count from " + procFile + "=" + actualCount); in verifyCpuFreqsCount()
230 public byte[] readData(String procFile) throws IOException { in readData() argument
231 return Files.readAllBytes(Paths.get(procFile)); in readData()
DKernelCpuUidTimeReader.java330 public KernelCpuUidFreqTimeReader(String procFile, KernelCpuProcStringReader reader, in KernelCpuUidFreqTimeReader() argument
333 mProcFilePath = Paths.get(procFile); in KernelCpuUidFreqTimeReader()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelSingleUidTimeReaderTest.java279 public byte[] readData(String procFile) throws IOException { in readData() argument