Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 158) sorted by relevance

1234567

/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/
Dftrace_cpp_generator.py128 with open(parser_src_file, "w", encoding="utf-8") as f:
129 f.write(Common.cpp_copyright_header)
130 f.write('#include "sub_event_parser.h"\n')
131 f.write("\n")
132 f.write("FTRACE_NS_BEGIN\n")
133 f.write("namespace {\n")
134 self.generate_parse_functions(category, f)
135 f.write("} // namespace\n")
136 f.write("FTRACE_NS_END\n")
137 f.write("\n")
[all …]
/developtools/profiler/host/smartperf/trace_streamer/
Dformat-code.sh35 for f in $(find $d -type f -not -name '*sql.c' -regex '.*\.\(cpp\|hpp\|c\|h\)'); do
36 dos2unix $f
37 chmod -x $f
38 clang-format --verbose -i $f
40 for f in $(find $d -type f -not -name '*sql.c' -regex '.*\.\(gn\|gni\)'); do
41 echo $f
42 ./prebuilts/$target_os/gn format $f
/developtools/smartperf_host/trace_streamer/
Dformat-code.sh35 for f in $(find $d -type f -not -name '*sql.c' -regex '.*\.\(cpp\|hpp\|c\|h\)'); do
36 dos2unix $f
37 chmod -x $f
38 clang-format --verbose -i $f
40 for f in $(find $d -type f -not -name '*sql.c' -regex '.*\.\(gn\|gni\)'); do
41 echo $f
42 ./prebuilts/$target_os/gn format $f
/developtools/integration_verification/tools/fotff/utils/
Dlog.go42 CallerPrettyfier: func(f *runtime.Frame) (function string, file string) {
43 funcName := strings.Split(f.Function, ".")
45 _, filename := filepath.Split(f.File)
46 return fmt.Sprintf("%s()", fn), fmt.Sprintf("%s:%d", filename, f.Line)
65 var f *os.File
68 f, err = os.OpenFile(file, os.O_RDWR|os.O_APPEND, 0666)
70 f, err = os.Create(file)
77 logrus.SetOutput(f)
81 LogFile = f
84 f, err = os.OpenFile(stdout, os.O_RDWR|os.O_APPEND, 0666)
[all …]
/developtools/integration_verification/tools/fotff/rec/
Dfotff_test.go64 func (f *FotffMocker) TaskName() string {
68 func (f *FotffMocker) Prepare(pkgDir string, device string, ctx context.Context) error {
72 func (f *FotffMocker) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
79 return []tester.Result{{TestCaseName: f.TestCaseName(), Status: tester.ResultFail}}, nil
82 func (f *FotffMocker) DoTestCase(device string, testcase string, ctx context.Context) (tester.Resul…
89 f.lock.Lock()
90 _, pkgPrefix, _ := strings.Cut(f.runningPkg[device], "_")
92 f.lock.Unlock()
93 if pkgOrder >= f.FirstFail {
101 func (f *FotffMocker) DoTestCases(device string, testcases []string, ctx context.Context) ([]tester…
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/tools/
Dftrace_proto_generator.py139 with open(bundle_proto_path, "w+") as f:
140 f.writelines(bundle_proto_head + bundle_proto_body)
144 with open(protos_gni_path, "w+") as f:
145 f.write(Common.gn_copyright_header)
147 f.write("auto_generated_ftrace_proto_sources = [\n")
149 f.write(' "{}",\n'.format(os.path.basename(proto_path)))
150 f.write("]\n")
153 with open(proto_path, "w+") as f:
154 f.write(Common.proto_common_header)
155 f.write("// category: {}\n".format(category))
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
Drom_analysis.py59 for f in future_list:
60 f.result()
62 with open(gn_info_file, 'w', encoding='utf-8') as f:
63 json.dump(result_dict, f, indent=4)
108 f"product_name '{product_name}' not found in the config.yaml")
116 f"'relative_dir' of {product_name} not found in the config.yaml")
126 logging.warning(f"dir '{v}' not exist")
148 with open(configs[product_name]["product_infofile"], 'w', encoding='utf-8') as f:
149 json.dump(product_dict, f, indent=4)
184 logging.info(f"fuzzy match: {file_name}")
[all …]
/developtools/global_resource_tool/src/
Dresource_directory.cpp27 FileEntry f(resourcesDir); in ScanResources() local
28 if (!f.Init()) { in ScanResources()
32 for (const auto &it : f.GetChilds()) { in ScanResources()
64 FileEntry f(resourceTypeDir); in ScanResourceLimitKeyDir() local
65 if (!f.Init()) { in ScanResourceLimitKeyDir()
68 for (const auto &it : f.GetChilds()) { in ScanResourceLimitKeyDir()
/developtools/hapsigner/autosign/
Dautosign.py117 with open("log.txt", mode='a+', encoding='utf-8') as f:
119 f.writelines(cmd + "\r\n")
121 f.writelines(str(line.strip()) + "\r\n")
125 with open("error.txt", mode='a+', encoding='utf-8') as f:
127 f.writelines(cmd + "\r\n")
131 f.writelines(str(line.strip()) + "\r\n")
218 with open(config_file, 'r', encoding='utf-8') as f:
219 for line in f.readlines():
266 with open(app_cert_file, 'r', encoding='utf-8') as f:
267 app_cert_temp = f.read()
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/standard/
Drom_analyzer.py49 with open(gn, 'r', encoding='utf-8') as f:
50 content = f.read()
59 for f in files:
60 f = f.split('/')[-1]
61 self.result_dict[f] = {
69 grep_cmd = f"grep -rn '{grep_kw}' --include=BUILD.gn {self.project_path}"
96 with open(system_module_info_json, 'r', encoding='utf-8') as f:
97 product_list = json.loads(f.read())
252 with open("rom_ram_baseline.json", 'w', encoding='utf-8') as f:
253 json.dump(rom_baseline_dict, f, indent=4)
[all …]
Dram_analyzer.py148f"warning: process \"{full_process_name}\" not found in not found int the result of command \"ps -…
183 with open(file_path, 'r', encoding='utf-8') as f:
184 j_content: typing.Dict[str, typing.Any] = json.load(f)
187 f"warning: {file_path} has no field 'process' or 'systemability'")
205 with open(rom_result_json, 'r', encoding='utf-8') as f:
206 rom_info_dict = json.load(f)
231 with open(cfg_path, 'r', encoding='utf-8') as f:
232 cfg_dict = json.loads(f.read())
295 …em_name", "component_name", f"component_size(ram{header_unit})", "process_name", f"process_size({s…
299 …e", "component_name", f"component_size(ram{header_unit})", "baseline", "process_name", f"process_s…
[all …]
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
Dget_newer_dir.go37 f := files[len(files)-1]
38 if f.Name() != cur {
39 logrus.Infof("new package found, name: %s", f.Name())
40 return f.Name()
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/sa/
Dsa.py33 def __parse_sa_profile(all_sa, f): argument
34 root = ET.parse(f).getroot()
62 for f in os.listdir(path):
63 full_name = os.path.join(path, f)
64 if os.path.isfile(full_name) and f.endswith(".xml"):
/developtools/integration_verification/tools/deps_guard/rules_checker/
Dchipsetsdk.py38 with open(inner_kits_info, "r") as f:
39 info = json.load(f)
54 for f in innerapi["header_files"]:
55 item["headers"].append(os.path.join(base, f))
59 …ith open(os.path.join(self.get_mgr().get_product_images_path(), "chipsetsdk_info.json"), "w") as f:
60 json.dump(headers, f, indent = 4)
/developtools/smartperf_host/ide/server/
DsmarperfServer.py54 …cmd_res = subprocess.run(f"netstat -ano -p tcp | findstr {port_number}", capture_output=True, text…
70 subprocess.run(f"taskkill /F /PID {pid} /T", shell=True)
94 print(f'upload')
97 print(f'download-file')
115 file_name = f"upload/{datetime.now().strftime('%Y%m%d%H%M%S%f')}{suffixStr}"
118 with open(file_name, "wb") as f:
119 f.write(content)
120 written = f.tell()
150 print(f"{now} delete -> {file_path}")
163 fileName = f"{now}.txt"
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Drom_ram_baseline_collector.py54 …bundle_list = BasicTool.execute(cmd=f"find {oh_path} -name bundle.json", post_processor=post_handl…
57 with open(bundle, 'r', encoding='utf-8') as f:
58 content: Dict[str, Any] = json.loads(f.read())
61 logging.warning(f"{bundle} has no field of 'component'.")
68 …logging.warning(f"subsystem=\"{subsystem_name}\", rom=\"{rom_baseline}\", ram=\"{ram_baseline}\" i…
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/
Drom_ram_baseline_collector.py47 cmd=f"find {oh_path} -name bundle.json", post_processor=post_handler)
50 with open(bundle, 'r', encoding='utf-8') as f:
51 content: Dict[str, Any] = json.loads(f.read())
54 logging.warning(f"{bundle} has no field of 'component'.")
62f"subsystem=\"{subsystem_name}\", rom=\"{rom_baseline}\", ram=\"{ram_baseline}\" in {bundle}")
Dbasic_tool.py45 … os.path.join(root, f) if real_path else os.path.join(root, f))) if apply_abs else os.path.relpath(
46 …os.path.realpath(os.path.join(root, f) if real_path else os.path.join(root, f))) for f in file_nam…
47 if p_filter(os.path.join(root, f))])
/developtools/integration_verification/DeployDevice/src/util/
Dfind_fail_task.py32 print(f'发现失败任务:{task_name}')
33 fw.write(f'失败任务路径:{dir_path}\n')
42 fw.write(f'总共检索日志:{total_count}个\n')
43 fw.write(f'其中存在失败的日志:{fail_count}个\n')
Dlog_info.py55 f = sys._getframe(2)
56 filename = os.path.basename(f.f_code.co_filename)
57 lineno_str = str(f.f_lineno)
71 with open(self.log_file_path, 'a', encoding='utf-8') as f:
72 f.write(log_message + '\n')
/developtools/integration_verification/cases/smoke/basic/screenshot32/acls_check/
Dread_acl_whitelist.py30 with open(path, 'r') as f:
31 file = f.read()
41 f = json.loads(file)
42 for it in f:
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/hdi/
Dhdi_parser.py31 with open(out_file) as f:
32 lines = f.readlines()
36 with open(out_file) as f:
37 lines = f.readlines()
/developtools/packing_tool/adapter/ohos/
DBinaryTool.java131 for (File f : files) { in writeFileInfo()
133 if (f.isFile()) { in writeFileInfo()
135 String name = f.getName(); in writeFileInfo()
140 String relativePath = f.getParent().replace(directory, ""); in writeFileInfo()
148 appStream.writeLong(f.length()); in writeFileInfo()
150 String absolutePath = f.getCanonicalPath(); in writeFileInfo()
154 fileDirList.add(f); in writeFileInfo()
/developtools/hapsigner/tools/
Dauto_test.py266 with open('commands.config', 'r', encoding='utf-8') as f:
267 content = f.read()
289 with open("log.txt", mode='a+', encoding='utf-8') as f:
291 f.writelines(cmd + "\r\n")
293 f.writelines(str(line.strip()) + "\r\n")
297 with open("error.txt", mode='a+', encoding='utf-8') as f:
299 f.writelines(cmd + "\r\n")
302 f.writelines(str(line.strip()) + "\r\n")
340 with open('test_result.log', 'r', encoding='utf-8') as f:
341 content = f.read()
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/
Delf_walker.py51 with open(_assetFile, "rb") as f:
52 data = f.read(4)
76 for f in elfFiles.get_elf_files():
77 print(f)

1234567