/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: 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): 92 def mk_system_img(mkfs_tools: str, mk_config [all...] |
/applications/standard/contacts_data/ability/common/utils/src/ |
H A D | contacts_string_utils.cpp | 28 std::vector<std::string> ContactsStringUtils::SplitStr(std::string str, std::string spSymbol) in SplitStr() argument 32 Trim(str); in SplitStr() 33 std::string::size_type found = str.find(spSymbol); in SplitStr() 36 std::string value = str.substr(i, found - i); in SplitStr() 42 found = str.find(spSymbol, i); in SplitStr() 44 std::string lastv = str.substr(i, str.size() - i); in SplitStr() 53 std::string &ContactsStringUtils::Trim(std::string &str) in Trim() argument 55 if (str.empty()) { in Trim() 56 return str; in Trim() [all...] |
/build/ohos/hisysevent/ |
H A D | gen_def_from_all_yaml.py | 281 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: 352 if not isinstance(yaml_info["domain"], str): 383 def _check_event_name(domain: str, event_name: str) -> bool: 403 def _check_event_type(event_name: str, event_bas [all...] |
/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, 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_di [all...] |
/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: 100 def _parse_res_value(value) -> str: 105 def _resources_with_xml_v2(root, testcase_target_name: str, test_resource_path: str, 106 part_build_out_path: str, resource_output_pat [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_pat [all...] |
/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 [all...] |
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, platfor [all...] |
H A D | cargo2gn.py | 68 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): 115 # remove quotes around str 128 def short_out_name(pkg: str, s: str) [all...] |
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_versio [all...] |
/build/ |
H A 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) -> bool: 62 def _obtain_sha256_by_sha_sums256(check_url: str) -> str: 75 def _config_parse(config: dict, tool_repo: str, glibc_versio [all...] |
/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, outdi [all...] |
H A D | parse_kconf.py | 35 def read_full_component(path: str): 48 def read_deps_info(path: str): 78 def is_valid_line(line: str): 82 def handle_config_feature(items: dict, arr: list, line: str): 93 def handle_config_component(items: dict, arr: list, line: str): 100 def handle_config_property(items: dict, arr: list, line: str): 106 def read_line_item(line: str): 126 def read(kconf: str): 149 def generate_config_with_full_deps(deps_path: str, base_product_path: str, config_pat [all...] |
H A D | full_components_generator.py | 42 def find_files(path: str, name: str): 47 if str(file) == name: 58 def read_component_from_ohos_build(file: str): 68 def read_component_from_bundle_json(file: str): 77 def find_component_in_path(subsys: str, path: str): 95 def update_components(subsys_file: str): 114 parser.add_argument('--subsys', type=str, default="./build/subsystem_config.json", 116 parser.add_argument('--subsys_overlay', type=str, defaul [all...] |
/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): 120 def collect_libs_symbols(resources_dir_list: list, parts_info: dict, output_base_dir: str) [all...] |
/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, [all...] |
/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_desc_file: str): 87 label = str(inf [all...] |
/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_pat [all...] |
/build/hb/exceptions/ |
H A D | ohos_exception.py | 26 def __init__(self, message: str, code: int = 0): 30 def get_solution(self) -> str: 35 return status_file[str(self._code)]['solution'] 37 def get_type(self) -> str: 40 if not self._code in status_file.keys() or 'type' not in status_file[str(self._code)].keys(): 42 return status_file[str(self._code)]['type'] 44 def get_desc(self) -> str: 47 if not self._code in status_file.keys() or 'description' not in status_file[str(self._code)].keys(): 49 return status_file[str(self._code)]['description']
|
/build/tools/component_tools/static_check/ |
H A D | csct_online_prehandle.py | 24 def add2dict(diff_dict: dict, path: str, line_num: str, content): 37 def __diff_match_file_start(control_block: dict, line: str): 51 def __diff_match_is_newfile(control_block: dict, line: str): 60 def __diff_match_filename_with_minus(control_block: dict, line: str): 69 def __diff_match_filename_with_plus(control_block: dict, line: str): 88 def __diff_match_start_linenum(control_block: dict, line: str): 98 def __diff_match_code_line(control_block: dict, line: str): 118 def strip_diff(diff_dict: dict, pull_request_url: str, gitee_pr_diff: str) [all...] |
/build/hb/util/ |
H A D | component_util.py | 43 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) -> str: 83 def get_component_module_full_name(out_path: str, component_nam [all...] |
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) [all...] |
/build/build_scripts/ |
H A D | build.py | 25 def search(findir: str, target: str) -> str or bool: 32 def find_top() -> str: 42 def get_python(python_relative_dir: str) -> str: 57 def check_output(cmd: str, **kwargs) -> str: 73 def build(path: str, args_list: list) -> str [all...] |
/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_pat [all...] |
/build/hb/resources/ |
H A D | config.py | 73 def component_type(self, value: str): 82 def target_os(self, value: str): 91 def target_cpu(self, value: str): 100 def version(self, value: str): 109 def compile_config(self, value: str): 118 def os_level(self, value: str): 127 def product_json(self, value: str): 140 def root_path(self, value: str): 151 def board(self, value: str): 162 def device_company(self, value: str) [all...] |