| /build/lite/ |
| 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, 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/testfwk/ |
| 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, 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 …]
|
| 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):
|
| /build/ |
| D | prebuilts_download.py | 34 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/config/components/ets_frontend/ |
| D | generate_static_abc.py | 57 def set_environment(env_path: str, node_path: Optional[str] = None) -> Dict[str, str]: 66 def build_es2panda_command(es2panda_path: str, arktsconfig: str) -> List[str]: 71 def build_driver_command(entry_path: str, build_config_path: str) -> List[str]: 77 entry_path: str, build_config_path: str, env_path: str, node_path: str, timeout: str 86 es2panda_path: str, arktsconfig: str, dst_path: str 101 def run_subprocess(cmd: List[str], timeout: str, env: Dict[str, str]) -> str: 153 es2panda_path: str, arktsconfig: str, env_path: str, timeout: str 162 es2panda_path: str, arktsconfig: str, env_path: str, timeout: str, dst_path: str 170 def collect_abc_files(output_dir: str) -> List[str]: 181 ark_link_path: str, output_path: str, abc_files: List[str] [all …]
|
| /build/ohos/images/mkimage/ |
| 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):
|
| /build/ohos/sdk/ |
| D | convert_permissions.py | 27 def copy_sdk_interface(source_root: str, project_path: str): 34 def copy_api(source_root: str, project_path: str): 41 def convert_permission_method(source_root: str, project_path: str, file_name: str, nodejs: str): 57 def replace_sdk_api_dir(source_root: str, project_path: str, file_name: str): 65 def parse_step(source_root: str, project_path: str, file_name: str, nodejs: str): 72 def convert_permissions(root_build_dir: str, project_path: str, file_name: str, node_js: str):
|
| D | parse_interface_sdk.py | 50 def copy_sdk_interface(source_root: str, out_path: str): 58 def replace_sdk_dir(root_build_dir: str, from_path: str, to_path: str): 66 def copy_arkts_api_method(source_root: str, out_path: str, nodejs: str, sdk_type: str): 83 def remove_system_api_method(source_root: str, out_path: str, nodejs: str, sdk_type: str): 98 def compile_package(options, out_path: str): 121 def change_int_to_number(source_root: str, out_path: str, nodejs: str, sdk_type: str): 141 def regenerate_sdk_config_file(sdk_build_arkts: str, sdk_description_file: str, 142 output_sdk_desc_file: str):
|
| 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): 84 def regenerate_sdk_description_file(source_root: str, 85 sdk_description_file: str, 86 output_pub_sdk_desc_file: str): 97 def parse_step(sdk_description_file: str, source_root: str, nodejs: str, 98 output_pub_sdk_desc_file: str):
|
| /build/scripts/ |
| 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):
|
| 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):
|
| D | compile_app.py | 80 def make_env(build_profile: str, cwd: str, ohpm_registry: str, options): 121 def get_integrated_project_config(cwd: str): 129 def get_hvigor_version(cwd: str): 137 def get_unsigned_hap_path(project_name: str, src_path: str, cwd: str, options): 163 def gen_unsigned_hap_path_json(build_profile: str, cwd: str, options): 191 def copy_libs(cwd: str, system_lib_module_info_list: list, ohos_app_abi: str, module_libs_dir: str): 232 def build_hvigor_cmd(cwd: str, model_version: str, options): 292 def set_sdk_path(cwd: str, model_version: str, options, env): 299 def write_local_properties(cwd: str, options): 314 def hvigor_sync(cwd: str, model_version: str, env): [all …]
|
| /build/lite/testfwk/ |
| 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):
|
| /build/ohos/sbom/analysis/ |
| D | depend_graph.py | 65 def get_target(self, name: str) -> Target: 68 def predecessors(self, name: str) -> List[str]: 71 def successors(self, name: str) -> List[str]: 74 def ancestors(self, name: str) -> List[str]: 77 def descendants(self, name: str) -> List[str]: 80 def shortest_path(self, source: str, target: str) -> List[str]: 83 def sub_graph(self, nodes: Iterable[str]): 86 def add_virtual_root(self, root_name: str, children: List[str]): 100 def remove_virtual_root(self, root_name: str): 106 src: Union[str, Target], [all …]
|
| /build/ohos/ndk/ |
| 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):
|
| /build/ohos/ |
| 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):
|
| /build/ohos/update/ |
| 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):
|
| /build/ohos/images/ |
| 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…
|
| /build/hb/util/ |
| 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):
|
| /build/ohos/notice/ |
| D | merge_notice_files.py | 122 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/packages/ |
| 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): 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/sbom/common/ |
| D | utils.py | 32 def read_json(path: Union[str, Path]) -> Any: 40 def write_json(data: Any, file_path: str, *, indent: bool = True) -> None: 72 def generate_purl(pkg_type: str, namespace: str, name: str, 73 version: str = None, qualifiers: dict = None, 74 subpath: str = None) -> str: 92 def get_purl_type_from_url(url: str) -> str: 140 def is_text_file(path: str) -> bool: 158 def commit_url_of(url: str, commit_id: str) -> str:
|
| /build/prebuilts_service/ |
| D | download_util.py | 44 def check_sha256_by_mark(remote_url, unzip_dir: str, unzip_filename: str) -> tuple: 65 def check_sha256(remote_url: str, local_file: str) -> bool: 82 def get_remote_sha256(remote_url: str) -> str: 104 def obtain_sha256_by_sha_sums256(remote_url: str) -> str: 120 def get_local_path(download_root: str, remote_url: str): 129 def extract_compress_files_and_gen_mark(source_file: str, unzip_dir: str, mark_file_path: str):
|
| D | common_utils.py | 56 def save_data(file_path: str, data): 62 def load_config(config_file: str): 68 def copy_file(src: str, dest: str): 74 def remove_dest_path(dest_path: str): 84 def copy_folder(src: str, dest: str): 89 def symlink_src2dest(src_dir: str, dest_dir: str): 128 def check_hpm_version(hpm_path: str, npm_path: str) -> bool: 155 def install_hpm_in_other_platform(name: str, operate: dict): 212 def install_hpm(npm_tool_path: str, hpm_install_dir: str): 256 def npm_config(npm_tool_path: str, global_args: object) -> tuple:
|
| /build/ohos/sbom/sbom/builder/ |
| D | document_builder.py | 55 def with_version(self, version: str) -> 'DocumentBuilder': 68 def with_bom_format(self, bom_format: str) -> 'DocumentBuilder': 81 def with_spec_version(self, spec_version: str) -> 'DocumentBuilder': 94 def with_data_license(self, data_license: str) -> 'DocumentBuilder': 107 def with_serial_number(self, serial_number: str) -> 'DocumentBuilder': 120 def with_timestamp(self, timestamp: str) -> 'DocumentBuilder': 133 def with_author(self, author: str) -> 'DocumentBuilder': 146 def with_authors(self, authors: List[str]) -> 'DocumentBuilder': 159 def with_doc_id(self, doc_id: str) -> 'DocumentBuilder': 172 def with_name(self, name: str) -> 'DocumentBuilder': [all …]
|