Lines Matching refs:text
53 text = subprocess.check_output(["adb", "shell", "ps"])
56 lines = ParsePs(text)
67 text = subprocess.check_output(["adb", "shell", "dumpsys", "package", "--checkin"])
70 lines = ParseUids(text)
112 def ParsePs(text): argument
115 for line in text.splitlines():
126 def ParseUids(text): argument
129 return [(x[2], x[1]) for x in csv.reader(text.split("\n")) if len(x) and x[0] == "pkg"]
132 def ParseUid(text): argument
133 m = ANDROID_UID_RE.match(text)
137 m = UID_RE.match(text)
140 return text