Home
last modified time | relevance | path

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

1234567

/aosp12/packages/modules/adb/
H A Dtest_adb.py30 import subprocess
125 stdout=subprocess.PIPE,
166 out = subprocess.check_output(
296 subprocess.check_output(
298 stderr=subprocess.STDOUT,
305 subprocess.check_output(
307 stderr=subprocess.STDOUT,
346 proc = subprocess.Popen(
348 stderr=subprocess.STDOUT)
536 except subprocess.CalledProcessError:
[all …]
H A Dtest_device.py31 import subprocess
291 proc = subprocess.Popen(
293 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
294 stderr=subprocess.PIPE)
370 terminal = subprocess.Popen(
372 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
377 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
455 sleep_proc = subprocess.Popen(
457 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
562 stdin=subprocess.PIPE,
[all …]
/aosp12/system/tools/mkbootimg/tests/
H A Dmkbootimg_test.py24 import subprocess
204 except subprocess.CalledProcessError as e:
235 subprocess.run(mkbootimg_cmds, check=True)
302 subprocess.run(mkbootimg_cmds, check=True)
354 subprocess.run(mkbootimg_cmds, check=True)
364 subprocess.run(mkbootimg_cmds, check=True)
407 subprocess.run(mkbootimg_cmds, check=True)
416 subprocess.run(mkbootimg_cmds, check=True)
448 subprocess.run(mkbootimg_cmds, check=True)
457 subprocess.run(mkbootimg_cmds, check=True)
[all …]
/aosp12/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/
H A Dsimulate_wifi.py38 import subprocess
790 subprocess.run(["adb", "root"])
793 subprocess.run(["adb", "shell", "cmd", "wifi", "settings-reset"])
805 subprocess.run(["adb", "shell", "cmd", "wifi", "start-scan"])
808 subprocess.run(["adb", "shell", "cmd", "wifi", "start-faking-scans"])
811 subprocess.run(["adb", "shell", "cmd", "wifi", "reset-fake-scans"])
847 subprocess.run(["adb", "shell", "cmd", "wifi", "add-network", ssid, "open"])
853 subprocess.run(["adb", "shell", "cmd", "wifi", "add-network", ssid, "owe"])
855 subprocess.run(["adb", "shell", "cmd", "wifi", "add-suggestion", ssid, "owe"])
859 subprocess.run(["adb", "shell", "cmd", "wifi", "add-network", ssid, "open"])
[all …]
/aosp12/system/update_engine/scripts/
H A Dota_stress_test.py23 import subprocess
29 subprocess.check_call(["adb", "shell", "su", "0", "losetup", '-D'])
33 subprocess.call(["adb", "shell", "su", "0",
41 p = subprocess.Popen(ota_cmd)
50 except subprocess.TimeoutExpired:
53 subprocess.check_call(["pkill", "-INT", "-P", str(pid)])
84 output = subprocess.check_output(
85 ota_cmd, stderr=subprocess.STDOUT, timeout=timeout).decode()
89 subprocess.call(
91 subprocess.check_call(
/aosp12/packages/modules/common/tools/
H A Dfinalize_sdk.py6 import subprocess
42 subprocess.check_output(fetch_cmd, stderr=subprocess.STDOUT)
43 except subprocess.CalledProcessError:
101 subprocess.check_output(['repo', 'start', branch_name] + list(created_dirs.keys()))
105 subprocess.check_output(git + ['add'] + created_dirs[repo])
107 …change_id = '\n' + re.search(r'Change-Id: [^\\n]+', str(subprocess.check_output(git + ['log', '-1'…
108 subprocess.check_output(git + ['commit', '--amend', '-m', commit_message + change_id])
110 subprocess.check_output(git + ['commit', '-m', commit_message])
H A Dcheck_allowed_deps.py8 import subprocess
31 commit_msg = subprocess.run(["git", "show", "--no-patch", "--format=%B", sha],
50 git_show = subprocess.run(["git", "show", "--name-only", "--format=", sha],
57 before = subprocess.run(["git", "show", "%s^:%s" % (sha, AllowedDepsTxt)],
59 after = subprocess.run(["git", "show", "%s:%s" % (sha, AllowedDepsTxt)],
/aosp12/frameworks/base/tests/JankBench/scripts/
H A Dadbutil.py1 import subprocess
30 subprocess.call(args)
39 subprocess.call(["adb", "-s", serial, "root"])
42 subprocess.call(["adb", "-s", serial, "wait-for-device", "pull"] + [path] + [dest])
56 output = subprocess.check_output(full_args)
58 subprocess.call(full_args)
59 except subprocess.CalledProcessError:
/aosp12/system/libziparchive/
H A Dtest_ziparchive_large.py21 import subprocess
44 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
53 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
109 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
/aosp12/build/make/tools/
H A Dextract_kernel.py22 import subprocess
118 sp = subprocess.Popen(["gzip", "-d", "-c"], stdin=subprocess.PIPE,
119 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
131 sp = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
132 stderr=subprocess.PIPE)
/aosp12/system/bt/tools/scripts/
H A 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)
H A Dyapf_checker.py19 import subprocess
48 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…
/aosp12/system/timezone/
H A Dupdate-tzdata.py24 import subprocess
59 subprocess.check_call(['make', '-C', extracted_iana_data_dir, 'NDATA=', zic_input_file_name])
158 subprocess.check_call(['make', '-C', zic_build_dir, 'zic'])
175 subprocess.check_call(zic_cmd)
190 subprocess.check_call([command, zone_compactor_setup_file, zic_output_dir, iana_output_data_dir,
205 subprocess.check_call([command, countryzones_source_file, zone_tab_file, backward_file,
217 subprocess.check_call([command, telephonylookup_source_file, telephonylookup_dest_file])
235 subprocess.check_call([create_distro_script,
247 subprocess.check_call([update_test_files_script], cwd=testing_data_dir)
/aosp12/packages/apps/Car/libs/car-ui-lib/tests/apitest/
H A Dgit_utils.py17 import subprocess
23 result = subprocess.Popen(['git', 'diff-tree', '--no-commit-id', '--name-only', '-r', sha],
24 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
/aosp12/packages/modules/adb/daemon/
H A Dshell_service.cpp503 Subprocess* raw = subprocess.release(); in StartThread()
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()
861 if (!subprocess) { in StartSubprocess()
868 if (!subprocess->ForkAndExec(&error)) { in StartSubprocess()
874 unique_fd local_socket(subprocess->ReleaseLocalSocket()); in StartSubprocess()
876 subprocess->pid()); in StartSubprocess()
896 if (!subprocess) { in StartCommandInProcess()
[all …]
/aosp12/packages/apps/Car/Dialer/tests/
H A Dcheckresources.py2 import subprocess
5 process = subprocess.Popen(['lint', '--check', 'UnusedResources', sys.argv[1]],
6 stdout=subprocess.PIPE,
7 stderr=subprocess.PIPE)
/aosp12/art/test/testrunner/
H A Drun_build_test_target.py32 import subprocess
76 if subprocess.call(clean_command.split()):
87 if subprocess.call(build_command.split()):
100 if subprocess.call(build_command.split()):
118 if subprocess.call(cmd):
147 if subprocess.call(run_test_command):
H A Dtestrunner.py75 import subprocess
622 subprocess.check_call(
631 return subprocess.Popen(**kwargs)
663 stderr=subprocess.STDOUT,
670 stderr=subprocess.STDOUT,
671 stdout = subprocess.PIPE,
691 except subprocess.TimeoutExpired as e:
702 pidof = subprocess.run(["adb", "shell", "pidof", proc_name], stdout=subprocess.PIPE)
709 tids = subprocess.run(["adb", "shell", "ls", task_dir], stdout=subprocess.PIPE)
1060 cpu_info_proc = subprocess.Popen(adb_command.split(), stdout=subprocess.PIPE)
[all …]
/aosp12/system/extras/verity/fec/tests/
H A Dfec.py19 import subprocess
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:
/aosp12/art/tools/
H A Dwrap-logcat.py18 import subprocess
46 with subprocess.Popen(shlex.split(args.logcat_invoke),
48 stderr=subprocess.STDOUT,
52 with subprocess.Popen(shlex.split(args.command[0]) if len(args.command) == 1 else args.command,
H A Dtest_presubmit.py27 import subprocess
66 return subprocess.check_output(
68 stderr=subprocess.STDOUT,
84 succ = subprocess.call(proc_args)
96 return subprocess.call(["diff", ref_file, original_file]) != 0
H A Drun-libcore-tests.py21 import sys, os, argparse, subprocess, shlex, re, concurrent.futures, multiprocessing
209 with subprocess.Popen(adb_command.split(),
210 stderr=subprocess.STDOUT,
211 stdout=subprocess.PIPE,
241 with subprocess.Popen(shlex.split(cmd),
242 stderr=subprocess.STDOUT,
243 stdout=subprocess.PIPE,
/aosp12/frameworks/rs/
H A Dupdate-prebuilts.py25 import subprocess
128 subprocess.check_call(
137 subprocess.check_call(cmd)
146 subprocess.check_call(
159 subprocess.check_call(['git', 'add', install_subdir])
173 subprocess.check_call(['git', 'commit', '-m', message])
/aosp12/packages/modules/Gki/
H A Ddownload_boot_prebuilt.py29 import subprocess
82 subprocess.check_call(["repo", "start", "boot-prebuilt-{}".format(build_id)], cwd=arch_dir)
89 subprocess.check_call(args)
102 subprocess.check_call(["git", "add", "."], cwd=arch_dir)
103 subprocess.check_call(["git", "commit", "-m", message], cwd=arch_dir)
136 subprocess.check_call(args, cwd=ANDROID_BUILD_TOP)
/aosp12/system/bt/gd/cert/
H A Dgd_base_test_lib.py21 import subprocess
75 rootcanal_process = subprocess.Popen(
79 stdout=subprocess.PIPE,
80 stderr=subprocess.STDOUT,
113 except subprocess.TimeoutExpired:
119 except subprocess.TimeoutExpired:

1234567