Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DProcTimeInStateReaderTest.java59 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testSimple() local
60 Files.write(initialTimeInStateFile, "1 2\n3 4\n5 6\n7 8\n".getBytes()); in testSimple()
61 ProcTimeInStateReader reader = new ProcTimeInStateReader(initialTimeInStateFile); in testSimple()
70 reader.getUsageTimesMillis(initialTimeInStateFile)); in testSimple()
75 final Path initialTimeInStateFile = mProcDirectory.toPath().resolve( in testHeaderFormat() local
77 Files.write(initialTimeInStateFile, "header1\n1 2\nheader2:\n3 4\n5 6\n7 8\n".getBytes()); in testHeaderFormat()
78 final ProcTimeInStateReader reader = new ProcTimeInStateReader(initialTimeInStateFile); in testHeaderFormat()
87 reader.getUsageTimesMillis(initialTimeInStateFile)); in testHeaderFormat()
92 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testDifferentFile() local
93 Files.write(initialTimeInStateFile, "1 2\n3 4\n5 6\n7 8\n".getBytes()); in testDifferentFile()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DProcTimeInStateReader.java109 public ProcTimeInStateReader(Path initialTimeInStateFile) throws IOException { in ProcTimeInStateReader() argument
110 initializeTimeInStateFormat(initialTimeInStateFile); in ProcTimeInStateReader()