Searched refs:parseCmdlineFromProcfs (Results 1 – 2 of 2) sorted by relevance
22 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()
144 return parseCmdlineFromProcfs(readFileContents(path)); in readCmdlineFromProcfs()259 static String parseCmdlineFromProcfs(String cmdline) { in parseCmdlineFromProcfs() method in MemoryStatUtil