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

12

/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
149 // Sets up FDs, forks a subprocess, starts the subprocess manager thread,
153 // Start the subprocess manager thread. Consumes the subprocess, regardless of success.
155 static bool StartThread(std::unique_ptr<Subprocess> subprocess,
197 // subprocess
393 StartThread(std::unique_ptr<Subprocess> subprocess, std::string* error) argument
440 Subprocess* subprocess = reinterpret_cast<Subprocess*>(userdata); local
738 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)
390 terminal = subprocess.Popen(
392 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
395 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/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/verity/
H A Dbuild_verity_metadata.py22 import subprocess namespace
31 p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
/system/extras/memcpy-perf/
H A Dgraph_memcpy.py2 import subprocess namespace
/system/extras/simpleperf/scripts/
H A Dutils.py24 import subprocess namespace
94 subproc = subprocess.Popen(adb_args, stdout=subprocess.PIPE)
H A Dupdate.py68 """Proxy for subprocess.check_call with logging."""
69 import subprocess namespace
71 subprocess.check_call(cmd)
H A Dbinary_cache_builder.py28 import subprocess namespace
184 output = subprocess.check_output([self.readelf_path, '-n', file])
199 output = subprocess.check_output([self.readelf_path, '-S', file])
H A Dsimpleperf_report_lib.py25 import subprocess namespace
307 subprocess.check_call(['python', os.path.realpath(__file__), '--test-one'])
308 subprocess.check_call(['python3', os.path.realpath(__file__), '--test-one'])
/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/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)
H A Dapplier.py23 import subprocess namespace
392 subprocess.check_call(bspatch_cmd)
416 subprocess.check_call(patch_cmd)
/system/core/init/
H A Dperfboot.py49 import subprocess namespace
207 except (subprocess.CalledProcessError, RuntimeError):
370 p = subprocess.Popen(
372 stdout=subprocess.PIPE)
/system/extras/tests/bootloader/
H A Dbootloadertest.py19 import subprocess namespace
170 except subprocess.CalledProcessError:
/system/tpm/attestation/common/
H A Dproto_print.py39 import subprocess namespace
393 subprocess.call(['clang-format', '-i', '-style=Chromium', filename])
/system/update_engine/common/
H A Dsubprocess_unittest.cc17 #include "update_engine/common/subprocess.h"
99 void ExpectedDataOnPipe(const Subprocess* subprocess, argument
109 int fd = subprocess->GetPipeFd(*pid, child_fd);
/system/update_engine/scripts/
H A Dupdate_device.py25 import subprocess namespace
230 subprocess.CalledProcessError on command exit != 0.
234 p = subprocess.Popen(command, universal_newlines=True)
/system/update_engine/
H A Dsideload_main.cc37 #include "update_engine/common/subprocess.h"
150 // Setup the subprocess handler.
153 Subprocess subprocess; local
154 subprocess.Init(&handler);
/system/extras/simpleperf/runtest/
H A Druntest.py31 import subprocess namespace
323 subprocess.check_call(args, stdout=output_fh)
347 subprocess.check_call(args_with_adb, stdout=output_fh)
353 subprocess.check_call(args)

Completed in 786 milliseconds

12