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.java103 final String procFile = new StringBuilder(PROC_FILE_DIR) in readDeltaMs() local
108 final byte[] data = mInjector.readData(procFile); in readDeltaMs()
110 verifyCpuFreqsCount(data.length, procFile); in readDeltaMs()
119 if (DBG) Slog.e(TAG, "Some error occured while reading " + procFile, e); in readDeltaMs()
127 private void verifyCpuFreqsCount(int numBytes, String procFile) { in verifyCpuFreqsCount() argument
133 + "count from " + procFile + "=" + actualCount); in verifyCpuFreqsCount()
246 public byte[] readData(String procFile) throws IOException { in readData() argument
247 return Files.readAllBytes(Paths.get(procFile)); in readData()
DKernelCpuUidTimeReader.java343 public KernelCpuUidFreqTimeReader(String procFile, KernelCpuProcStringReader reader, in KernelCpuUidFreqTimeReader() argument
346 mProcFilePath = Paths.get(procFile); in KernelCpuUidFreqTimeReader()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelSingleUidTimeReaderTest.java293 public byte[] readData(String procFile) throws IOException { in readData() argument