Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 18 of 18) sorted by relevance

/developtools/hdc/scripts/
Ddev_hdc_test.py59 def init(cls): argument
60 cls.list_targets()
62 cls.load()
65 cls.set_options()
66 cls.print_options()
67 cls.dump()
72 def list_targets(cls): argument
77 cls.targets = [targets[0].decode()]
79 cls.targets = [t.decode() for t in targets]
84 def get_device(cls): argument
[all …]
/developtools/integration_verification/tools/components_deps/
Dcomponents_deps_analyzer.py26 def __get_open_components(cls, xml_path): argument
41 def __deal_config_json(cls, config_json): argument
50 def __get_required_components(cls, config_path: str): argument
57 required_components += cls.__deal_config_json(config_json)
61 def __get_line(cls, txt_list, key_words: str): argument
68 …def __judge_deps(cls, gn_path: str, new_line_num: str, open_components_list, optional_components, … argument
81 scan_line_num = cls.__get_scan_line_num(gn_lines, new_line_num)
92 line = cls.__get_line(gn_lines, 'deps =')
103 def __get_scan_line_num(cls, gn_lines, new_line_num): argument
110 in_if_line_num = cls.__get_line_num(in_if_txt)
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/standard/
Dram_analyzer.py40 def verify_hdc(cls, verify_str: str = "OpenHarmony") -> bool: argument
52 def verify_device(cls, device_num: str) -> bool: argument
64 def exec(cls, args: list, output_from: str = "stdout"): argument
83 def __hidumper_mem_line_process(cls, content: typing.Text) -> typing.List[typing.Text]: argument
101 …def __parse_hidumper_mem(cls, content: typing.Text, device_num: str, ss: str = "Pss") -> typing.Di… argument
125 if ss not in cls.__ss_dict.keys():
137 processed: typing.List[typing.Text] = cls.__hidumper_mem_line_process(
143 size = int(processed[cls.__ss_dict.get(ss)]) * \
154 def process_hidumper_info(cls, device_num: str, ss: str) -> typing.Dict[str, int]: argument
162 name_size_dict = cls.__parse_hidumper_mem(stdout, device_num, ss)
[all …]
Drom_analyzer.py81 def __collect_product_info(cls, system_module_info_json: Text, argument
142 def __inside_save_result_as_excel(cls, add_baseline, subsystem_name, component_name, argument
151 def __save_result_as_excel(cls, result_dict: dict, output_name: str, add_baseline: bool): argument
189 … line = cls.__inside_save_result_as_excel(add_baseline, subsystem_name, component_name,
204 …def __put(cls, unit: typing.Dict[Text, Any], result_dict: typing.Dict[Text, Dict], baseline_dict: … argument
253 def analysis(cls, system_module_info_json: Text, product_dirs: List[str], argument
274 product_info_dict = cls.__collect_product_info(
292 cls.__put(unit, result_dict, rom_baseline_dict, add_baseline)
297 cls.result_unit_adaptive(result_dict)
301 cls.__save_result_as_excel(result_dict, output_file, add_baseline)
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dbasic_tool.py70 …def find_files_with_pattern(cls, folder: str, pattern: str = "/**", recursive: bool = True, apply_… argument
85 file_list = glob.glob(cls.abspath(folder)+pattern, recursive=recursive)
87 file_list = list(map(lambda x: cls.abspath(x), file_list))
101 …def match_paragraph(cls, content: str, start_pattern: str = r"\w+\(\".*?\"\) *{", end_pattern: str… argument
118 def re_group_1(cls, content: str, pattern: str, **kwargs) -> str: argument
134 def abspath(cls, path: str) -> str: argument
143 def grep_ern(cls, pattern: str, path: str, include: str = str(), exclude: tuple = tuple(), argument
161 o = cls.execute(cmd)
167 def execute(cls, cmd: str, post_processor: Callable[[Text], Text] = do_nothing) -> Any: argument
Dgn_common_tool.py37 def _find_gn_variable_list(cls, content: str) -> List: argument
57 def is_gn_variable(cls, target: str, quote_processed: bool = False): argument
84 def contains_gn_variable(cls, s: str, quote_processed: bool = False): argument
88 return cls.is_gn_variable(s, quote_processed) or ("$" in s)
94 …def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home", use_cache… argument
138 def replace_gn_variables(cls, s: str, gn_path: str, stop_tail: str) -> str: argument
156 def find_values_of_variable(cls, var_name: str, path: str, stop_tail: str = "home") -> list: argument
185 def string_parser(cls, var: str, content: str) -> str: argument
197 def list_parser(cls, var: str, content: str) -> List[str]: argument
Drom_ram_baseline_collector.py30 …def _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size… argument
39 def collect(cls, oh_path: str) -> Dict[str, Dict]: argument
69cls._put(rom_ram_baseline_dict, subsystem_name, component_name, rom_baseline, ram_baseline, bundle)
Dsimple_yaml_tool.py25 def read_yaml(cls, file_name: str, mode: str = "r", encoding: str = "utf-8") -> Dict: argument
/developtools/integration_verification/DeployDevice/src/util/
Dlog_info.py10 def __new__(cls, *args, **kw): argument
11 if not hasattr(cls, '_instance'):
12 cls._instance = super(Singleton, cls).__new__(cls, *args, **kw)
14 return cls._instance
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
Drom_analysis.py53 def collect_gn_info(cls): argument
66 … def _add_rest_dir(cls, top_dir: str, rela_path: str, sub_path: str, dir_list: List[str]) -> None: argument
101 cls._add_rest_dir(top_dir, t, sub_sub_path, dir_list)
104 def _find_files(cls, product_name: str) -> Dict[str, List[str]]: argument
136 cls._add_rest_dir(root_dir, str(), v, rest_dir_list)
145 def collect_product_info(cls, product_name: str): argument
147 product_dict: Dict[str, List[str]] = cls._find_files(product_name)
153 …def _put(cls, sub: str, com: str, unit: Dict, rom_size_dict: Dict, com_size_baseline: str = str()): argument
180 …def _fuzzy_match(cls, file_name: str, filter_path_keyword: Tuple[str] = tuple()) -> Tuple[str, str… argument
237 def _save_as_xls(cls, result_dict: Dict, product_name: str, baseline: bool) -> None: argument
[all …]
Dmisc.py95 def single_parser(cls, paragraph: Text) -> str: argument
104 def second_parser(cls, paragraph: Text) -> str: argument
Dget_subsystem_component.py132 def run(cls, project_path: str, output_path: str = None, save_result: bool = True): argument
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/
Dgn_common_tool.py18 def is_gn_variable(cls, target: str, has_quote: bool = True): argument
44 … def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home") -> tuple: argument
75 def __find_part_subsystem_from_bundle(cls, gnpath: str, stop_tail: str = "home") -> tuple: argument
108 …def _parse_part_subsystem(cls, part_var_flag: bool, subsystem_var_flag: bool, var_list: List[str],… argument
146 def find_part_subsystem(cls, gn_file: str, project_path: str) -> tuple: argument
160 part_name, subsystem_name = cls._parse_part_subsystem(part_var_flag, subsystem_var_flag,
165 t_part_name, t_subsystem_name = cls.__find_part_subsystem_from_bundle(
176 def string_parser(cls, var: str, content: str) -> str: argument
188 def list_parser(cls, var: str, content: str) -> List[str]: argument
Dbasic_tool.py24 …def match_paragraph(cls, content: str, start_pattern: str = r"\w+\(\".*?\"\) *{", end_pattern: str… argument
41 …def find_all_files(cls, folder: str, real_path: bool = True, apply_abs: bool = True, de_duplicate:… argument
56 def get_abs_path(cls, path: str) -> str: argument
60 def re_group_1(cls, content: str, pattern: str, **kwargs) -> str: argument
76 def execute(cls, cmd: str, post_processor: Callable[[Text], Text] = lambda x: x) -> Any: argument
Drom_ram_baseline_collector.py33 …def _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size… argument
43 def collect(cls, oh_path: str) -> Dict[str, Dict]: argument
66 cls._put(rom_ram_baseline_dict, subsystem_name,
/developtools/integration_verification/tools/components/
Dget_components.py25 def get_components(cls, config: str, output_file: str): argument
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DTraceSheet.ts120 let cls = tabConfig[key].type;
121 let node = new cls();
/developtools/profiler/hiebpf/include/
Dvmlinux.h6060 __u32 cls; member