Lines Matching refs:proc
276 proc = subprocess.Popen(
283 proc.communicate(input + b'; exit\n')
284 return proc.returncode
472 proc = subprocess.Popen(self.device.adb_cmd + ['shell', 'cat'],
476 stdout, stderr = proc.communicate(input)
1765 … with subprocess.Popen(['adb', 'devices'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1766 lines = list(map(lambda b: b.decode("utf-8"), proc.stdout.readlines()))
1777 … subprocess.Popen(['adb', 'devices', '-l'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1778 lines = list(map(lambda b: b.decode("utf-8"), proc.stdout.readlines()))
1789 … subprocess.Popen(['adb', 'track-devices'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1790 with io.TextIOWrapper(proc.stdout, encoding='utf8') as reader:
1799 proc.terminate()
1802 …ocess.Popen(['adb', 'track-devices', '-l'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1803 with io.TextIOWrapper(proc.stdout, encoding='utf8') as reader:
1812 proc.terminate()
1815 …n(['adb', 'track-devices', '--proto-text'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1816 with io.TextIOWrapper(proc.stdout, encoding='utf8') as reader:
1825 proc.terminate()
1828 …['adb', 'track-devices', '--proto-binary'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1830 output_size = int(proc.stdout.read(4).decode("utf-8"), 16)
1831 proto = proc.stdout.read(output_size)
1846 proc.terminate()
1860 …pen(['adb', 'track-app', '--proto-binary'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
1861 output_size = int(proc.stdout.read(4).decode("utf-8"), 16)
1862 proto = proc.stdout.read(output_size)
1883 proc.terminate()