Lines Matching refs:pid
35 std::string getExe(pid_t pid) { in getExe() argument
38 if (!android::base::Readlink("/proc/" + std::to_string(pid) + "/exe", &exe)) { in getExe()
47 std::string getCmdline(pid_t pid) { in getCmdline() argument
49 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &content, in getCmdline()
81 Partition getPartitionFromCmdline(pid_t pid) { in getPartitionFromCmdline() argument
82 const auto& cmdline = getCmdline(pid); in getPartitionFromCmdline()
92 Partition getPartitionFromExe(pid_t pid) { in getPartitionFromExe() argument
93 const auto& real = getExe(pid); in getPartitionFromExe()
101 Partition getPartition(pid_t pid) { in getPartition() argument
102 Partition partition = getPartitionFromExe(pid); in getPartition()
104 partition = getPartitionFromCmdline(pid); in getPartition()