Lines Matching refs:Partition
24 std::ostream& operator<<(std::ostream& os, Partition p) { in operator <<()
26 case Partition::SYSTEM: return os << "system"; in operator <<()
27 case Partition::VENDOR: return os << "vendor"; in operator <<()
28 case Partition::ODM: return os << "odm"; in operator <<()
29 case Partition::UNKNOWN: // fallthrough in operator <<()
56 Partition parsePartition(const std::string& s) { in parsePartition()
58 return Partition::SYSTEM; in parsePartition()
61 return Partition::VENDOR; in parsePartition()
64 return Partition::ODM; in parsePartition()
66 return Partition::UNKNOWN; in parsePartition()
69 Partition getPartitionFromRealpath(const std::string& path) { in getPartitionFromRealpath()
73 return Partition::UNKNOWN; // cannot determine in getPartitionFromRealpath()
81 Partition getPartitionFromCmdline(pid_t pid) { in getPartitionFromCmdline()
84 return Partition::SYSTEM; in getPartitionFromCmdline()
87 return Partition::UNKNOWN; in getPartitionFromCmdline()
92 Partition getPartitionFromExe(pid_t pid) { in getPartitionFromExe()
95 return Partition::UNKNOWN; in getPartitionFromExe()
101 Partition getPartition(pid_t pid) { in getPartition()
102 Partition partition = getPartitionFromExe(pid); in getPartition()
103 if (partition == Partition::UNKNOWN) { in getPartition()