Lines Matching refs:cmd
41 def __init__(self, cmd, stdout, stderr, exit_code): argument
43 '`{0}` exited with code {1}'.format(cmd, exit_code))
44 self.cmd = cmd
325 def _simple_call(self, cmd): argument
326 logging.info(' '.join(self.adb_cmd + cmd))
328 self.adb_cmd + cmd, stderr=subprocess.STDOUT)
330 def shell(self, cmd): argument
343 exit_code, stdout, stderr = self.shell_nocheck(cmd)
345 raise ShellError(cmd, stdout, stderr, exit_code)
348 def shell_nocheck(self, cmd): argument
358 cmd = self._make_shell_cmd(cmd)
359 logging.info(' '.join(cmd))
361 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
369 def shell_popen(self, cmd, kill_atexit=True, preexec_fn=None, argument
388 command = self.adb_cmd + ['shell'] + cmd
412 cmd = ['install']
414 cmd.append('-r')
415 cmd.append(filename)
416 return self._simple_call(cmd)
430 cmd = ['push']
432 cmd.append('--sync')
433 cmd.extend([local, remote])
434 return self._simple_call(cmd)
440 cmd = ['sync']
442 cmd.append(directory)
443 return self._simple_call(cmd)