/base/hiviewdfx/hidumper/test/scripts/testModule/ |
H A D | conftest.py | 15 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 D | utils.py | 18 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 D | test_performance.py | 17 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 D | test_ipc.py | 16 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 D | test_memory.py | 31 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 D | test_permission.py | 19 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 D | test_base_command.py | 18 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 D | prepare.py | 16 import subprocess
namespace 22 subprocess.check_call(["pip", "install", "-r", requirements_file])
24 except subprocess.CalledProcessError as e:
|
H A D | main.py | 16 import subprocess
namespace 36 subprocess.check_call(["pip", "install", "-r", "requirements.txt"])
|
/base/hiviewdfx/hidumper/test/scripts/ |
H A D | prepare.py | 16 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 D | main.py | 16 import subprocess
namespace 37 subprocess.check_call(["pip", "install", "-r", "requirements.txt"])
|
/base/update/packaging_tools/ |
H A D | code_yacc.py | 18 import subprocess namespace 36 parse_scripts = subprocess.check_call( 37 [gen_script_name], stdout=subprocess.PIPE, cwd=output_path)
|
H A D | build_module_img.py | 20 import subprocess namespace 30 res = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, 31 stderr=subprocess.PIPE)
|
H A D | build_update.py | 51 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 D | update_package.py | 19 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 D | generate_yacc.py | 19 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 D | test_image_class.py | 17 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 D | build_jar.py | 20 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 D | build_jar.py | 20 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 D | protoc_runner.py | 22 import subprocess namespace 51 ret = subprocess.call(protoc_cmd)
|
/base/security/selinux_adapter/scripts/selinux_check/ |
H A D | check_common.py | 22 import subprocess namespace 48 ret = subprocess.run(in_cmd, shell=False).returncode
|
/base/security/selinux_adapter/scripts/ |
H A D | build_policy.py | 23 import subprocess namespace
|
H A D | build_contexts.py | 24 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 D | hvbtool.py | 24 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 D | test_hitrace_cmd.py | 16 import subprocess
namespace 22 output = subprocess.check_output(cmd.split()).decode()
|