/ohos5.0/build/lite/ |
H A D | gen_module_notice_file.py | 28 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, 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): 144 def generate_notice_file(root_out_dir: str, module_source_dir: str, [all …]
|
/ohos5.0/build/ohos/testfwk/ |
H A D | testcase_resource_copy.py | 29 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, 230 def _find_resource_config_file(config_file_name: str, subsystem_path: str, module_name: str) -> str: 264 def _get_resources_list(resource_config_file: str, testcase_target_name: str, 265 part_build_out_path: str, resource_output_path: str) -> list: [all …]
|
H A D | test_js_stage_file_copy.py | 23 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):
|
/ohos5.0/build/ |
H A D | prebuilts_download.py | 33 def _run_cmd(cmd: str): 40 def _check_sha256(check_url: str, local_file: str) -> bool: 51 def _check_sha256_by_mark(args, check_url: str, code_dir: str, unzip_dir: str, unzip_filename: str)… 74 def _config_parse(config: dict, tool_repo: str, host_os_version: str) -> dict: 88 def _uncompress(args, src_file: str, code_dir: str, unzip_dir: str, unzip_filename: str, mark_file_… 99 def _copy_url(args, task_id: int, url: str, local_file: str, code_dir: str, unzip_dir: str, 100 unzip_filename: str, mark_file_path: str, progress): 135 def _copy_url_disable_rich(args, url: str, local_file: str, code_dir: str, unzip_dir: str, 136 unzip_filename: str, mark_file_path: str): 165 def _hwcloud_download(args, config: dict, bin_dir: str, code_dir: str): [all …]
|
/ohos5.0/build/ohos/images/mkimage/ |
H A D | mkimages.py | 30 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):
|
/ohos5.0/build/scripts/ |
H A D | gen_sdk_build_file.py | 53 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):
|
H A D | ninja_rules_parser.py | 24 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):
|
H A D | compile_app.py | 57 def make_env(build_profile: str, cwd: str, ohpm_registry: str, options): 97 def gen_unsigned_hap_path_json(build_profile: str, cwd: str, options): 127 def copy_libs(cwd: str, system_lib_module_info_list: list, ohos_app_abi: str, module_libs_dir: str): 168 def get_integrated_project_config(cwd: str): 176 def build_hvigor_cmd(cwd: str, model_version: str, options): 217 def set_sdk_path(cwd: str, model_version: str, options, env): 224 def write_local_properties(cwd: str, options): 239 def hvigor_sync(cwd: str, model_version: str, env): 248 def hvigor_build(cwd: str, options):
|
H A D | get_warnings.py | 32 def _do_uniq(infile: str, outfile: str): 48 def _parse(in_name: str, out_name: str, prj_dir: str) -> bool: 93 def _get_warn(log_file: str, warn_file: str, prj_dir: str):
|
H A D | interface_mgr.py | 25 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):
|
/ohos5.0/build/lite/testfwk/ |
H A D | lite_testcase_resource_copy.py | 28 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):
|
/ohos5.0/build/ohos/ndk/ |
H A D | copy_notices_file.py | 22 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):
|
H A D | archive_ndk.py | 45 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):
|
/ohos5.0/build/ohos/ |
H A D | generate_part_info.py | 25 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):
|
/ohos5.0/build/ohos/update/ |
H A D | check_abi_and_copy_deps.py | 29 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):
|
/ohos5.0/build/ohos/notice/ |
H A D | merge_notice_files.py | 92 def write_file(file: str, string: str): 96 def compute_hash(file: str): 104 def get_entity(text: str): 108 def generate_txt_notice_files(file_hash: str, input_dir: str, output_filename: str, 109 notice_title: str): 150 def generate_xml_notice_files(files_with_same_hash: dict, input_dir: str, 151 output_filename: str): 193 def compress_file_to_gz(src_file_name: str, gz_file_name: str): 199 def handle_zipfile_notices(zip_file: str): 265 def do_merge_notice(args, zipfiles: str, txt_files: str):
|
/ohos5.0/base/update/updater/test/unittest/utils/json/ |
H A D | utils_json_test.cpp | 62 std::string str = R"({"key"})"; variable 70 std::string str = R"({"key": "value1"})"; variable 85 std::string str = R"({"key": 1})"; variable 93 std::string str = R"({"key": true})"; variable 120 std::string str = R"({"key1": null})"; variable 127 std::string str = R"({"key":})"; variable 134 static const std::string str = R"( variable 235 std::string str = R"({"key":1})"; variable 244 std::string str = R"({"key":true})"; variable 262 std::string str = R"({"key1":{ variable [all …]
|
/ohos5.0/build/ohos/images/ |
H A D | get_module_install_dest.py | 22 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…
|
/ohos5.0/build/hb/util/ |
H A D | device_util.py | 32 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):
|
H A D | component_util.py | 31 def is_in_component_dir(path: str) -> bool: 35 def is_component_in_product(component_name: str, product_name: str) -> bool: 45 def get_component_name(path: str) -> str: 54 def get_component(path: str) -> str: 63 def get_default_deps(variant: str) -> str: 71 def get_component_module_full_name(out_path: str, component_name: str, module_name: str) -> str: 101 def search_bundle_file(component_name: str): 106 def _recurrent_search_bundle_file(path: str):
|
/ohos5.0/build/ohos/packages/ |
H A D | resources_collect.py | 27 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): 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): 176 def collect_resources(collect_type: str, resources_dir_list: list, parts_info: dict, [all …]
|
/ohos5.0/build/ohos/sdk/ |
H A D | parse_public_sdk.py | 40 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: …
|
H A D | convert_permissions.py | 27 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):
|
/ohos5.0/build/tools/component_tools/ |
H A D | generate_kconfig.py | 36 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):
|
/ohos5.0/build/ohos/sa_profile/ |
H A D | sa_profile_merge.py | 32 def _get_src_sa_info(src_sa_install_info_file: str, depfiles: list): 64 def _sa_profile_merge(json_sa_input_files: str, no_src_subsystem_sa_zipfile: str, 65 merge_out_dir: str, merged_zipfile: str, target_cpu: str): 85 def _generate_install_info(sa_result_file_list: list, sa_info_install_dest_dir: str, 86 sa_install_info_file: str):
|