Home
last modified time | relevance | path

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

123

/system/update_engine/scripts/
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(
Dpaycheck_unittest.py41 import subprocess
66 self.assertEqual(0, subprocess.check_call(['./paycheck.py', '-t',
79 self.assertEqual(0, subprocess.check_call(['./paycheck.py',
92 self.assertEqual(0, subprocess.check_call(['./paycheck.py',
Dcow_converter.py24 import subprocess
63 subprocess.check_call(["simg2img", img_path, target_img_path])
68 subprocess.call(["cow_converter", payload_path,
/system/tools/mkbootimg/tests/
Dmkbootimg_test.py24 import subprocess
122 subprocess.run(mkbootimg_cmds, check=True, cwd=self._exec_dir)
123 subprocess.run(unpack_bootimg_cmds, check=True)
158 result = subprocess.run(avbtool_info_cmds, check=True,
200 subprocess.run(mkbootimg_cmds, check=True, capture_output=True,
203 except subprocess.CalledProcessError as e:
232 subprocess.run(mkbootimg_cmds, check=True)
233 subprocess.run(unpack_bootimg_cmds, check=True)
298 subprocess.run(mkbootimg_cmds, check=True)
299 result = subprocess.run(unpack_bootimg_cmds, check=True,
[all …]
/system/apex/tools/
Dapexer_wrapper_utils.py4 import subprocess
9 res = subprocess.run(
12 stdout=subprocess.PIPE,
14 stderr=subprocess.PIPE)
15 except subprocess.CalledProcessError as err:
Dapex_elf_checker.py28 import subprocess
91 output = subprocess.check_output(
94 stderr=subprocess.PIPE,
118 subprocess.check_output(
130 stderr=subprocess.PIPE,
149 except subprocess.CalledProcessError as e:
Ddeapexer.py32 import subprocess
191 res = subprocess.check_output([self._debugfs, '-R', 'ls -l -p %s' % path, self._payload],
192 text=True, stderr=subprocess.DEVNULL)
211 stdout = subprocess.check_output([self._debugfs, '-R', 'dump_extents <%s>' % ino,
212 self._payload], text=True, stderr=subprocess.DEVNULL)
236 stdout = subprocess.check_output([
241 ], text=True, stderr=subprocess.DEVNULL)
258 subprocess.run([self._fsckerofs, '--extract=%s' % (dest), '--overwrite', self._payload],
259 stdout=subprocess.DEVNULL, check=True)
263 subprocess.run([self._debugfs, '-R', 'rdump ./ %s' % (dest), self._payload],
[all …]
/system/chre/tools/
Dtodo_checker.py43 import subprocess
66 diff_result_lines = subprocess.check_output(commit_contents_cmd,
95 repo_path = ' ' + subprocess.check_output(git_repo_path_cmd, shell=True,
102 grep_result = subprocess.check_output(grep_shell_cmd, shell=True,
104 except subprocess.CalledProcessError as e:
134 commit_msg_lines_list = subprocess.check_output(commit_msg_lines_cmd,
157 diff_result = subprocess.check_output(commit_contents_cmd, shell=True,
/system/libziparchive/
Dtest_ziparchive_large.py21 import subprocess
50 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
59 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
117 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
/system/logging/logd/integration_test/
Dlogd_integration_test.py19 import subprocess
39 …ret = subprocess.check_output(["adb", "shell", "log", "-t", "logd_integration_test", log]).decode()
43 return int(subprocess.check_output(["adb", "shell", "getprop", "init.svc_debug_pid." + svc]))
46 return subprocess.check_output(["adb", "logcat", "--pid", str(pid), "-d"]).decode()
49 return subprocess.check_output(["adb", "shell", "getprop", "ro.product.name"]).decode()
57 except subprocess.CalledProcessError:
64 output = subprocess.check_output(["adb", "logcat", "-b", buffer, "--statistics"]).decode()
/system/tools/mkbootimg/gki/
Dcertify_bootimg_test.py25 import subprocess
62 subprocess.check_call(mkbootimg_cmds)
68 subprocess.check_call(avbtool_cmd)
115 result = subprocess.run(avbtool_info_cmd, check=False,
116 stdout=subprocess.DEVNULL,
117 stderr=subprocess.DEVNULL)
159 subprocess.run(avbtool_cmd, check=False, stderr=subprocess.DEVNULL)
773 result = subprocess.run(avbtool_info_cmds, check=True,
795 subprocess.run(certify_bootimg_cmds, check=True, cwd=self._exec_dir)
815 subprocess.run(certify_bootimg_cmds, check=True, cwd=self._exec_dir)
[all …]
Dcertify_bootimg.py25 import subprocess
91 subprocess.run(avbtool_cmd, check=False, stderr=subprocess.DEVNULL)
109 result = subprocess.run(avbtool_info_cmd, check=False,
110 stdout=subprocess.DEVNULL,
111 stderr=subprocess.DEVNULL)
125 result = subprocess.run(avbtool_info_cmd, check=False,
126 stdout=subprocess.DEVNULL,
127 stderr=subprocess.DEVNULL)
147 subprocess.check_call(avbtool_cmd)
/system/timezone/
Dupdate-tzdata.py23 import subprocess
60 subprocess.check_call(['make', '-C', extracted_iana_data_dir, 'NDATA=', zic_input_file_name])
161 subprocess.check_call(['make', '-C', zic_build_dir, 'zic'])
179 subprocess.check_call(zic_cmd)
194 subprocess.check_call([command, zone_compactor_setup_file, zic_output_dir, iana_output_data_dir,
208 subprocess.check_call([command, countryzones_source_file, zone_tab_file, tzlookup_dest_file,
220 subprocess.check_call([command, telephonylookup_source_file, telephonylookup_dest_file])
226 subprocess.check_call([create_tz_version_script,
234 subprocess.check_call([update_test_files_script], cwd=testing_data_dir)
Dtzdatautil.py16 import subprocess
39 subprocess.check_call(['build/soong/soong_ui.bash', '--make-mode', '-j30'] + build_modules)
/system/extras/verity/fec/tests/
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:
/system/sepolicy/tools/
Dpost_process_mac_perms30 import subprocess
45 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
46 stderr=subprocess.PIPE)
/system/tools/hidl/test/hidl_test/
Dhidl_test.py18 import subprocess
23 p = subprocess.Popen(cmd, shell=True)
26 raise subprocess.CalledProcessError(p.returncode, cmd)
/system/tools/hidl/test/java_test/
Dhidl_test_java.py19 import subprocess
25 p = subprocess.Popen(cmd, shell=True)
28 raise subprocess.CalledProcessError(p.returncode, cmd)
/system/extras/simpleperf/scripts/
Drun_simpleperf_on_device.py22 import subprocess
35 sys.exit(subprocess.call([adb.adb_path, 'shell', shell_cmd]))
/system/core/fastboot/
Dtest_fastboot.py21 import subprocess
35 output = subprocess.check_output(["fastboot", "devices"])
/system/timezone/debug_tools/host/
Ddump-tzdata.py21 import subprocess
48 subprocess.check_call(['java', '-jar', jar_file, tzdata_file, output_dir])
53 subprocess.check_call(['java', '-jar', jar_file, zones_dir, csvs_dir])
Dvisualize_zone_trees.py22 import subprocess
46 subprocess.check_call(['java', '-jar', jar_file, country_zones_txt, country_code, output_dir])
54 subprocess.check_call(['dot', '-Tpng', gv_file], stdout=out_file)
/system/libfmq/tests/
Dfmq_test.py18 import subprocess
23 p = subprocess.Popen(cmd, shell=True)
26 raise subprocess.CalledProcessError(p.returncode, cmd)
/system/unwinding/libunwindstack/tools/
Dstrip.py18 import argparse, subprocess, re, os, glob, array, gzip
34 proc = subprocess.run(["readelf", "--file-header", "--sections", path],
35 stdout=subprocess.PIPE, universal_newlines=True)
/system/update_engine/
Dprotobuflint.py22 import subprocess
33 output = subprocess.check_output(

123