Home
last modified time | relevance | path

Searched refs:subprocess (Results 1 – 25 of 53) sorted by relevance

123

/packages/modules/adb/
Dtest_adb.py30 import subprocess
116 output = subprocess.check_output(["adb", "connect", serial])
124 subprocess.Popen(["adb", "disconnect", serial],
125 stdout=subprocess.PIPE,
126 stderr=subprocess.PIPE).communicate()
148 proc = subprocess.Popen(["adb", "-L", "tcp:localhost:{}".format(port),
166 out = subprocess.check_output(
167 ["adb", "help"], stderr=subprocess.STDOUT)
172 lines = subprocess.check_output(["adb", "version"]).splitlines()
185 proc = subprocess.Popen(["adb", "tcpip"],
[all …]
Dtest_device.py32 import subprocess
70 abb = subprocess.run(['adb', 'abb'], capture_output=True)
71 cmd = subprocess.run(['adb', 'shell', 'cmd'], capture_output=True)
91 with self.assertRaises(subprocess.CalledProcessError):
137 serialno = subprocess.check_output(self.device.adb_cmd + ['get-serialno']).strip()
276 proc = subprocess.Popen(
278 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
279 stderr=subprocess.PIPE)
355 terminal = subprocess.Popen(
357 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
[all …]
/packages/modules/Virtualization/microdroid/initrd/
Dgen_vbmeta_bootconfig.py6 import subprocess
15 with subprocess.Popen([avbtool, 'version'],
16 stdout=subprocess.PIPE,
17 stderr=subprocess.STDOUT) as proc:
22 with subprocess.Popen([avbtool, 'info_image', '--image', vbmeta_img],
23 stdout=subprocess.PIPE,
24 stderr=subprocess.STDOUT) as proc:
32 with subprocess.Popen([avbtool, 'calculate_vbmeta_digest',
35 stdout=subprocess.PIPE,
36 stderr=subprocess.STDOUT) as proc:
/packages/modules/common/tools/
Dfinalize_sdk.py10 import subprocess
64 subprocess.check_output(fetch_cmd, stderr=subprocess.STDOUT)
65 except subprocess.CalledProcessError:
90 subprocess.check_output(fetch_cmd, stderr=subprocess.STDOUT)
91 except subprocess.CalledProcessError:
211 subprocess.check_output(['repo', 'start', branch_name] + list(created_dirs.keys()))
215 subprocess.check_output(git + ['add'] + list(created_dirs[repo]))
220 subprocess.check_output(git + ['add', COMPAT_README])
223 …change_id_match = re.search(r'Change-Id: [^\\n]+', str(subprocess.check_output(git + ['log', '-1']…
228 subprocess.check_output(git + ['commit', '--amend', '-m', commit_message + change_id])
[all …]
Dcheck_allowed_deps.py8 import subprocess
34 commit_msg = subprocess.run(["git", "show", "--no-patch", "--format=%B", sha],
53 git_show = subprocess.run(["git", "show", "--name-only", "--format=", sha],
60 before = subprocess.run(["git", "show", "%s^:%s" % (sha, AllowedDepsTxt)],
62 after = subprocess.run(["git", "show", "%s:%s" % (sha, AllowedDepsTxt)],
/packages/modules/UprobeStats/src/test/
Dhello_uprobestats.py4 import subprocess
20 subprocess.run("adb root", **kwargs)
37 subprocess.run(config_cmd, **kwargs)
42 subprocess.run("adb logcat -c", **kwargs)
47 subprocess.run(
54 lines = subprocess.run(
71 subprocess.run(
/packages/modules/Bluetooth/android/pandora/
Dgen_cov.py8 import subprocess
37 subprocess.run(run_pts_bot_cmd, stdout=f, stderr=subprocess.STDOUT)
97 returncode = subprocess.run(
98 run_test_cmd, env=env, stdout=f, stderr=subprocess.STDOUT).returncode
109 subprocess.run(['adb', 'pull', '/data/misc/trace', temp_trace])
187 subprocess.run((
237 subprocess.run(gen_java_cov_report_cmd)
286 subprocess.run(
302 subprocess.run(gen_native_cov_report_cmd, cwd=android_build_top)
361 subprocess.run(['adb', 'shell', 'rm', '/data/misc/trace/*'])
[all …]
/packages/modules/adb/daemon/
Dshell_service.cpp180 static bool StartThread(std::unique_ptr<Subprocess> subprocess,
502 bool Subprocess::StartThread(std::unique_ptr<Subprocess> subprocess, std::string* error) { in StartThread() argument
503 Subprocess* raw = subprocess.release(); in StartThread()
544 Subprocess* subprocess = reinterpret_cast<Subprocess*>(userdata); in ThreadHandler() local
546 adb_thread_setname(android::base::StringPrintf("shell svc %d", subprocess->pid())); in ThreadHandler()
548 D("passing data streams for PID %d", subprocess->pid()); in ThreadHandler()
549 subprocess->PassDataStreams(); in ThreadHandler()
551 D("deleting Subprocess for PID %d", subprocess->pid()); in ThreadHandler()
552 delete subprocess; in ThreadHandler()
859 auto subprocess = std::make_unique<Subprocess>(std::move(name), terminal_type, type, protocol, in StartSubprocess() local
[all …]
/packages/modules/Bluetooth/system/tools/scripts/
Ddump_metrics_ascii.py19 import subprocess
56 if subprocess.call(protoc_command, stderr=subprocess.STDOUT) != 0:
94 p = subprocess.Popen(
97 stdout=subprocess.PIPE,
98 stderr=subprocess.PIPE,
99 stdin=subprocess.PIPE)
Dyapf_checker.py19 import subprocess
44 files = subprocess.check_output(full_git_command).decode('utf-8').splitlines()
62 …result = subprocess.run(full_yapf_command[1:], env=environment, stderr=subprocess.STDOUT, stdout=s…
/packages/modules/Bluetooth/system/blueberry/controllers/
Dgrpc_bt_target_mock.py19 import subprocess
55 self.server_proc = subprocess.Popen([server_path],
56 stdin=subprocess.PIPE,
57 stdout=subprocess.PIPE,
58 stderr=subprocess.PIPE,
Dgrpc_bt_sync_mock.py19 import subprocess
56 self.server_proc = subprocess.Popen([server_path],
57 stdin=subprocess.PIPE,
58 stdout=subprocess.PIPE,
59 stderr=subprocess.PIPE,
/packages/modules/Bluetooth/floss/build/
Dbuild-in-container.py5 import subprocess
75 process = subprocess.Popen(args, cwd=cwd, env=env, stdout=subprocess.PIPE)
92 subprocess.check_output([self.container_binary, 'volume', 'inspect', self.volume_name])
151 subprocess.check_output([self.container_binary, 'ps'], stderr=subprocess.STDOUT)
152 except subprocess.CalledProcessError as err:
Dcontainer-build-image.py6 import subprocess
47 process = subprocess.Popen(args, cwd=cwd, env=env, stdout=subprocess.PIPE)
117 subprocess.check_output([self.container_binary, 'ps'], stderr=subprocess.STDOUT)
118 except subprocess.CalledProcessError as err:
/packages/services/Car/tools/GenericCarApiBuilder/scripts/api-coverage/
Ddiff_apis_versions.py22 import subprocess
82 p = subprocess.Popen(cmd, shell=True, stdout=f)
100 subprocess.run(cmd_str, shell=True)
126 subprocess.run(cmd_str, shell=True)
155 subprocess.run("rm api-coverage-results.csv", shell=True)
156 subprocess.run("rm buildnums-results.csv", shell=True)
/packages/modules/Wifi/
Dwifi_upload_hook.py20 import subprocess
53 branches = subprocess.check_output(['git', 'branch', '-vv']).splitlines()
95 cmd_run = subprocess.Popen('git show | grep -iE "XML_TAG"',
96 shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE
/packages/modules/Virtualization/microdroid/
Dextract_microdroid_kernel_hashes.py17 import subprocess
73 with subprocess.Popen(
75 stdout=subprocess.PIPE, stderr=subprocess.STDOUT) as proc:
/packages/modules/Bluetooth/
Dbuild.py36 import subprocess
301 process = subprocess.Popen(args, cwd=cwd, env=env, stdout=subprocess.PIPE)
663 with subprocess.Popen(cmd, cwd=cwd) as proc:
666 except subprocess.TimeoutExpired:
683 head = subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=cwd).strip()
685 subprocess.check_call(['git', 'fetch'], cwd=cwd)
686 subprocess.check_call(['git', 'checkout', commit], cwd=cwd)
688 subprocess.check_call(['git', 'pull'], cwd=cwd)
725 except subprocess.TimeoutExpired:
738subprocess.check_call(['git', 'checkout', commit], cwd=os.path.join(self.git_dir, project))
[all …]
/packages/services/Telecomm/scripts/
Daosp_tag_preupload.py4 import subprocess
41 commit_msg = subprocess.check_output(["git", "show",
54 branch_info = subprocess.check_output(["git", "branch", "-vv"])
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dgd_device.py26 import subprocess
197 self.backing_process = subprocess.Popen(self.cmd,
200 stdout=subprocess.PIPE,
201 stderr=subprocess.STDOUT,
284 except (subprocess.TimeoutExpired, RuntimeError):
290 except subprocess.TimeoutExpired:
391 result = subprocess.run(profdata_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
420 result = subprocess.run(llvm_cov_export_cmd,
421 stderr=subprocess.PIPE,
438 result = subprocess.run(llvm_cov_report_cmd,
[all …]
Dgd_base_test.py22 import subprocess
184 self.rootcanal_process = subprocess.Popen(rootcanal_cmd,
187 stdout=subprocess.PIPE,
188 stderr=subprocess.STDOUT,
210 except subprocess.TimeoutExpired:
216 except subprocess.TimeoutExpired:
/packages/services/DeviceAsWebcam/tests/
Drun_webcam_test.py19 import subprocess
61 output = subprocess.check_output(['python', 'windows_webcam_test.py'])
104 subprocess.check_call(cmd.split(), stdout=devnull,
105 stderr=subprocess.STDOUT)
/packages/modules/Bluetooth/system/blueberry/tests/topshim/lib/
Dtopshim_base_test.py22 import subprocess
84 rootcanal_process = subprocess.Popen(rootcanal_cmd,
87 stdout=subprocess.PIPE,
88 stderr=subprocess.STDOUT,
120 except subprocess.TimeoutExpired:
126 except subprocess.TimeoutExpired:
/packages/modules/Bluetooth/system/
Dsetup.py23 import subprocess
58 subprocess.check_call(install_args + ['--upgrade', 'pip'])
65 subprocess.check_call(cmd)
/packages/modules/Bluetooth/floss/pandora/floss/
Dcras_utils.py19 import subprocess
587 self._proc = subprocess.Popen(proc_cmd)
728 self._proc = subprocess.call(proc_cmd)
746 if subprocess.call(cmd):
762 info = subprocess.check_output(self._info_cmd)
787 if subprocess.call(select_input_cmd):

123