Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 139) sorted by relevance

123456

/build/
Dprebuilts_download.py34 def _run_cmd(cmd: str):
41 def _check_sha256(check_url: str, local_file: str) -> bool:
52 def _check_sha256_by_mark(args, check_url: str, code_dir: str, unzip_dir: str, unzip_filename: str)…
62 def _obtain_sha256_by_sha_sums256(check_url: str) -> str:
75 def _config_parse(config: dict, tool_repo: str, glibc_version: str) -> dict:
89 def _uncompress(args, src_file: str, code_dir: str, unzip_dir: str, unzip_filename: str, mark_file_…
100 def _copy_url(args, task_id: int, url: str, local_file: str, code_dir: str, unzip_dir: str,
101 unzip_filename: str, mark_file_path: str, progress):
136 def _copy_url_disable_rich(args, url: str, local_file: str, code_dir: str, unzip_dir: str,
137 unzip_filename: str, mark_file_path: str):
[all …]
/build/ohos/testfwk/
Dtestcase_resource_copy.py29 def copy_dir(src: str, dest: str) -> list:
54 def _resources_with_xml_v1(root, testcase_target_name: str, test_resource_path: str,
55 part_build_out_path: str, resource_output_path: str) -> list:
105 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str,
106 part_build_out_path: str, resource_output_path: str) -> list:
144 def find_testcase_resources(resource_config_file: str, testcase_target_name: str,
145 test_resource_path: str, part_build_out_path: str,
146 resource_output_path: str) -> list:
195 def _get_subsystem_name(part_name: str):
206 def find_project_root(start_path: str, marker: str = '.gn') -> str:
[all …]
Dtest_js_stage_file_copy.py23 def get_hap_module_info(build_target_name: str, module_name: str,
24 testcases_dir: str, subsystem_name: str,
25 part_name: str, project_path: str):
40 def get_hap_json_info(project_path: str, build_target_name: str,
41 archive_testfile: str, test_type: str, module_out_path: str):
76 def copy_hap_case(final_hap_path: str, archive_testfile: str):
/build/lite/
Dgen_module_notice_file.py28 def is_top_dir(src_path: str):
32 def find_config_parent_file(src_dir: str, target_cfg: str):
43 def get_notice_file_name(readme_file_path: str, copyright_file: str,
44 module_relative_src_path: str):
74 def get_opensource_config_file(module_source_dir: str, root_out_dir: str, target_cfg: str):
90 def get_notice_file(module_source_dir: str, root_out_dir: str,
91 module_relative_source_dir: str):
106 def get_notice_file_dest_path(root_out_dir: str, target_name: str):
120 def create_dest_file(filename: str):
126 def gen_license(target_path: str, nf_dict: str, nf_src: str, cp_src: str):
[all …]
/build/ohos/images/mkimage/
Dmkimages.py30 def run_cmd(cmd: str):
38 def build_rootdir(src_dir: str) -> str:
52 def load_config(config_file: str) -> list:
84 def sparse_img2simg(is_sparse: str, device: str):
92 def mk_system_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str):
102 def mk_ramdisk_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str):
111 def mk_other_img(mkfs_tools: str, mk_configs: str, device: str, src_dir: str, is_sparse: str):
/build/scripts/
Dgen_sdk_build_file.py53 def check_header_files(checkfile_dir: str, subsystem_sdk_dir: str, subsystem_name: str,
54 module_name: str, interface_mgr):
61 def get_build_config_from_label(label: str, current_toolchain_dir: str) -> str:
67 def add_dynamic_deps(output: str, build_config: str) -> str:
78 def gen_build_file(input_file: str, sdk_out_dir: str, generate_sig: bool,
79 signature_file_check_dir: str):
206 def generate_sdk(input_file: str, sdk_out_dir: str, output_build_file: str, sdk_info_file: str,
207 generate_sig: str, signature_file_check_dir: str,
208 signature_file_gen_dir: str):
Dninja_rules_parser.py24 def _read_subninja_build(build_dir: str, subninja_build_file: str):
52 def _parse_target_label(build_label_list: list, toolchain_name: str):
69 def _read_toolchain_ninja(build_dir: str, toolchain_ninja_file: str, toolchain_name: str):
97 def _read_variants_toolchain_info(variants_toolchain_info_file: str):
109 def _read_build_ninja(build_ninja_file: str):
118 def generate_phony_targets(build_dir: str, toolchain_ninja_file: str, platform: str,
119 toolchain_name: str, default_targets_name: str):
139 def _update_build_ninja(build_dir: str, include_files: str):
162 def update(build_dir: str, variants_toolchain_info_file: str):
Dcompile_app.py62 def make_env(build_profile: str, cwd: str, ohpm_registry: str, options):
103 def get_integrated_project_config(cwd: str):
111 def get_hvigor_version(cwd: str):
119 def get_unsigned_hap_path(project_name: str, src_path: str, cwd: str, options):
141 def gen_unsigned_hap_path_json(build_profile: str, cwd: str, options):
167 def copy_libs(cwd: str, system_lib_module_info_list: list, ohos_app_abi: str, module_libs_dir: str):
208 def build_hvigor_cmd(cwd: str, model_version: str, options):
267 def set_sdk_path(cwd: str, model_version: str, options, env):
274 def write_local_properties(cwd: str, options):
289 def hvigor_sync(cwd: str, model_version: str, env):
[all …]
Dcargo2gn.py68 def escape_quotes(s: str):
73 def file_base_name(path: str):
77 def pkg_to_crate_name(s: str):
81 def get_base_name(path: str):
90 def get_designated_pkg_info(lines: list, designated: str):
104 def is_build_script(name: str):
109 def is_dependent_path(path: str):
128 def short_out_name(pkg: str, s: str):
136 def __init__(self, runner, outfile_name: str):
176 def write(self, s: str):
[all …]
Dinterface_mgr.py25 def get_file_sha256(self, filename: str):
42 def get_header_files(self, file_dir: str) -> list:
52 def gen_sig_file_by_subsystem(self, subsystem_sdk_out_dir: str,
53 sig_file_gen_dir: str):
107 def check(self, check_file_dir: str, subsystem_sdk_dir: str, subsystem_name: str,
108 module_name: str):
137 def _gen_checkfile(self, check_file_dir: str, target_type_dir: str, target_type: str):
Dcode_release.py31 def _copy_opensource_file(opensource_config_file: str, top_dir: str, package_dir: str) -> bool:
53 def _parse_opensource_file(opensource_config_file: str, license_set: set) -> bool:
74 def _scan_and_package_code_release(scan_dir: str, top_dir: str, package_dir: str, license_set: set):
85 def _collect_opensource(options, package_dir: str):
108 def _tar_opensource_package_file(options, package_dir: str) -> int:
/build/lite/testfwk/
Dlite_testcase_resource_copy.py28 def copy_dir(src: str, dest: str):
50 def _resources_with_xml_v1(root, testcase_target_name: str, test_resource_path: str,
51 part_build_out_path: str, resource_output_path: str):
96 def _parse_res_value(value: str):
101 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str,
102 part_build_out_path: str, resource_output_path: str):
140 def find_testcase_resources(resource_config_file: str, testcase_target_name: str,
141 test_resource_path: str, part_build_out_path: str,
142 resource_output_path: str):
/build/ohos/update/
Dcheck_abi_and_copy_deps.py29 def get_value_from_file(file: str, target: list, key: str, must: bool = True):
83 def check_debug_info(check_file: str, readelf: str):
94 def do_check(target_out_dir: str, target_name: str, stripped_dir: str, readelf: str,
95 abidiff: str, abidw: str, abi_dumps_path: str):
137 def traverse_and_check(check_list: list, readelf: str, abidiff: str, abidw: str, abi_dumps_path: st…
183 def get_copy_output_path(element: list, parent_output: str):
/build/ohos/packages/
Dresources_collect.py27 def get_src_parts(system_install_info_file: str):
42 def _collect_testcase(resources_dir: str, parts_info: dict, output_base_dir: str):
63 def collect_testcase(resources_dir_list: list, parts_info: dict, output_base_dir: str):
68 def _collect_test_mlf(resources_dir: str, parts_info: dict, output_base_dir: str):
89 def collect_test_mlf(resources_dir_list: list, parts_info: dict, output_base_dir: str):
94 def _collect_libs_symbols(resources_dir: str, parts_info: dict, package_output_base_dir: str):
120 def collect_libs_symbols(resources_dir_list: list, parts_info: dict, output_base_dir: str):
125 def _collect_libs_java(resources_dir: str, parts_info: dict, output_base_dir: str):
148 def collect_libs_java(resources_dir_list: str, parts_info: dict, output_base_dir: str):
153 def _collect_kits_modules(resources_dir: str, parts_info: dict, output_base_dir: str):
[all …]
/build/ohos/notice/
Dmerge_notice_files.py122 def write_file(file: str, string: str):
126 def compute_hash(file: str):
134 def get_entity(text: str):
138 def generate_txt_notice_files(file_hash: str, input_dir: str, output_filename: str,
139 notice_title: str):
187 def generate_xml_notice_files(files_with_same_hash: dict, input_dir: str,
188 output_filename: str):
230 def compress_file_to_gz(src_file_name: str, gz_file_name: str):
236 def handle_zipfile_notices(zip_file: str):
252 def do_merge_notice(args, zipfiles: str, txt_files: str):
/build/ohos/ndk/
Dcopy_notices_file.py22 def create_dest_file(dest_dir: str):
27 def get_file_name(target_name: str, opensource_name: str):
36 def merge_multi_notices(notice_root_dir: str,
37 module_notices: str,
38 target_name: str,
39 opensource_name: str):
53 def copy_notice_file(root_out_dir: str,
54 module_notices: str,
55 target_name: str,
56 opensource_name: str):
Darchive_ndk.py45 def do_archive(output: str, directory: str, prefix: str, compress_fn, filter_file_name: list):
64 def archive_ndk(output: str, os_irrelevant_dir: str, os_specific_dir: str, prefix: str,
65 compress_fn, notice: str, filter_file_name: list):
84 def file_filter(os_irrelevant_dir: str):
/build/hb/util/
Ddevice_util.py32 def is_kernel(kernel_path: str):
38 def get_device_path(board_path: str, kernel_type: str, kernel_version: str):
47 def get_kernel_config(board_path: str):
59 def match_kernel(config: str, kernel: str, version: str):
70 def get_kernel_info(config: str):
86 def check_path(path: str):
93 def get_compiler(config_path: str):
Dcomponent_util.py43 def is_in_component_dir(path: str) -> bool:
47 def is_component_in_product(component_name: str, product_name: str) -> bool:
57 def get_component_name(path: str) -> str:
66 def get_component(path: str) -> str:
75 def get_default_deps(variant: str, has_test=False) -> str:
83 def get_component_module_full_name(out_path: str, component_name: str, module_name: str) -> str:
113 def search_bundle_file(component_name: str):
118 def _recurrent_search_bundle_file(path: str):
/build/ohos/
Dgenerate_part_info.py25 def gen_output_file(part_name: str, origin_part_name: str, all_modules_file: str,
26 sdk_modules_info_file: str, install_modules_file: str,
27 dep_modules_file: str, output_host_file: str,
28 current_toolchain: str, host_toolchain: str):
/build/ohos/hisysevent/
Dgen_def_from_all_yaml.py281 def _open_warning_file(output_path: str):
302 def _output_deprecated(output_path: str):
320 def _is_valid_length(content: str, len_min: int, len_max: int) -> bool:
324 def _is_valid_header(content: str) -> bool:
332 def _check_invalid_char(content: str):
339 def _check_domain_duplicate(domain: str) -> bool:
383 def _check_event_name(domain: str, event_name: str) -> bool:
403 def _check_event_type(event_name: str, event_base: dict) -> bool:
419 def _check_event_level(event_name: str, event_base: dict) -> bool:
435 def _check_event_desc(event_name: str, event_base: dict) -> bool:
[all …]
/build/ohos/sdk/
Dparse_public_sdk.py40 def copy_sdk_interface(source_root: str):
48 def replace_sdk_api_dir(source_root: str):
56 def replace_sdk_kits_dir(source_root: str):
64 def replace_sdk_arkts_dir(source_root: str):
72 def remove_system_api_method(source_root: str, nodejs: str):
83 def regenerate_sdk_description_file(source_root: str, sdk_description_file: str, output_pub_sdk_des…
97 def parse_step(sdk_description_file: str, source_root: str, nodejs: str, output_pub_sdk_desc_file: …
Dconvert_permissions.py27 def copy_sdk_interface(source_root: str):
34 def copy_api(source_root: str):
41 def convert_permission_method(source_root: str, nodejs: str):
57 def replace_sdk_api_dir(source_root: str):
65 def parse_step(source_root: str, nodejs: str):
72 def convert_permissions(root_build_dir: str, node_js: str):
/build/ohos/images/
Dget_module_install_dest.py22 def get_source_name(module_type: str, name: str, prefix_override: str, suffix: str):
35 …ll_dests(system_base_dir: str, source_file_name: str, install_images: list, module_install_dir: st…
/build/tools/component_tools/
Dgenerate_kconfig.py36 def create_config(name: str, comment: str):
40 def create_property(name: str, comment: str):
44 def create_menu(name: str):
52 def create_feature(name: str):
56 def read_json(file: str):
63 def write_kconfig(result: str, outdir: str):
70 def gen_kconfig(config_path: str, outdir: str):

123456