Lines Matching full:adb
35 getprop_args = ['adb', 'shell', 'getprop', 'ro.build.version.sdk']
43 adb = subprocess.Popen(getprop_args, stdout=subprocess.PIPE,
45 out, err = adb.communicate()
46 if adb.returncode != 0:
90 help='adb device serial number')
95 atrace_args = ['adb', 'shell', 'atrace', '--list_categories']
101 atrace_args = ['adb', 'shell', 'atrace', '-z']
124 if atrace_args[0] == 'adb':
148 adb = subprocess.Popen(atrace_args, stdout=subprocess.PIPE,
157 ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, adb.stderr])
158 if adb.stderr in ready[0]:
159 err = os.read(adb.stderr.fileno(), 4096)
162 if adb.stdout in ready[0]:
163 out = os.read(adb.stdout.fileno(), 4096)
180 result = adb.poll()
184 ready = select.select([adb.stdout, adb.stderr], [], [adb.stdout, adb.stderr])
186 if adb.stderr in ready[0]:
187 err = os.read(adb.stderr.fileno(), 4096)
192 if adb.stdout in ready[0]:
193 out = os.read(adb.stdout.fileno(), 4096)
201 result = adb.poll()
207 # Collapse CRLFs that are added by adb shell.
242 print >> sys.stderr, 'adb returned error code %d' % result