Home
last modified time | relevance | path

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

/aosp12/system/netd/server/
H A DIptablesRestoreControllerTest.cpp107 std::string statPath = getProcStatPath(pid); in expectNoIptablesRestoreProcess() local
108 int fd = open(statPath.c_str(), O_RDONLY | O_CLOEXEC); in expectNoIptablesRestoreProcess()
112 << "Unexpected error opening " << statPath << ": " << strerror(errno); in expectNoIptablesRestoreProcess()
118 std::vector<std::string> procStat = parseProcStat(fd, statPath); in expectNoIptablesRestoreProcess()
127 std::string statPath = getProcStatPath(pid); in getRssPages() local
128 int fd = open(statPath.c_str(), O_RDONLY | O_CLOEXEC); in getRssPages()
129 EXPECT_NE(-1, fd) << "Unexpected error opening " << statPath << ": " << strerror(errno); in getRssPages()
132 const auto& procStat = parseProcStat(fd, statPath); in getRssPages()
137 << statPath << " is for unexpected process: " << procStat[1]; in getRssPages()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DMemoryStatUtil.java85 final String statPath = String.format(Locale.US, MEMORY_STAT_FILE_FMT, uid, pid); in readMemoryStatFromMemcg() local
86 return parseMemoryStatFromMemcg(readFileContents(statPath)); in readMemoryStatFromMemcg()
96 final String statPath = String.format(Locale.US, PROC_STAT_FILE_FMT, pid); in readMemoryStatFromProcfs() local
97 return parseMemoryStatFromProcfs(readFileContents(statPath)); in readMemoryStatFromProcfs()