| /developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/ |
| D | template_processor.py | 42 project_path: str, 43 result_dict: Dict[str, Dict[str, Dict]], 44 target_type: str, 45 match_pattern: str, 46 sub_com_dict: Dict[str, Dict[str, str]], argument 48 other_info_handlers: Dict[str, Callable[[ 49 Text], Union[str, list]]] = dict(), 51 resource_field: str = None, 90 def _append(self, key: str, unit: Dict) -> None: 99 def _find_sc(self, gn_path: str): [all …]
|
| D | rom_analysis.py | 52 def analysis(cls, product_info: str, product_dict: Dict[str, List[str]], output_file_name: str): 104 def collect_product_info(cls, product_name: str): 112 … def _add_rest_dir(cls, top_dir: str, rela_path: str, sub_path: str, dir_list: List[str]) -> None: 150 def _find_files(cls, product_name: str) -> Dict[str, List[str]]: 191 …def _put(cls, sub: str, com: str, unit: Dict, rom_size_dict: Dict, com_size_baseline: str = str()): 218 …def _fuzzy_match(cls, file_name: str, filter_path_keyword: Tuple[str] = tuple()) -> Tuple[str, str… 285 …def _save_as_xls(cls, result_dict_info: Dict, product_name_info: str, baseline_info: bool) -> None: 340 def _result_unit_adaptive(cls, output_result_dict: Dict[str, Dict]) -> None: 355 …def _match_manual_configured(cls, manual_config_info: Dict[str, Dict], compiled_files: Dict[str, L… 356 … compiled_root_path: str, output_result_dict: Dict[str, Dict]) -> None: [all …]
|
| D | misc.py | 52 def gn_lineno_collect(match_pattern: str, project_path: str) -> DefaultDict[str, List[int]]: 101 def __call__(self, unit: Dict[str, AnyStr]) -> str: 105 def run(self, unit: Dict[str, AnyStr]) -> str: 109 def add_prefix(content: str, prefix: str) -> str: 115 def add_postfix(content: str, postfix: str) -> str: 122 def run(self, unit: Dict[str, AnyStr]): 131 def run(self, unit: Dict[str, AnyStr]): 140 def run(self, unit: Dict[str, AnyStr]): 151 def run(self, unit: Dict[str, AnyStr]): 164 def run(self, unit: Dict[str, AnyStr]): [all …]
|
| D | get_subsystem_component.py | 32 def get_subsystem_components(ohos_path: str): 81 def export_to_json(subsystem_item: dict, output_filename: str): 108 def is_project(path: str) -> bool: 134 def run(cls, project_path: str, output_path: str = None, save_result: bool = True):
|
| /developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/ |
| D | gn_common_tool.py | 33 def is_gn_variable(cls, target: str, has_quote: bool = True): 59 … def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home") -> tuple: 90 def find_part_subsystem(cls, gn_file: str, project_path: str) -> tuple: 118 def __find_part_subsystem_from_bundle(cls, gnpath: str, stop_tail: str = "home") -> tuple: 151 …t_subsystem(cls, part_var_flag: bool, subsystem_var_flag: bool, var_list: List[str], part_cmd: str, 152 … subsystem_cmd: str, gn_file: str, project_path: str) -> Tuple[str, str]: 191 def string_parser(cls, var: str, content: str) -> str: 203 def list_parser(cls, var: str, content: str) -> List[str]:
|
| D | rom_ram_baseline_collector.py | 33 def collect(cls, oh_path: str) -> Dict[str, Dict]: 34 def post_handler(x: str) -> list: 61 …def _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size… 62 bundle_path: str) -> None:
|
| D | basic_tool.py | 39 …def match_paragraph(cls, content: str, start_pattern: str = r"\w+\(\".*?\"\) *{", end_pattern: str… 56 …def find_all_files(cls, folder: str, real_path: bool = True, apply_abs: bool = True, de_duplicate:… 71 def get_abs_path(cls, path: str) -> str: 75 def re_group_1(cls, content: str, pattern: str, **kwargs) -> str: 91 def execute(cls, cmd: str, post_processor: Callable[[Text], Text] = lambda x: x) -> Any:
|
| D | simple_excel_writer.py | 25 def __init__(self, default_sheet_name: str = "sheet1"): 58 def append_line(self, content: list, sheet_name: str = None): 71 sheet_name: str = None): 79 def set_sheet_header(self, headers: Iterable, sheet_name: str = None): 98 def add_sheet(self, sheet_name: str, cell_overwrite_ok=True) -> Optional[xlwt.Worksheet]: 107 def save(self, file_name: str): 110 def __increment_y(self, sheet_name: str, value: int = 1) -> int: 117 def __increment_x(self, sheet_name: str, value: int = 1) -> int:
|
| /developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/ |
| D | basic_tool.py | 39 def get_unit(x: str) -> str: 45 def translate_str_unit(x: str, dest: str, prefix: str = "~") -> float: 70 …def find_files_with_pattern(cls, folder: str, pattern: str = "/**", recursive: bool = True, apply_… 72 post_handler: Callable[[List[str]], List[str]] = None) -> list: 101 …def match_paragraph(cls, content: str, start_pattern: str = r"\w+\(\".*?\"\) *{", end_pattern: str… 118 def re_group_1(cls, content: str, pattern: str, **kwargs) -> str: 134 def abspath(cls, path: str) -> str: 143 def grep_ern(cls, pattern: str, path: str, include: str = str(), exclude: tuple = tuple(), 167 def execute(cls, cmd: str, post_processor: Callable[[Text], Text] = do_nothing) -> Any:
|
| D | gn_common_tool.py | 37 def is_gn_variable(cls, target: str, quote_processed: bool = False): 64 def contains_gn_variable(cls, s: str, quote_processed: bool = False): 74 …def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home", use_cache… 118 def replace_gn_variables(cls, s: str, gn_path: str, stop_tail: str) -> str: 136 def find_values_of_variable(cls, var_name: str, path: str, stop_tail: str = "home") -> list: 163 def _find_gn_variable_list(cls, content: str) -> List: 185 def string_parser(cls, var: str, content: str) -> str: 197 def list_parser(cls, var: str, content: str) -> List[str]:
|
| D | rom_ram_baseline_collector.py | 33 def collect(cls, oh_path: str) -> Dict[str, Dict]: 34 def post_handler(x:str)->list: 61 …def _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size… 62 bundle_path:str) -> None:
|
| D | simple_excel_writer.py | 28 def __init__(self, default_sheet_name: str = "sheet1"): 60 def append_line(self, content: list, sheet_name: str = None): 73 sheet_name: str = None): 81 def set_sheet_header(self, headers: Iterable, sheet_name: str = None): 100 def add_sheet(self, sheet_name: str, cell_overwrite_ok=True) -> Optional[xlwt.Worksheet]: 109 def save(self, file_name: str): 112 def __increment_y(self, sheet_name: str, value: int = 1) -> int: 119 def __increment_x(self, sheet_name: str, value: int = 1) -> int:
|
| D | simple_yaml_tool.py | 25 def read_yaml(cls, file_name: str, mode: str = "r", encoding: str = "utf-8") -> Dict:
|
| /developtools/integration_verification/tools/rom_ram_analyzer/standard/ |
| D | ram_analyzer.py | 40 def verify_hdc(cls, verify_str: str = "OpenHarmony") -> bool: 52 def verify_device(cls, device_num: str) -> bool: 64 def exec(cls, args: list, output_from: str = "stdout"): 83 def analysis(cls, cfg_path: str, json_path: str, rom_result_json: str, device_num: str, 84 … output_file: str, ss: str, output_excel: bool, baseline_file: str, unit_adapt: bool): 131 def process_hidumper_info(cls, device_num: str, ss: str) -> typing.Dict[str, int]: 152 …def get_elf_info_from_rom_result(cls, rom_result_json: str) -> typing.Dict[str, typing.Dict[str, s… 181 def get_process_so_relationship(cls, cfg_path: str, profile_path: str) -> typing.Dict[ 201 …def find_elf_size_from_rom_result(cls, service_name: str, subsystem_name: str, component_name: str, 202 … evaluator: typing.Callable, rom_result_dict: typing.Dict[str, typing.Dict]) -> \ [all …]
|
| D | rom_analyzer.py | 42 def __init__(self, project_path: str) -> None: 57 def _process_single_sa(self, item: str, start_pattern: str): 80 def analysis(cls, system_module_info_json: Text, product_dirs: List[str], 131 def result_unit_adaptive(self, result_dict: Dict[str, Dict]) -> None: 146 … project_path: Text, extra_info: Dict[str, Dict]) -> Dict[Text, Dict[Text, Text]]: 215 def __save_result_as_excel(cls, result_dict: dict, output_name: str, add_baseline: bool): 268 … unit: typing.Dict[Text, Any], result_dict: typing.Dict[Text, Dict], baseline_dict: Dict[str, Any],
|
| /developtools/integration_verification/tools/opensource_tools/src/ |
| D | validate_readme_opensource.py | 36 project_root: str, 37 log_file: Optional[str] = None, 38 reference_data: Optional[List[Dict[str, str]]] = None argument 65 def validate_format(self, readme_path: str) -> bool: 103 def load_reference_data(self, reference_data_path: str): 113 def find_reference_data(self, name: str) -> Optional[Dict[str, str]]: 120 def validate_content(self, readme_path: str) -> bool: 175 def validate_license_file(self, readme_path: str, license_file: str) -> bool: 198 def validate_dependencies(self, dependencies: Optional[List[str]], readme_path: str) -> bool:
|
| /developtools/syscap_codec/tools/ |
| D | syscap_check.py | 66 def bundle_syscap_post_handler(syscap: str) -> str: 70 def read_value_from_json(filepath: str, 95 def collect_syscap_from_codec(filepath: str, pattern: str = r'{"(.*)"') -> tuple: 114 def collect_syscap_from_component(project_path: str, 148 def sdk_syscap_post_handler(syscap: str) -> str: 152 def collect_syscap_from_sdk(ts_path: str, 153 pattern: str = r"\* *@syscap +((?i)SystemCapability\..*)", 206 def print_inconsistent(diff_set: set, a_name: str, b_name: str, table: PrettyTable, 218 …istent(a_diff_b_set: set, b_diff_a_set: set, table: PrettyTable, a_name: str, b_name: str) -> bool: 229 a_name: str, [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
| D | string_utils_test.cpp | 48 std::string str; in RandomString() local 64 std::string str = "abbcccdefgh.txt"; variable 78 std::string str = "abbcccdefgh.txt"; variable 91 std::string str = "abbcccdefgh.txt"; variable 105 std::string str = "abbcccdefgh.txt"; variable 120 std::string str = RandomString(STR_MAX_SIZE); variable 137 std::string str = "abbcccdefgh.txt"; variable 154 std::string str = "abbcccdefgh.txt"; variable 172 std::string str = RandomString(STR_MAX_SIZE); variable 189 std::string str = "abbcccdefgh.txt"; variable [all …]
|
| /developtools/smartperf_host/smartperf_host/trace_streamer/test/unittest/ptreader_parser/ |
| D | event_parser_test.cpp | 186 const uint8_t str[] = variable 209 const uint8_t str[] = variable 235 const uint8_t str[] = variable 261 const uint8_t str[] = variable 282 …const uint8_t str[] = "<idle>-0 (-----) [003] d..2 174330.280761: cpu_idle: state=2 cpu_id=3\n… variable 305 const uint8_t str[] = variable 328 const uint8_t str[] = variable 353 const uint8_t str[] = variable 376 const uint8_t str[] = variable 401 const uint8_t str[] = variable [all …]
|
| /developtools/hdc/src/host/ |
| D | ext_client.cpp | 113 void ExtClient::Version(const std::string &str) in Version() 119 void ExtClient::Help(const std::string &str) in Help() 124 void ExtClient::Discover(const std::string &str) in Discover() 130 void ExtClient::Start(const std::string &str) in Start() 136 void ExtClient::Kill(const std::string &str) in Kill() 142 void ExtClient::Connect(const std::string &str) in Connect() 151 void ExtClient::ListTargets(const std::string &str) in ListTargets() 186 void ExtClient::UpdateList(const string &str) in UpdateList() 202 void ExtClient::Shell(const std::string &str) in Shell() 209 void ExtClient::File(const std::string &str) in File() [all …]
|
| /developtools/smartperf_host/smartperf_host/trace_streamer/src/base/ |
| D | string_help.cpp | 31 bool StartWith(const std::string &str, const std::string &res) in StartWith() 39 bool EndWith(const std::string &str, const std::string &res) in EndWith() 47 std::vector<std::string> SplitStringToVec(const std::string &str, const std::string &pat, uint32_t … in SplitStringToVec() 69 std::string TrimInvisibleCharacters(const std::string &str) in TrimInvisibleCharacters() 84 std::string str = "\""; in FormatString() local 95 std::string Strip(const std::string &str) in Strip() 113 std::string str = input; in StrTrim() local 132 void RemoveNullTerminator(std::string &str) in RemoveNullTerminator() 141 uint32_t StrHash(const std::string &str, uint32_t maxValue) in StrHash()
|
| /developtools/smartperf_host/smartperf_host/trace_streamer/test/unittest/pbreader/ |
| D | proto_reader_test.cpp | 95 std::string str = ""; variable 122 std::string str = ""; variable 170 std::string str = ""; variable 197 std::string str = ""; variable 245 std::string str = ""; variable 275 std::string str = ""; variable 305 std::string str = ""; variable 331 std::string str = ""; variable 357 std::string str = ""; variable 383 std::string str = ""; variable [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | string_utils.cpp | 19 bool StringUtils::EndsWith(const std::string& str, const std::string& postfix) in EndsWith() 27 bool StringUtils::StartsWith(const std::string& str, const std::string& prefix) in StartsWith() 42 bool StringUtils::Contains(const std::string& str, const std::string& target) in Contains() 47 std::string StringUtils::Strip(const std::string& str) in Strip() 76 std::vector<std::string> StringUtils::Split(const std::string& str, const std::string& sep) in Split()
|
| /developtools/integration_verification/tools/components_deps/ |
| D | components_deps_analyzer.py | 26 def analysis(cls, gn_path_list, new_line_nums, gn_name, config_path: str, open_components_path, 27 result_json_name: str): 86 def __get_required_components(cls, config_path: str): 97 def __get_line(cls, txt_list, key_words: str): 104 …def __judge_deps(cls, gn_path: str, new_line_num: str, open_components_list, optional_components, …
|
| /developtools/profiler/host/smartperf/client/client_command/test/unittest/ |
| D | sp_task_test.cpp | 51 … std::string str = "-SESSIONID 12345678 -INTERVAL 1000 -PKG ohos.samples.ecg -c -g -t -p -f -r -o"; variable 60 std::string str = ""; variable 69 std::string str = ""; variable 83 std::string str = ""; variable
|