Searched refs:subprocess (Results 1 - 25 of 38) sorted by relevance

12

/system/extras/simpleperf/inferno/
H A Dadb_root.py2 import subprocess namespace
8 subprocess.call(["adb", "shell", "cd /data/local/tmp; " + process.cmd])
H A Dadb_non_root.py2 import subprocess namespace
18 subprocess.check_output(["adb", "shell", "run-as %s" % process.name, "cp", "/data/local/tmp/simpleperf", "."])
25 subprocess.call(["adb", "shell", process.cmd])
31 subprocess.call(["adb", "shell", "run-as %s cat perf.data | tee /data/local/tmp/perf.data >/dev/null" % (process.name)])
H A Dadb.py1 import subprocess namespace
23 err = subprocess.call(["adb", "shell", "rm", "-f", "/data/local/tmp/perf.data"])
27 piof_output = subprocess.check_output(["adb", "shell", "pidof", process_name])
36 err = subprocess.call(["adb", "pull", "/data/local/tmp/perf.data", "."])
47 output = subprocess.check_output(["adb", "shell", "getprop"])
88 subprocess.call(["adb", "push", exec_path, "/data/local/tmp/simpleperf"])
/system/core/adb/
H A Dtest_adb.py29 import subprocess namespace
41 out = subprocess.check_output(
42 ['adb', 'help'], stderr=subprocess.STDOUT)
47 lines = subprocess.check_output(['adb', 'version']).splitlines()
59 p = subprocess.Popen(['adb', 'tcpip'], stdout=subprocess.PIPE,
60 stderr=subprocess.STDOUT)
65 p = subprocess.Popen(['adb', 'tcpip', 'foo'], stdout=subprocess.PIPE,
66 stderr=subprocess
[all...]
H A Dshell_service.cpp21 // of communication with the subprocess, passing raw data or using a simple
33 // Non-protocol subprocesses work by passing subprocess stdin/out/err through
41 // Subprocess | adbd subprocess thread | adbd main fdevent loop
59 // Subprocess | adbd subprocess thread | adbd main fdevent loop
150 // Sets up FDs, forks a subprocess, starts the subprocess manager thread,
154 // Start the subprocess manager thread. Consumes the subprocess, regardless of success.
156 static bool StartThread(std::unique_ptr<Subprocess> subprocess,
198 // subprocess
394 StartThread(std::unique_ptr<Subprocess> subprocess, std::string* error) argument
436 Subprocess* subprocess = reinterpret_cast<Subprocess*>(userdata); local
733 auto subprocess = std::make_unique<Subprocess>(name, terminal_type, type, protocol); local
[all...]
H A Dtest_device.py31 import subprocess namespace
150 with self.assertRaises(subprocess.CalledProcessError):
318 proc = subprocess.Popen(
320 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
321 stderr=subprocess.PIPE)
397 terminal = subprocess.Popen(
399 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
402 non_terminal = subprocess
[all...]
/system/bt/build/toolchain/clang/
H A Dget_clang_suffix.py2 import subprocess namespace
19 clang_version_out = subprocess.Popen([clang_path, "--version"],
20 stdout=subprocess.PIPE).communicate()[0]
/system/extras/verity/fec/tests/
H A Dfec.py19 import subprocess namespace
45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0:
49 return subprocess.call([ "fec", "--decode", image, fec, output ])
52 return subprocess.call([ "cmp", "-s", a, b ])
56 if subprocess.call([ "simg2img", image, output]) != 0:
/system/sepolicy/tools/
H A Dpost_process_mac_perms30 import subprocess namespace
45 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
46 stderr=subprocess.PIPE)
/system/timezone/
H A Ddownload-iana-data.py22 import subprocess namespace
49 subprocess.check_call(['gpg', '--trusted-key=ED97E90E62AA7E34', '--verify',
H A Dupdate-tzdata.py23 import subprocess namespace
117 subprocess.check_call(zic_cmd)
125 subprocess.check_call(['javac', '-d', class_files_dir,
131 subprocess.check_call(['java', '-cp', class_files_dir, 'ZoneCompactor',
161 subprocess.check_call([create_distro_script,
/system/tools/aidl/tests/
H A Dintegration-test.py9 import subprocess namespace
82 subprocess.CalledProcessError on command exit != 0.
96 subprocess.CalledProcessError on failure.
113 subprocess.CalledProcessError on command exit != 0.
118 p = subprocess.Popen(command, shell=True, close_fds=True,
119 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
123 raise subprocess.CalledProcessError(p.returncode, command)
/system/extras/simpleperf/scripts/
H A Dutils.py25 import subprocess namespace
108 subproc = subprocess.Popen([executable, option], stdout=subprocess.PIPE,
109 stderr=subprocess.PIPE)
186 returncode = subprocess.call(adb_args, stdout=stdout_fh)
189 subproc = subprocess.Popen(adb_args, stdout=subprocess.PIPE)
H A Dupdate.py75 """Proxy for subprocess.check_call with logging."""
76 import subprocess namespace
78 subprocess.check_call(cmd)
H A Dbinary_cache_builder.py28 import subprocess namespace
185 output = subprocess.check_output([self.readelf_path, '-n', file])
201 output = subprocess.check_output([self.readelf_path, '-S', file])
H A Dsimpleperf_report_lib.py25 import subprocess namespace
296 subprocess.check_call(['python', os.path.realpath(__file__), '--test-one'])
297 subprocess.check_call(['python3', os.path.realpath(__file__), '--test-one'])
/system/extras/verity/
H A Dbuild_verity_metadata.py22 import subprocess namespace
31 p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
/system/timezone/distro/tools/
H A Dcreate-distro.py22 import subprocess namespace
36 subprocess.check_call(['make', '-C', android_build_top, 'time_zone_distro_tools-host'])
47 subprocess.check_call(['java', '-cp', classpath,
/system/extras/memcpy-perf/
H A Dgraph_memcpy.py2 import subprocess namespace
/system/extras/pagecache/
H A Dpagecache.py8 import subprocess namespace
203 adb_output = subprocess.check_output(adb_command, stderr=subprocess.STDOUT,
213 except subprocess.CalledProcessError as error:
395 atrace = subprocess.Popen(trace_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
396 stderr=subprocess.PIPE)
/system/extras/systrace_analysis/
H A Danalyze_trace.py20 import subprocess namespace
/system/tools/hidl/c2hal/test/
H A Dbuild_all.py21 from subprocess import call
/system/update_engine/
H A Dsideload_main.cc37 #include "update_engine/common/subprocess.h"
148 // Setup the subprocess handler.
151 Subprocess subprocess; local
152 subprocess.Init(&handler);
/system/update_engine/scripts/update_payload/
H A Dtest_utils.py13 import subprocess namespace
91 sign_process = subprocess.Popen(sign_cmd, stdin=subprocess.PIPE,
92 stdout=subprocess.PIPE)
95 raise TestError('signing subprocess failed: %s' % e)
/system/core/init/
H A Dperfboot.py49 import subprocess namespace
207 except (subprocess.CalledProcessError, RuntimeError):
370 p = subprocess.Popen(
372 stdout=subprocess.PIPE)

Completed in 500 milliseconds

12