Home
last modified time | relevance | path

Searched defs:self (Results 1 – 25 of 96) sorted by relevance

1234

/build/hb/resources/
Dconfig.py40 def __init__(self): argument
69 def component_type(self): argument
73 def component_type(self, value: str): argument
78 def target_os(self): argument
82 def target_os(self, value: str): argument
87 def target_cpu(self): argument
91 def target_cpu(self, value: str): argument
96 def version(self): argument
100 def version(self, value: str): argument
105 def compile_config(self): argument
[all …]
/build/hb/services/
Dloader.py34 def __init__(self): argument
59 def __post_init__(self): argument
148 def _check_args(self): argument
177 def _check_product_part_feature(self): argument
216 def _check_parts_config_info(self): argument
237 def _generate_syscap_files(self): argument
344 def _get_build_platforms(self) -> list: argument
362 def _generate_infos_for_testfwk(self): argument
385 def _generate_target_platform_parts(self): argument
400 def _generate_part_different_info(self): argument
[all …]
Dpreloader.py30 def __init__(self): argument
45 def __post_init__(self): argument
66 def _generate_platforms_build(self): argument
85 def _generate_build_gnargs_prop(self): argument
115 def _generate_features_json(self): argument
139 def _generate_syscap_json(self): argument
161 def _generate_exclusion_modules_json(self): argument
179 def _generate_build_config_json(self): argument
191 def _generate_build_prop(self): argument
207 def _generate_parts_json(self): argument
[all …]
Dhpm.py47 def __init__(self): argument
51 def run(self): argument
55 def execute_hpm_cmd(self, cmd_type: int, **kwargs): argument
76 def _regist_hpm_path(self): argument
89 def _execute_hpm_build_cmd(self, **kwargs): argument
94 def _execute_hpm_install_cmd(self, **kwargs): argument
99 def _execute_hpm_pack_cmd(self, **kwargs): argument
104 def _execute_hpm_publish_cmd(self, **kwargs): argument
109 def _execute_hpm_update_cmd(self, **kwargs): argument
118 def _convert_args(self) -> list: argument
[all …]
Dgn.py48 def __init__(self): argument
53 def run(self): argument
57 def execute_gn_cmd(self, cmd_type: int, **kwargs): argument
82 def _regist_gn_path(self): argument
97 def _execute_gn_gen_cmd(self, **kwargs): argument
136 def _execute_gn_path_cmd(self, **kwargs): argument
161 def _execute_gn_desc_cmd(self, **kwargs): argument
186 def _execute_gn_ls_cmd(self, **kwargs): argument
206 def _execute_gn_refs_cmd(self, **kwargs): argument
226 def _execute_gn_format_cmd(self, **kwargs): argument
[all …]
/build/hb/services/interface/
Dload_interface.py26 def __init__(self): argument
31 def __post_init__(self): argument
35 def config(self): argument
39 def outputs(self): argument
42 def regist_arg(self, arg_name: str, arg_value: str): argument
49 def run(self): argument
71 def _execute_loader_args_display(self): argument
75 def _check_parts_config_info(self): argument
79 def _generate_subsystem_configs(self): argument
83 def _generate_target_platform_parts(self): argument
[all …]
Dpreload_interface.py26 def __init__(self): argument
31 def __post_init__(self): argument
35 def outputs(self): argument
39 def config(self): argument
42 def regist_arg(self, arg_name: str, arg_value: str): argument
49 def run(self): argument
66 def _generate_build_prop(self): argument
70 def _generate_build_config_json(self): argument
74 def _generate_parts_json(self): argument
78 def _generate_parts_config_json(self): argument
[all …]
/build/scripts/
Dcargo2gn.py136 def __init__(self, runner, outfile_name: str): argument
176 def write(self, s: str): argument
180 def parse_rustc(self, line_num: int, line: str): argument
228 def parse_args(self, args): argument
278 def deal_cfg(self, arg: str): argument
288 def add_ignore_options_flag(self, flag: str): argument
299 def deal_extern(self, arg: str): argument
304 def set_root_pkg_name(self, arg: str): argument
314 def deal_static_and_dylib(self, arg: str): argument
322 def set_main_src(self, arg: str): argument
[all …]
/build/hb/modules/interface/
Dbuild_module_interface.py33 def __init__(self, argument
48 def preloader(self): argument
52 def loader(self): argument
56 def target_generator(self): argument
60 def target_compiler(self): argument
63 def run(self): argument
77 def _prebuild(self): argument
81 def _preload(self): argument
86 def _prebuild_and_preload(self): argument
91 def _load(self): argument
[all …]
Dtool_module_interface.py28 def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface): argument
32 def list_targets(self): argument
36 def desc_targets(self): argument
40 def path_targets(self): argument
44 def refs_targets(self): argument
48 def format_targets(self): argument
52 def clean_targets(self): argument
55 def run(self): argument
/build/test/example/
Dtest_gn_template.py240 def test_ohos_shared_library_output_dir(self): argument
250 def test_ohos_shared_library_testonly(self): argument
260 def test_ohos_shared_library(self): argument
270 def test_ohos_shared_library_output_name(self): argument
280 def test_ohos_shared_library_output_extension(self): argument
290 def test_ohos_shared_library_module_install_dir(self): argument
299 def test_ohos_shared_library_relative_install_dir(self): argument
308 def test_ohos_static_library(self): argument
318 def test_ohos_source_set(self): argument
328 def test_ohos_executable(self): argument
[all …]
Dperformance_test.py117 def __init__(self, performance_cmd, output_path, report_titles, ptyflags=False): argument
183 def remove_out(self): argument
201 def write_html(self, content): argument
211 def generate_content(self, table_name, data_rows, switch=False): argument
264 def read_ninjia_trace_file(self): argument
276 def process_ninja_trace(self): argument
302 def process_gn_trace(self): argument
316 def process_ccache_ctargets(self): argument
333 def process_system(self): argument
359 def process_cost_time(self): argument
[all …]
/build/hb/
Dmain.py131 def _set_path(self): argument
138 def _init_build_module(self) -> BuildModuleInterface: argument
155 def _init_hb_init_module(self): argument
159 def _init_set_module(self) -> SetModuleInterface: argument
167 def _init_env_module(self) -> EnvModuleInterface: argument
179 def _init_clean_module(self) -> CleanModuleInterface: argument
184 def _init_tool_module(self) -> ToolModuleInterface: argument
191 def _init_indep_build_module(self) -> IndepBuildModuleInterface: argument
199 def _is_indep_build(self) -> bool: argument
205 def _init_install_module(self) -> InstallModuleInterface: argument
[all …]
/build/hb/util/preloader/
Dpreloader_process_data.py27 def __init__(self, output_dir): argument
30 def __post_init__(self, output_dir): argument
54 def __init__(self, config): argument
57 def __post_init__(self, config): argument
82 def __init__(self, config_dirs: Dirs, ohos_config: Config): argument
96 def __post_init__(self, config_dirs: Dirs, config: Config): argument
106 def _do_parse(self): argument
116 def _update_syscap_info(self): argument
133 def _update_device(self): argument
153 def _update_parts(self): argument
[all …]
/build/hb/test/unitTest/services/
Dpreloader_test.py26 def setUp(self): argument
30 def tearDown(self): argument
33 def test_generate_build_prop(self): argument
36 def test_generate_build_config_json(self): argument
39 def test_generate_parts_json(self): argument
42 def test_generate_parts_config_json(self): argument
45 def test_generate_build_gnargs_prop(self): argument
48 def test_generate_features_json(self): argument
51 def test_generate_syscap_json(self): argument
54 def test_generate_exclusion_modules_json(self): argument
[all …]
/build/config/components/init/seccomp/scripts/
Dgenerate_code_from_policy.py69 def __init__(self, msg): argument
183 def __init__(self, arch, function_name_nr_table, is_debug): argument
212 def clear_list(self): argument
221 def update_list(self, function_name, to_update_list): argument
227 def update_priority(self, function_name): argument
230 def update_allow_list(self, function_name): argument
233 def update_blocklist(self, function_name): argument
236 def update_priority_with_args(self, function_name_with_args): argument
244 def update_allow_list_with_args(self, function_name_with_args): argument
252 def update_head_files(self, head_files): argument
[all …]
/build/tools/component_tools/
Dcomponent_node.py22 …def __init__(self, module_name: str, subsystem_name: str, part_name: str, deps: set, external_deps… argument
31 def module_name(self): argument
35 def module_name(self, value): argument
39 def subsystem_name(self): argument
43 def subsystem_name(self, value): argument
47 def part_name(self): argument
51 def part_name(self, value): argument
55 def deps(self): argument
59 def deps(self, value): argument
63 def external_deps(self): argument
[all …]
/build/hb/modules/
Dohos_build_module.py37 def __init__(self, argument
51 def build_time(self): argument
63 def run(self): argument
72 def _prebuild(self): argument
75 def _preload(self): argument
80 def _load(self): argument
85 def _pre_target_generate(self): argument
88 def _target_generate(self): argument
93 def _post_target_generate(self): argument
96 def _pre_target_compilation(self): argument
[all …]
/build/scripts/util/
Dmd5_check.py135 def __init__(self, old_metadata, new_metadata, force, missing_outputs): argument
141 def has_changes(self): argument
148 def added_or_modified_only(self): argument
164 def iter_all_paths(self): argument
168 def iter_all_subpaths(self, path): argument
172 def iter_added_paths(self): argument
178 def iter_added_subpaths(self, path): argument
184 def iter_removed_paths(self): argument
191 def iter_removed_subpaths(self, path): argument
198 def iter_modified_paths(self): argument
[all …]
/build/hb/util/loader/
Dload_ohos_build.py111 def __init__(self, part_name, variant_name, part_config, toolchain, argument
163 def _parsing_inner_kits(self, part_name, inner_kits_info, build_gn_content, argument
204 def part_name(self): argument
208 def part_variant(self): argument
212 def toolchain(self): argument
216 def part_inner_kits(self): argument
220 def part_component_info(self): argument
224 def part_kits(self): argument
228 def write_build_gn(self, config_output_dir): argument
234 def get_target_label(self, config_output_relpath): argument
[all …]
/build/tools/component_tools/static_check/gn_check/
Dcheck_gn.py41 def __init__(self, ohos_root: str, black_dir: tuple = tuple(), check_path='') -> None: argument
61 def get_all_gn_data(self) -> dict: argument
90 def get_all_abs_path(self) -> list: argument
113 def check_have_product_name(self) -> pd.DataFrame: argument
144 def check_have_product_name_all(self) -> pd.DataFrame: argument
187 def check_pn_sn(self) -> pd.DataFrame: argument
233 def check_pn_sn_all(self) -> pd.DataFrame: argument
284 def check_abs_path(self) -> pd.DataFrame: argument
314 def check_abs_path_all(self) -> pd.DataFrame: argument
354 def output(self): argument
Dcheck_gn_online.py33 def __init__(self, gn_data: dict) -> None: argument
38 def merge_line(self) -> dict: argument
68 def check_have_product_name(self, key: str, line: list) -> None: argument
85 def check_abs_path(self, key: str, line: list) -> None: argument
106 def iter_modified_line(self, key, modified_line, target_pattern) -> None: argument
133 def check_pn_sn(self) -> None: argument
147 def load_ohos_xml(self, path): argument
159 def is_checked(self, file, xml_dict): argument
174 def pre_check(self): argument
180 def check(self): argument
[all …]
/build/tools/component_tools/static_check/bundle_check/
Dbundle_json_check.py164 def __init__(self, path: str) -> None: argument
177 def component_name(self) -> str: argument
181 def subsystem_name(self) -> str: # 目前存在为空的情况 argument
184 def readlines(self) -> list: argument
187 def get_line_number(self, string) -> int: argument
198 def check(self) -> list: argument
216 def check_name(self) -> dict: argument
242 def check_version(self) -> dict: argument
261 def check_segment(self) -> list: argument
297 def check_component(self) -> list: argument
[all …]
/build/
Dgn_helpers.py178 def __init__(self, string: str): argument
182 def is_done(self) -> bool: argument
185 def consume_whitespace(self): argument
189 def parse(self): argument
214 def parse_args(self) -> dict: argument
235 def parse_number(self) -> int: argument
253 def parse_string(self) -> str: argument
280 def parse_list(self): argument
318 def _constant_follows(self, constant) -> bool: argument
331 def _parse_allow_trailing(self): argument
[all …]
/build/ohos/packages/
Dprocess_field_validate.py30 def __init__(self, name, reason): argument
41 def __init__(self): argument
50 def __init__(self, loc): argument
60 def _is_need_verified_uid(self, uid: str): argument
64 def _is_need_verified_gid(self, gid): argument
69 def _is_need_verified_critical(self, critical: list): argument
72 def set_uid(self, uid): argument
81 def append_gid(self, gid): argument
90 def set_critical(self, critical: bool): argument
95 def handle_socket(self, socket: dict): argument
[all …]

1234