Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 66) sorted by relevance

123

/build/tools/component_tools/static_check/bundle_check/
Dbundle_check_common.py24 def is_all_lower(string:str): argument
34 def is_number(string:str) -> bool: argument
43 def split_by_unit(string:str): argument
51 def get_root_path() -> str:
66 def is_project(path:str) -> bool: argument
77 def get_ohos_version(root:str) -> str: argument
98 def match_unix_like_name(name:str): argument
105 def match_bundle_full_name(name:str): argument
Dget_subsystem_with_component.py28 def get_subsystem_components(ohos_path: str): argument
84 output_path: str, argument
85 output_name: str = "subsystem_component_path.json"): argument
100 parser.add_argument("project", help="project root path.", type=str)
102 help="specify an output path.", type=str)
117 def is_project(path: str) -> bool: argument
Dbundle_json_check.py31 def check_all_bundle_json(path:str) -> list: argument
77 def get_all_bundle_json(path:str = '.') -> list: argument
97 output_path:str = '.', argument
98 output_name:str = 'all_bundle_error.json'): argument
114 def to_df(path:str = None) -> pd.DataFrame: argument
129 "line" + str(item['line']) + ": " + item['contents'],
137 def to_excel(output_path:str = '.', argument
138 output_name:str = 'all_bundle_error.xlsx'): argument
163 def __init__(self, path:str) -> None: argument
176 def component_name(self) -> str:
[all …]
Dbundle_check_online.py48 line = list(("line" + str(i[0]) + ": " + i[1], ret))
63 def check_diff_by_line(line:str) -> str: argument
/build/hb/util/
Dcomponent_util.py30 def is_in_component_dir(path: str) -> bool: argument
34 def is_component_in_product(component_name: str, product_name: str) -> bool: argument
44 def get_component_name(path: str) -> str: argument
54 def get_component_module_full_name(out_path: str, component_name: str, module_name: str) -> str: argument
84 def _recurrent_search_bundle_file(path: str): argument
Dtype_check_util.py34 elif isinstance(value, str):
43 elif isinstance(value, str):
54 elif isinstance(entity, str):
Dlog_util.py39 for line in str(msg).splitlines():
46 for line in str(msg).splitlines():
53 for line in str(msg).splitlines():
59 if isinstance(msg, str) and not msg.endswith('\n'):
73 for line in str(msg).splitlines():
/build/ohos/images/mkimage/
Dmkextimage.py84 mke2fs_cmd += ("mke2fs " + str(mke2fs_opts) + " -t " + FS_TYPE + " -b "
85 + str(BLOCKSIZE) + " " + args.device + " " + str(blocks))
89 print("pid " + str(res[0]) + " ret " + str(res[1]) + "\n" +
116 print("pid " + str(res[0]) + " ret " + str(res[1]) + "\n" +
126 print("error run mke2fs errno: " + str(res))
130 print("error run e2fsdroid errno: " + str(res))
Dmkcpioimage.py86 print("error run cpio ramdisk errno: %s" % str(res))
87 print(" ".join(["pid ", str(res[0]), " ret ", str(res[1]), "\n",
110 (str(res_gzip), str(res_mv_gz)))
125 print("error run chmod errno: %s" % str(res))
126 print(" ".join(["pid ", str(res[0]), " ret ", str(res[1]), "\n",
Dmkf2fsimage.py81 print("pid " + str(res[0]) + " ret " + str(res[1]) + "\n" +
115 print("pid " + str(res[0]) + " ret " + str(res[1]) + "\n" +
130 print("error run mkf2fs errno: " + str(res))
134 print("error run sload.f2fs errno: " + str(res))
/build/tools/component_tools/static_check/gn_check/
Dgn_common_tools.py28 def contains_keywords(key_words: tuple, target: str) -> bool: argument
38 def find_files(project_path: str, argument
62 def grep_one(grep_pattern: str, argument
63 grep_path: str, argument
91 def find_paragraph_iter(pattern: str, content: str) -> typing.Iterator: argument
/build/hb/services/interface/
Dbuild_file_generator_interface.py33 def regist_flag(self, flag_name: str, flag_value): argument
36 def regist_arg(self, arg_name: str, arg_value: str): argument
Dservice_interface.py32 def exec(self) -> str:
40 def regist_arg(self, arg_name: str, arg_value): argument
Dbuild_executor_interface.py30 def regist_arg(self, arg_name: str, arg_value: str): argument
Dpreload_interface.py38 def regist_arg(self, arg_name: str, arg_value: str): argument
/build/hb/containers/
Darg.py64 def get_type(value: str): argument
96 def get_type(value: str): argument
128 def get_type(value: str): argument
139 def __init__(self, name: str, helps: str, phase: str, argument
141 resolve_function: str): argument
189 arg_name = str(data['arg_name']).replace("-", "_")[2:]
190 arg_help = str(data['arg_help'])
191 arg_phase = BuildPhase.get_type(str(data['arg_phase']))
214 def get_help(module_type: ModuleType) -> str:
255 if str(assigned_value).lower() == 'false':
[all …]
/build/tools/
Dproduct_config_version_convert.py63 substr = str(key).split(":")
71 fea = str(k) + " = "+str(v).lower()
73 if substr[0] == str(key_sub).split(":")[0]:
74 … components_list.append({"component":str(key_sub).split(":")[1], "features":features})
/build/ohos/packages/
Dcheck_seccomp_library_name.py85 parser.add_argument('--vendor-cfg-path', type=str,
88 parser.add_argument('--vendor-seccomp-lib-path', type=str,
91 parser.add_argument('--system-cfg-path', type=str,
94 parser.add_argument('--system-seccomp-lib-path', type=str,
Dgenerate_host_symlink.py46 subprocess.run(['ln', '-sf', str(source_file), str(symlink_dest_file)])
47 output_result[symlink_dest_file] = str(source_file)
/build/hb/exceptions/
Dohos_exception.py30 def get_solution(self) -> str:
35 return status_file[str(self._code)]['solution']
/build/scripts/
Dsummary_ccache_hitrate.py68 print("cache hit (direct) : " + str(hit_dir_num))
69 print("cache hit (preprocessed) : " + str(hit_pre_num))
70 print("cache miss : " + str(mis_num))
Dninja2trace.py84 'ts': str(storingdataline.start * 1000),
85 'dur': str((storingdataline.end - storingdataline.start) * 1000),
86 'pid': str(0),
87 'tid': str(counter.counting_the_new_tid(storingdataline)),
/build/tools/component_tools/static_check/
Dcsct.py83 type=str,
97 type=str,
106 type=str,
112 type=str,
124 type=str,
/build/tools/component_tools/
Dfull_components_generator.py46 if str(file) == name:
113 parser.add_argument('--subsys', type=str, default="./build/subsystem_config.json",
115 parser.add_argument('--subsys_overlay', type=str, default=subsystem_json_overlay_path,
117 parser.add_argument('--out', type=str, default="./productdefine/common/base/base_product.json",
/build/rust/tests/test_bin_cargo_crate/crate/
Dbuild.rs18 use std::str::{self, FromStr};
57 let rustc_version = match str::from_utf8(&output.stdout) { in rustc_minor_version()

123