Home
last modified time | relevance | path

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

1234567

/build/ohos/images/mkimage/
Dmkimages.py30 def run_cmd(cmd: str): argument
38 def build_rootdir(src_dir: str) -> str: argument
52 def load_config(config_file: str) -> list: argument
78 print(" ".join(["pid ", str(res[0]), " ret ", str(res[1]), "\n",
80 print("MkImages failed errno: %s" % str(res[1]))
84 def sparse_img2simg(is_sparse: str, device: str): argument
92 def mk_system_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str): argument
102 def mk_ramdisk_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str): argument
111 def mk_other_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str): argument
Dmkextimage.py50 def run_cmd(cmd: str): argument
84 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" +
125 print("error run mke2fs errno: " + str(res))
129 print("error run e2fsdroid errno: " + str(res))
/build/lite/
Dgen_module_notice_file.py28 def is_top_dir(src_path: str): argument
32 def find_config_parent_file(src_dir: str, target_cfg: str): argument
43 def get_notice_file_name(readme_file_path: str, copyright_file: str, argument
44 module_relative_src_path: str): argument
74 def get_opensource_config_file(module_source_dir: str, root_out_dir: str, target_cfg: str): argument
90 def get_notice_file(module_source_dir: str, root_out_dir: str, argument
91 module_relative_source_dir: str): argument
106 def get_notice_file_dest_path(root_out_dir: str, target_name: str): argument
120 def create_dest_file(filename: str): argument
126 def gen_license(target_path: str, nf_dict: str, nf_src: str, cp_src: str): argument
[all …]
/build/tools/component_tools/
Dgenerate_kconfig.py36 def create_config(name: str, comment: str): argument
39 def create_property(name: str, comment: str): argument
42 def create_menu(name: str): argument
48 def create_feature(name: str): argument
51 def read_json(file: str): argument
57 def write_kconfig(result: str, outdir: str): argument
63 def gen_kconfig(config_path: str, outdir: str): argument
91 …parser.add_argument('--base_product', type=str, default="./../../../productdefine/common/base/base…
94 parser.add_argument('--outdir', type=str, default="./",
Dfull_components_generator.py41 def find_files(path: str, name: str): argument
46 if str(file) == name:
57 def read_component_from_ohos_build(file: str): argument
67 def read_component_from_bundle_json(file: str): argument
76 def find_component_in_path(subsys: str, path: str): argument
94 def update_components(subsys_file: str): argument
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",
Dparse_kconf.py35 def read_full_component(path: str): argument
48 def read_deps_info(path: str): argument
78 def is_valid_line(line: str): argument
82 def handle_config_feature(items: dict, arr: list, line: str): argument
93 def handle_config_component(items: dict, arr: list, line: str): argument
100 def handle_config_property(items: dict, arr: list, line: str): argument
106 def read_line_item(line: str): argument
126 def read(kconf: str): argument
149 def generate_config_with_full_deps(deps_path: str, base_product_path: str, config_path: str, out: s… argument
177 parser.add_argument('--deps', type=str, required=True, default="",
[all …]
/build/ohos/testfwk/
Dtestcase_resource_copy.py29 def copy_dir(src: str, dest: str) -> list: argument
54 def _resources_with_xml_v1(root, testcase_target_name: str, test_resource_path: str, argument
55 part_build_out_path: str, resource_output_path: str) -> list: argument
100 def _parse_res_value(value) -> str:
105 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str, argument
106 part_build_out_path: str, resource_output_path: str) -> list: argument
144 def find_testcase_resources(resource_config_file: str, testcase_target_name: str, argument
145 test_resource_path: str, part_build_out_path: str, argument
146 resource_output_path: str) -> list: argument
195 def _get_subsystem_name(part_name: str): argument
[all …]
Dtest_js_stage_file_copy.py23 def get_hap_module_info(build_target_name: str, module_name: str, argument
24 testcases_dir: str, subsystem_name: str, argument
25 part_name: str, project_path: str): argument
40 def get_hap_json_info(project_path: str, build_target_name: str, argument
41 archive_testfile: str, test_type: str, module_out_path: str): argument
76 def copy_hap_case(final_hap_path: str, archive_testfile: str): argument
/build/ohos/ndk/
Dcopy_notices_file.py22 def create_dest_file(dest_dir: str): argument
27 def get_file_name(target_name: str, opensource_name: str): argument
36 def merge_multi_notices(notice_root_dir: str, argument
37 module_notices: str, argument
38 target_name: str, argument
39 opensource_name: str): argument
53 def copy_notice_file(root_out_dir: str, argument
54 module_notices: str, argument
55 target_name: str, argument
56 opensource_name: str): argument
/build/build_scripts/
Dbuild.py25 def search(findir: str, target: str) -> str or bool: argument
32 def find_top() -> str:
42 def get_python(python_relative_dir: str) -> str: argument
57 def check_output(cmd: str, **kwargs) -> str: argument
73 def build(path: str, args_list: list) -> str: argument
/build/hb/exceptions/
Dohos_exception.py26 def __init__(self, message: str, code:int = 0): argument
30 def get_solution(self) -> str:
35 return status_file[str(self._code)]['solution']
37 def get_type(self) -> str:
42 return status_file[str(self._code)]['type']
44 def get_desc(self) -> str:
49 return status_file[str(self._code)]['description']
/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
/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
Ddevice_util.py32 def is_kernel(kernel_path: str): argument
38 def get_device_path(board_path: str, kernel_type: str, kernel_version: str): argument
47 def get_kernel_config(board_path: str): argument
59 def match_kernel(config: str, kernel: str, version: str): argument
70 def get_kernel_info(config: str): argument
86 def check_path(path: str): argument
93 def get_compiler(config_path: str): argument
/build/scripts/
Dgen_sdk_build_file.py53 def check_header_files(checkfile_dir: str, subsystem_sdk_dir: str, subsystem_name: str, argument
54 module_name: str, interface_mgr): argument
61 def get_build_config_from_label(label: str, current_toolchain_dir: str) -> str: argument
67 def add_dynamic_deps(output: str, build_config: str) -> str: argument
78 def gen_build_file(input_file: str, sdk_out_dir: str, generate_sig: bool, argument
79 signature_file_check_dir: str): argument
206 def generate_sdk(input_file: str, sdk_out_dir: str, output_build_file: str, sdk_info_file: str, argument
207 generate_sig: str, signature_file_check_dir: str, argument
208 signature_file_gen_dir: str): argument
Dninja_rules_parser.py24 def _read_subninja_build(build_dir: str, subninja_build_file: str): argument
52 def _parse_target_label(build_label_list: list, toolchain_name: str): argument
69 def _read_toolchain_ninja(build_dir: str, toolchain_ninja_file: str, toolchain_name: str): argument
97 def _read_variants_toolchain_info(variants_toolchain_info_file: str): argument
109 def _read_build_ninja(build_ninja_file: str): argument
118 def generate_phony_targets(build_dir: str, toolchain_ninja_file: str, platform: str, argument
119 toolchain_name: str, default_targets_name: str): argument
139 def _update_build_ninja(build_dir: str, include_files: str): argument
162 def update(build_dir: str, variants_toolchain_info_file: str): argument
/build/ohos/hisysevent/
Dgen_def_from_all_yaml.py278 def _open_warning_file(output_path: str): argument
299 def _output_deprecated(output_path: str): argument
317 def _is_valid_length(content: str, len_min: int, len_max: int) -> bool: argument
321 def _is_valid_header(content: str) -> bool: argument
329 def _check_invalid_char(content: str): argument
336 def _check_domain_duplicate(domain: str) -> bool: argument
349 if not isinstance(yaml_info["domain"], str):
380 def _check_event_name(domain: str, event_name: str) -> bool: argument
400 def _check_event_type(event_name: str, event_base: dict) -> bool: argument
405 if not isinstance(event_base["type"], str):
[all …]
/build/ohos/packages/
Dcheck_seccomp_library_name.py30 def parse_cfg_file(file_name: str): argument
47 def collect_cfg_services_name(cfg_dir: str): argument
57 def collect_seccomp_services_name(lib_dir: str): argument
75 def check_seccomp_services_name(servces_name: str, seccomp_services_name: str): argument
85 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,
Dresources_collect.py27 def get_src_parts(system_install_info_file: str): argument
42 def _collect_testcase(resources_dir: str, parts_info: dict, output_base_dir: str): argument
63 def collect_testcase(resources_dir_list: list, parts_info: dict, output_base_dir: str): argument
68 def _collect_test_mlf(resources_dir: str, parts_info: dict, output_base_dir: str): argument
89 def collect_test_mlf(resources_dir_list: list, parts_info: dict, output_base_dir: str): argument
94 def _collect_libs_symbols(resources_dir: str, parts_info: dict, package_output_base_dir: str): argument
120 def collect_libs_symbols(resources_dir_list: list, parts_info: dict, output_base_dir: str): argument
125 def _collect_libs_java(resources_dir: str, parts_info: dict, output_base_dir: str): argument
148 def collect_libs_java(resources_dir_list: str, parts_info: dict, output_base_dir: str): argument
153 def _collect_kits_modules(resources_dir: str, parts_info: dict, output_base_dir: str): argument
[all …]
/build/ohos/sdk/
Dparse_public_sdk.py38 def copy_sdk_interface(source_root: str): argument
46 def replace_sdk_api_dir(source_root: str): argument
54 def replace_sdk_kits_dir(source_root: str): argument
62 def remove_system_api_method(source_root: str, nodejs: str): argument
72 … regenerate_sdk_description_file(source_root: str, sdk_description_file: str, output_pub_sdk_desc_… argument
76 label = str(info.get("module_label"))
86 def parse_step(sdk_description_file: str, source_root: str, nodejs: str, output_pub_sdk_desc_file: argument
Dconvert_permissions.py27 def copy_sdk_interface(source_root: str): argument
34 def copy_api(source_root: str): argument
41 def convert_permission_method(source_root: str, nodejs: str): argument
57 def replace_sdk_api_dir(source_root: str): argument
65 def parse_step(source_root: str, nodejs: str): argument
72 def convert_permissions(root_build_dir: str, node_js: str): argument
/build/ohos/images/
Dget_module_install_dest.py22 def get_source_name(module_type: str, name: str, prefix_override: str, suffix: str): argument
35 …system_base_dir: str, source_file_name: str, install_images: list, module_install_dir: str, relati… argument
/build/tools/component_tools/static_check/
Dcsct_online_prehandle.py24 def add2dict(diff_dict: dict, path: str, line_num: str, content): argument
37 def __diff_match_file_start(control_block: dict, line: str): argument
51 def __diff_match_is_newfile(control_block: dict, line: str): argument
60 def __diff_match_filename_with_minus(control_block: dict, line: str): argument
69 def __diff_match_filename_with_plus(control_block: dict, line: str): argument
88 def __diff_match_start_linenum(control_block: dict, line: str): argument
98 def __diff_match_code_line(control_block: dict, line: str): argument
118 def strip_diff(diff_dict: dict, pull_request_url: str, gitee_pr_diff: str): argument
144 def get_diff_by_repo_pr_num(repo_url: str, pr_num: int): argument
145 diff_url = "%spulls/%s.diff" % (repo_url, str(pr_num))
[all …]
/build/ohos/
Dgenerate_part_info.py25 def gen_output_file(part_name: str, origin_part_name: str, all_modules_file: str, argument
26 sdk_modules_info_file: str, install_modules_file: str, argument
27 dep_modules_file: str, output_host_file: str, argument
28 current_toolchain: str, host_toolchain: str): argument
63 if str(module_def).startswith("//drivers/interface"):
/build/lite/testfwk/
Dlite_testcase_resource_copy.py28 def copy_dir(src: str, dest: str): argument
50 def _resources_with_xml_v1(root, testcase_target_name: str, test_resource_path: str, argument
51 part_build_out_path: str, resource_output_path: str): argument
96 def _parse_res_value(value: str): argument
101 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str, argument
102 part_build_out_path: str, resource_output_path: str): argument
140 def find_testcase_resources(resource_config_file: str, testcase_target_name: str, argument
141 test_resource_path: str, part_build_out_path: str, argument
142 resource_output_path: str): argument

1234567