/development/tools/ |
D | monkey | 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 [all …]
|
/development/vndk/tools/definition-tool/tools/ |
D | update_dataset_auto.py | 24 cmd = [sys.executable, UPDATE_DATASET] 25 cmd.extend(['--make-vars', make_vars]) 26 cmd.extend(['--module-info', module_info]) 27 cmd.extend(['-o', tmp_path]) 28 cmd.append(path) 30 print('command:', ' '.join(cmd)) 32 subprocess.check_call(cmd) 41 cmd = [sys.executable, LIST_VNDK_MODULE] 42 cmd.extend(['--exclude', '(?:device/)|(?:vendor/)']) 43 cmd.extend(['--namespace', 'hardware/google/av']) [all …]
|
/development/gsi/gsi_util/gsi_util/utils/ |
D | sepolicy_utils.py | 63 cmd = ['secilc'] 67 cmd.append('-' + option) 69 cmd.append('--' + option) 72 cmd.append(options[option]) 75 cmd.extend(files) 78 returncode, _, stderrdata = cmd_utils.run_command(cmd,
|
D | fastboot_utils.py | 23 cmd = ['fastboot', 'flash', partition_name] 28 cmd.append(image_name) 30 run_command(cmd, raise_on_error=not allow_error)
|
/development/vndk/tools/definition-tool/tests/ |
D | ndk_toolchain.py | 102 cmd = [clang, '-o', obj_file, '-c', src_file] 103 cmd.extend(['-fPIE', '-fPIC']) 104 cmd.extend(['-gcc-toolchain', self.gcc_toolchain_dir]) 105 cmd.extend(['-target', self.target_triple]) 106 cmd.extend(['-isystem', self.ndk_include]) 107 cmd.extend(cflags) 108 cmd.extend(self.target_cflags) 109 subprocess.check_call(cmd) 122 cmd = [clang, '-o', out_file] 123 cmd.extend(['-fPIE', '-fPIC', '-Wl,--no-undefined', '-nostdlib']) [all …]
|
/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | AMControl.java | 38 StringBuilder cmd = new StringBuilder("am start -n "); in launchInBackground() local 40 cmd.append(target.getPackageName()).append("/").append(target.getShortClassName()); in launchInBackground() 41 cmd.append(" -f ").append("0x").append(Integer.toHexString(intent.getFlags())); in launchInBackground() 42 cmd.append(" --ez moveToBack true"); in launchInBackground() 43 return execCmd(cmd.toString()); in launchInBackground() 51 public static String execCmd(String cmd) { in execCmd() argument 53 ProcessBuilder factory = new ProcessBuilder(cmd.split(" ")); in execCmd() 56 if (BuildConfig.DEBUG) Log.d(TAG, "Running command " + cmd); in execCmd() 76 lineCount, cmd.split(" ")[0], output.toString())); in execCmd()
|
/development/python-packages/adb/ |
D | device.py | 41 def __init__(self, cmd, stdout, stderr, exit_code): argument 43 '`{0}` exited with code {1}'.format(cmd, exit_code)) 44 self.cmd = cmd 328 def _simple_call(self, cmd): argument 329 logging.info(' '.join(self.adb_cmd + cmd)) 331 self.adb_cmd + cmd, stderr=subprocess.STDOUT).decode('utf-8') 333 def shell(self, cmd): argument 346 exit_code, stdout, stderr = self.shell_nocheck(cmd) 348 raise ShellError(cmd, stdout, stderr, exit_code) 351 def shell_nocheck(self, cmd): argument [all …]
|
/development/vndk/snapshot/ |
D | utils.py | 48 def check_call(cmd): argument 49 logging.debug('Running `{}`'.format(' '.join(cmd))) 50 subprocess.check_call(cmd) 53 def check_output(cmd): argument 54 logging.debug('Running `{}`'.format(' '.join(cmd))) 55 output = subprocess.check_output(cmd) 151 cmd = [ 155 check_call(cmd)
|
D | check_gpl_license.py | 120 cmd = [ 123 output = utils.check_output(cmd).strip() 150 cmd = ['git', '-C', path, 'fetch', self._remote_git, revision] 151 utils.check_call(cmd) 152 cmd = ['git', '-C', path, 'rev-parse', 'FETCH_HEAD^2'] 153 parent_revision = utils.check_output(cmd).strip()
|
/development/vndk/tools/header-checker/utils/ |
D | utils.py | 123 cmd = ['header-abi-dumper', '-o', output_path, input_path] 125 cmd += ['-I', dir] 126 cmd += flags 128 cmd += ['-output-format', DEFAULT_FORMAT] 130 cmd += DEFAULT_HEADER_FLAGS 131 cmd += ['--'] 132 cmd += cflags 134 cmd += DEFAULT_CPPFLAGS 136 cmd += DEFAULT_CFLAGS 139 cmd += ['-isystem', dir] [all …]
|
/development/testrunner/ |
D | run_command.py | 37 def RunCommand(cmd, timeout_time=None, retry_count=3, return_output=True, argument 54 result = RunOnce(cmd, timeout_time=timeout_time, 60 logger.Log("No response for %s, retrying" % cmd) 65 def RunOnce(cmd, timeout_time=None, return_output=True, stdin_input=None): argument 99 cmd, 111 logger.SilentLog("failed to retrieve stdout from: %s" % cmd) 116 logger.SilentLog("Error: %s returned %d error code" %(cmd, 137 logger.SilentLog("about to raise a timeout for: %s" % cmd)
|
D | runtest.py | 318 cmd = 'ONE_SHOT_MAKEFILE="%s" make -j%s -C "%s" %s %s %s' % ( 325 logger.Log(cmd) 329 output = run_command.RunCommand(cmd, return_output=True, timeout_time=600) 337 output = run_command.RunCommand(cmd, return_output=True, timeout_time=600) 404 cmd = ('make -j%s %s' % (self._options.make_jobs, 406 logger.Log(cmd) 410 output = run_command.RunCommand(cmd, return_output=True)
|
D | adb_interface.py | 74 def SendShellCommand(self, cmd, timeout_time=20, retry_count=3): argument 90 return self.SendCommand("shell %s" % cmd, timeout_time=timeout_time, 290 def PreviewShellCommand(self, cmd): argument 291 return "adb %s shell %s" % (self._target_arg, cmd)
|
/development/tools/idegen/ |
D | intellij-gen.sh | 75 cmd="java -cp $idegenjar com.android.idegen.IntellijProject $index_file $project_dir $module_dirs" 76 echo $cmd 77 $cmd
|
/development/tools/repo_diff/service/repodiff/controllers/ |
D | differential.go | 60 cmd := exec.Command( 69 cmd.Dir = workingDirectory 70 if _, err := cmd.Output(); err != nil { 100 cmd := exec.Command( 112 cmd.Dir = config.OutputDirectory 113 return cmd 136 cmd := setupCommand(pyScript, config, target) 138 displayStr := strings.Join(cmd.Args, " ") 142 cmd.Run(),
|
/development/testrunner/test_defs/ |
D | host_test.py | 102 cmd = "java -cp %s %s %s -s %s -p %s" % (":".join(full_lib_paths), 106 logger.Log(cmd) 108 run_command.RunOnce(cmd, return_output=False)
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyCommandEvent.java | 31 public MonkeyCommandEvent(String cmd) { in MonkeyCommandEvent() argument 33 mCmd = cmd; in MonkeyCommandEvent()
|
D | MonkeyGetAppFrameRateEvent.java | 126 String cmd = String.format(GET_APP_FRAMERATE_TMPL, sActivityName); in injectEvent() local 128 p = Runtime.getRuntime().exec(cmd); in injectEvent() 132 cmd, status)); in injectEvent() 151 Logger.err.println("// Exception from " + cmd + ":"); in injectEvent()
|
/development/python-packages/gdbrunner/ |
D | __init__.py | 247 cmd = ["cat", executable_path, ">", remote_temp_path] 249 cmd = run_as_cmd + cmd 252 device.shell(cmd) 281 cmd = ["which", executable_name] 283 cmd = run_as_cmd + cmd 286 output, _ = device.shell(cmd)
|
/development/scripts/ |
D | symbol.py | 43 cmd = "build/soong/soong_ui.bash --dumpvar-mode --abs TARGET_OUT_UNSTRIPPED" 44 stream = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).stdout 74 def GetProcess(self, cmd): argument 75 cmd_tuple = tuple(cmd) # Need to use a tuple as lists can't be dict keys. 92 pipe = self.SpawnProcess(cmd) 97 def SpawnProcess(self, cmd): argument 98 return subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) 301 cmd = [ToolPath("addr2line"), "--functions", "--inlines", 303 child = _PIPE_ADDR2LINE_CACHE.GetProcess(cmd) 394 cmd = [ToolPath("objdump"), [all …]
|
D | usb-reset-by-serial.py | 89 def docmdlines(cmd, nf=None): argument 91 verbose(2, "+ docmdlines executing: %s" % cmd) 92 args = shlex.split(cmd)
|
D | disassemble_tombstone.py | 149 cmd = tools.Link([ 151 subprocess.check_call(cmd)
|
/development/tools/repo_pull/ |
D | repo_pull.py | 290 def _sh_quote_command(cmd): argument 293 return ' '.join(_sh_quote(x) for x in cmd) 299 return ' && '.join(_sh_quote_command(cmd) for cmd in cmds) 343 for cmd in cmds: 344 proc = run(cmd, cwd=cwd, stderr=PIPE) 346 return (change, changes[i + 1:], cmd, proc.stderr) 358 for failed_change, skipped_changes, cmd, errors in failures: 364 print('FAILED COMMAND:', _sh_quote_command(cmd), file=file)
|
/development/sdk/ |
D | Android.bp | 3 …cmd: "sed 's/$${PLATFORM_SDK_VERSION}/0/ ; s/^Pkg.Revision=\\(.*\\)/#define PLATFORM_TOOLS_VERSION…
|
/development/build/tools/ |
D | mk_sources_zip.py | 207 def shellExec(*cmd): argument 216 verbose("exec: %s", repr(cmd)) 217 subprocess.check_call(cmd)
|