Lines Matching refs:retcode
340 retcode = int(output.pop())
341 return retcode,'\n'.join(output)
361 retcode,output = adb_cmd(False, ['shell', 'readlink $(which ps)'])
366 retcode,output = adb_cmd(False,['shell', ps_command])
497 retcode,ADB_TEST = adb_cmd(True,['shell', 'ls'])
498 if retcode != 0:
505 retcode,API_LEVEL = adb_var_shell(['getprop', 'ro.build.version.sdk'])
506 if retcode != 0 or API_LEVEL == '':
566 retcode,DEVICE_GDBSERVER = adb_var_shell2(['ls', '/data/data/%s/lib/gdbserver' % (PACKAGE_NAME)])
567 if retcode:
573 retcode,DATA_DIR = adb_var_shell2(['run-as', PACKAGE_NAME, '/system/bin/sh', '-c', 'pwd'])
574 if retcode or DATA_DIR == '':
593 retcode,LAUNCH_OUTPUT=adb_cmd(True,
596 if retcode:
606 retcode,PID = get_pid_of(PACKAGE_NAME)
608 if retcode or PID == 0:
623 retcode,GDBSERVER_PID = get_pid_of('lib/gdbserver')
624 if not retcode and not GDBSERVER_PID == 0:
639 # retcode,GDBSERVER_PID = get_pid_of('lib/gdbserver')
640 # if retcode or GDBSERVER_PID == 0:
646 retcode,_ = adb_cmd(False,
649 if retcode: