Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DMemoryStatUtilTest.java22 import static com.android.server.am.MemoryStatUtil.parseCmdlineFromProcfs;
319 assertEquals("", parseCmdlineFromProcfs(bytesToString(nothing))); in testParseCmdlineFromProcfs_invalidValue()
324 assertEquals("com.google.app", parseCmdlineFromProcfs("com.google.app")); in testParseCmdlineFromProcfs_correctValue_noNullBytes()
331 assertEquals("test", parseCmdlineFromProcfs(bytesToString(trailing))); in testParseCmdlineFromProcfs_correctValue_withNullBytes()
336 assertEquals("test", parseCmdlineFromProcfs(bytesToString(trailing))); in testParseCmdlineFromProcfs_correctValue_withNullBytes()
341 assertEquals("", parseCmdlineFromProcfs("")); in testParseCmdlineFromProcfs_emptyContents()
343 assertEquals("", parseCmdlineFromProcfs(null)); in testParseCmdlineFromProcfs_emptyContents()
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java144 return parseCmdlineFromProcfs(readFileContents(path)); in readCmdlineFromProcfs()
259 static String parseCmdlineFromProcfs(String cmdline) { in parseCmdlineFromProcfs() method in MemoryStatUtil