Lines Matching refs:cmd
44 def PrintCommand(cmd, env=None): argument
54 sys.stdout.write(" ".join(cmd))
73 def Exec(self, cmd, stdout=None, stderr=None): argument
82 cmd = self._command + cmd
83 PrintCommand(cmd)
84 result = subprocess.call(cmd, stdout=stdout, stderr=stderr)
86 raise ExecutionException("adb: %s returned %s" % (cmd, result))
94 def Run(self, cmd, stdout=None, stderr=None): argument
104 self.Exec(cmd, stdout=stdout, stderr=stderr)
107 def Get(self, cmd): argument
117 cmd = self._command + cmd
118 PrintCommand(cmd)
120 text = subprocess.check_output(cmd)
123 raise ExecutionException("adb: %s returned %s" % (cmd, ex.returncode))
126 def Shell(self, cmd, stdout=None, stderr=None): argument
137 cmd = ["shell"] + cmd
138 self.Run(cmd, stdout=stdout, stderr=stderr)
305 cmd = ["adb", "logcat", "-b", "main,system,events,crash"]
306 PrintCommand(cmd)
307 logcatProcess = subprocess.Popen(cmd, stdout=logcatFile, stderr=None)
312 cmd = [
320 cmd.append("-p")
321 cmd.append(pkg)
323 cmd.append("--ignore-crashes")
324 cmd.append("--ignore-native-crashes")
326 cmd.append("--ignore-timeouts")
328 cmd.append("--match-description")
329 cmd.append("'" + options.description + "'")
330 cmd.append(str(options.events))
332 adb.Shell(cmd, stdout=monkeyFile, stderr=monkeyFile)
352 cmd = ["bugreport", "--monkey", monkeyFilename, "--html", htmlFilename,
354 PrintCommand(cmd)
355 result = subprocess.call(cmd)