Home
last modified time | relevance | path

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

12

/base/hiviewdfx/hidumper/test/scripts/testModule/
H A Dconftest.py15 import subprocess namespace
19 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
23 output = subprocess.check_output("hdc shell param get const.debuggable", shell=True, text=True, encoding="utf-8").strip()
27 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
33 subprocess.check_call("hdc install testModule/resource/entry-default-signed.hap", shell=True)
39 subprocess.check_call("hdc uninstall com.example.myapplication", shell=True
H A Dutils.py18 import subprocess namespace
63 pid = subprocess.check_output(cmd, shell=True, encoding="utf-8", text=True)
65 except subprocess.CalledProcessError as e:
90 output = subprocess.check_output(f"hdc shell \"{command}\"", shell=True, text=True, encoding="utf-8")
95 subprocess.check_output(f"hdc shell \"{command}\" > {filePath}", shell=True, text=True, encoding="utf-8")
99 output = subprocess.check_output(f"hdc shell \"{command} --zip\"", shell=True, text=True, encoding="utf-8")
102 subprocess.check_output(f"hdc file recv {zipSourceFile} {zipTargetFile}", shell=True, text=True, encoding="utf-8")
106 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
110 output = subprocess.check_output("hdc shell param get const.debuggable", shell=True, text=True, encoding="utf-8").strip()
114 output = subprocess
[all...]
H A Dtest_performance.py17 import subprocess namespace
39 output = subprocess.check_output(f"hdc shell ls -lh /system/lib/libhidumper*", shell=True, text=True, encoding="utf-8")
45 subprocess.check_call(f"hdc shell hidumper --mem 1", shell=True, text=True, encoding="utf-8")
46 output = subprocess.check_output(f"hdc shell hidumper --mem `pidof hidumper_service`", shell=True, text=True, encoding="utf-8")
52 output = subprocess.check_output(f"hdc shell \"ls -Z /system/bin | grep hidumper\"", shell=True, text=True, encoding="utf-8")
58 subprocess.check_call(f"hdc shell hidumper --mem 1", shell=True, text=True, encoding="utf-8")
59 output = subprocess.check_output(f"hdc shell \"ps -eZ | grep hidumper\"", shell=True, text=True, encoding="utf-8")
H A Dtest_ipc.py16 import subprocess namespace
33 output = subprocess.check_output(f"hdc shell hidumper --ipc {pid} --start-stat", shell=True, text=True, encoding="utf-8")
40 output = subprocess.check_output(f"hdc shell hidumper --ipc {pid} --stop-stat", shell=True, text=True, encoding="utf-8")
H A Dtest_memory.py31 output = subprocess.check_output(command, shell=True, text=True, encoding="utf-8").strip()
114 subprocess.check_call("hdc shell aa start -a EntryAbility -b com.example.myapplication", shell=True)
119 subprocess.check_call("hdc shell aa force-stop -b com.example.myapplication", shell=True)
123 subprocess.check_call("hdc shell \"rm -rf /data/log/reliability/resource_leak/memory_leak/*\"", shell=True)
125 subprocess.check_call("hdc shell \"rm -rf /data/log/faultlog/temp/*\"", shell=True)
140 subprocess.check_call(command, shell=True)
159 subprocess.check_call(command, shell=True)
178 subprocess.check_call(command, shell=True)
194 subprocess.check_call(command, shell=True)
H A Dtest_permission.py19 import subprocess namespace
83 subprocess.check_call("hdc shell aa start -a EntryAbility -b com.example.myapplication", shell=True)
88 subprocess.check_call("hdc shell aa force-stop -b com.example.myapplication", shell=True)
163 output = subprocess.check_output("hdc shell \"hidumper -h |grep mem\"", shell=True, text=True, encoding="utf-8")
169 output = subprocess.check_output("hdc shell \"hidumper -p 1\"", shell=True, text=True, encoding="utf-8")
177 subprocess.check_call(command, shell=True)
178 output = subprocess.check_output("hdc shell ls -l /data/log/hidumper.log", shell=True).decode()
187 subprocess.check_call(command, shell=True)
188 output = subprocess.check_output("hdc shell ls -l /data/log/hidumper.log", shell=True).decode()
H A Dtest_base_command.py18 import subprocess namespace
147 output = subprocess.check_output(command, shell=True, encoding="utf-8", text=True)
151 output = subprocess.check_output(command, shell=True, encoding="utf-8", text=True)
/base/hiviewdfx/hitrace/test/scripts/
H A Dprepare.py16 import subprocess namespace
22 subprocess.check_call(["pip", "install", "-r", requirements_file])
24 except subprocess.CalledProcessError as e:
H A Dmain.py16 import subprocess namespace
36 subprocess.check_call(["pip", "install", "-r", "requirements.txt"])
/base/hiviewdfx/hidumper/test/scripts/
H A Dprepare.py16 import subprocess namespace
21 subprocess.check_call(["pip", "install", "-r", requirements_file])
23 except subprocess.CalledProcessError as e:
29 # subprocess.check_call(["pip", "freeze"], text=True, stdout=open(output_file, 'w'))
30 # except subprocess.CalledProcessError as e:
H A Dmain.py16 import subprocess namespace
37 subprocess.check_call(["pip", "install", "-r", "requirements.txt"])
/base/update/packaging_tools/
H A Dcode_yacc.py18 import subprocess namespace
36 parse_scripts = subprocess.check_call(
37 [gen_script_name], stdout=subprocess.PIPE, cwd=output_path)
H A Dbuild_module_img.py20 import subprocess namespace
30 res = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE,
31 stderr=subprocess.PIPE)
H A Dbuild_update.py51 import subprocess namespace
489 res = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
568 sub_p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
569 stderr=subprocess.STDOUT)
572 except subprocess.TimeoutExpired:
703 subprocess.Popen(cmd, shell=False, stdout=subprocess
[all...]
H A Dupdate_package.py19 import subprocess namespace
297 subprocess.Popen(
298 cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
540 process_obj = subprocess.Popen(
541 cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
/base/update/updater/services/script/
H A Dgenerate_yacc.py19 import subprocess namespace
36 parse_scripts = subprocess.check_call(bison_cmd)
38 parse_scripts = subprocess.check_call(flex_cmd)
/base/update/packaging_tools/test/
H A Dtest_image_class.py17 import subprocess namespace
140 sub_p = subprocess.Popen(
141 cmd, shell=False, stdout=subprocess.PIPE,
142 stderr=subprocess.STDOUT)
162 sub_p = subprocess.Popen(
163 cmd, shell=False, stdout=subprocess.PIPE,
164 stderr=subprocess.STDOUT)
/base/update/packaging_tools/zipalign/
H A Dbuild_jar.py20 import subprocess namespace
48 subprocess.call(javac_cmd, shell=False)
50 subprocess.call(jar_cmd, shell=False)
/base/update/sys_installer/tools/zipalign/
H A Dbuild_jar.py20 import subprocess namespace
48 subprocess.call(javac_cmd, shell=False)
50 subprocess.call(jar_cmd, shell=False)
/base/web/webview/interfaces/kits/napi/protos/
H A Dprotoc_runner.py22 import subprocess namespace
51 ret = subprocess.call(protoc_cmd)
/base/security/selinux_adapter/scripts/selinux_check/
H A Dcheck_common.py22 import subprocess namespace
48 ret = subprocess.run(in_cmd, shell=False).returncode
/base/security/selinux_adapter/scripts/
H A Dbuild_policy.py23 import subprocess namespace
H A Dbuild_contexts.py24 import subprocess namespace
49 ret = subprocess.run(cmdstr, shell=True).returncode
234 ret = subprocess.run(" ".join(check_cmd), shell=True).returncode
/base/startup/hvb/tools/
H A Dhvbtool.py24 import subprocess namespace
184 process = subprocess.Popen(cmds, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
187 except subprocess.TimeoutExpired:
203 child = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess
[all...]
/base/hiviewdfx/hitrace/test/scripts/testModule/
H A Dtest_hitrace_cmd.py16 import subprocess namespace
22 output = subprocess.check_output(cmd.split()).decode()

Completed in 8 milliseconds

12