/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, 82 def _append(self, key: str, unit: Dict) -> None: 91 def _find_sc(self, gn_path: str): [all …]
|
D | rom_analysis.py | 66 … def _add_rest_dir(cls, top_dir: str, rela_path: str, sub_path: str, dir_list: List[str]) -> None: 104 def _find_files(cls, product_name: str) -> Dict[str, List[str]]: 145 def collect_product_info(cls, product_name: str): 153 …def _put(cls, sub: str, com: str, unit: Dict, rom_size_dict: Dict, com_size_baseline: str = str()): 180 …def _fuzzy_match(cls, file_name: str, filter_path_keyword: Tuple[str] = tuple()) -> Tuple[str, str… 237 def _save_as_xls(cls, result_dict: Dict, product_name: str, baseline: bool) -> None: 299 def _result_unit_adaptive(cls, result_dict: Dict[str, Dict]) -> None: 314 …l_configured(cls, manual_config_info: Dict[str, Dict], compiled_files: Dict[str, List], compiled_r… 333 …late_type(cls, type_list: List[str], gn_info: Dict, gn_info_file: str, base_name: str, rom_ram_bas… 379 … _subsystem_component_for_all_product_file(cls, product_dict: Dict[str, List[str]], query_order: D… [all …]
|
D | misc.py | 61 def gn_lineno_collect(match_pattern: str, project_path: str) -> DefaultDict[str, List[int]]: 120 def run(self, unit: Dict[str, AnyStr]) -> str: 123 def __call__(self, unit: Dict[str, AnyStr]) -> str: 127 def add_prefix(content: str, prefix: str) -> str: 133 def add_postfix(content: str, postfix: str) -> str: 140 def run(self, unit: Dict[str, AnyStr]): 149 def run(self, unit: Dict[str, AnyStr]): 158 def run(self, unit: Dict[str, AnyStr]): 168 def run(self, unit: Dict[str, AnyStr]): 180 def run(self, unit: Dict[str, AnyStr]): [all …]
|
D | get_subsystem_component.py | 30 def get_subsystem_components(ohos_path: str): 79 def export_to_json(subsystem_item: dict, output_filename: str): 106 def is_project(path: str) -> bool: 132 def run(cls, project_path: str, output_path: str = None, save_result: bool = True):
|
/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"): 101 …def __parse_hidumper_mem(cls, content: typing.Text, device_num: str, ss: str = "Pss") -> typing.Di… 109 def find_full_process_name(hname: str) -> str: 115 def process_ps_ef(content: str) -> list: 154 def process_hidumper_info(cls, device_num: str, ss: str) -> typing.Dict[str, int]: 175 def __parse_process_json(cls, file_path: str, result_dict: typing.Dict[str, typing.List[str]]): 199 …def get_elf_info_from_rom_result(cls, rom_result_json: str) -> typing.Dict[str, typing.Dict[str, s… 227 def __parse_process_cfg(cls, cfg_path: str, profile_path: str, result_dict: dict): [all …]
|
D | rom_analyzer.py | 42 def __init__(self, project_path: str) -> None: 47 def _process_single_sa(self, item: str, start_pattern: str): 82 … project_path: Text, extra_info: Dict[str, Dict]) -> Dict[Text, Dict[Text, Text]]: 138 def __save_result_as_excel(cls, result_dict: dict, output_name: str, add_baseline: bool): 193 …t: typing.Dict[Text, Any], result_dict: typing.Dict[Text, Dict], baseline_dict: Dict[str, Any], ad… 226 def result_unit_adaptive(self, result_dict: Dict[str, Dict]) -> None: 240 def analysis(cls, system_module_info_json: Text, product_dirs: List[str],
|
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/ |
D | gn_common_tool.py | 18 def is_gn_variable(cls, target: str, has_quote: bool = True): 44 … def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home") -> tuple: 75 def __find_part_subsystem_from_bundle(cls, gnpath: str, stop_tail: str = "home") -> tuple: 108 … bool, subsystem_var_flag: bool, var_list: List[str], part_cmd: str, subsystem_cmd: str, gn_file: … 145 def find_part_subsystem(cls, gn_file: str, project_path: str) -> tuple: 174 def string_parser(cls, var: str, content: str) -> str: 186 def list_parser(cls, var: str, content: str) -> List[str]:
|
D | rom_ram_baseline_collector.py | 32 …ef _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size:… 41 def collect(cls, oh_path: str) -> Dict[str, Dict]: 42 def post_handler(x: str) -> list:
|
D | basic_tool.py | 22 …def match_paragraph(cls, content: str, start_pattern: str = r"\w+\(\".*?\"\) *{", end_pattern: str… 39 …def find_all_files(cls, folder: str, real_path: bool = True, apply_abs: bool = True, de_duplicate:… 54 def get_abs_path(cls, path: str) -> str: 58 def re_group_1(cls, content: str, pattern: str, **kwargs) -> str: 74 def execute(cls, cmd: str, post_processor: Callable[[Text], Text] = lambda x:x) -> Any:
|
D | simple_excel_writer.py | 10 def __init__(self, default_sheet_name: str = "sheet1"): 43 def __increment_y(self, sheet_name: str, value: int = 1) -> int: 50 def __increment_x(self, sheet_name: str, value: int = 1) -> int: 57 def append_line(self, content: list, sheet_name: str = None): 70 sheet_name: str = None): 78 def set_sheet_header(self, headers: Iterable, sheet_name: str = None): 97 def add_sheet(self, sheet_name: str, cell_overwrite_ok=True) -> Optional[xlwt.Worksheet]: 106 def save(self, file_name: str):
|
/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 _find_gn_variable_list(cls, content: str) -> List: 57 def is_gn_variable(cls, target: str, quote_processed: bool = False): 84 def contains_gn_variable(cls, s: str, quote_processed: bool = False): 94 …def find_variables_in_gn(cls, var_name_tuple: tuple, path: str, stop_tail: str = "home", use_cache… 138 def replace_gn_variables(cls, s: str, gn_path: str, stop_tail: str) -> str: 156 def find_values_of_variable(cls, var_name: str, path: str, stop_tail: str = "home") -> 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 | 30 …def _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size… 39 def collect(cls, oh_path: str) -> Dict[str, Dict]: 50 def post_handler(x:str)->list:
|
D | simple_excel_writer.py | 28 def __init__(self, default_sheet_name: str = "sheet1"): 60 def __increment_y(self, sheet_name: str, value: int = 1) -> int: 67 def __increment_x(self, sheet_name: str, value: int = 1) -> int: 74 def append_line(self, content: list, sheet_name: str = None): 87 sheet_name: str = None): 95 def set_sheet_header(self, headers: Iterable, sheet_name: str = None): 114 def add_sheet(self, sheet_name: str, cell_overwrite_ok=True) -> Optional[xlwt.Worksheet]: 123 def save(self, file_name: str):
|
D | simple_yaml_tool.py | 25 def read_yaml(cls, file_name: str, mode: str = "r", encoding: str = "utf-8") -> Dict:
|
/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 | 49 std::string str; in RandomString() local 65 std::string str = "abbcccdefgh.txt"; variable 79 std::string str = "abbcccdefgh.txt"; variable 92 std::string str = "abbcccdefgh.txt"; variable 106 std::string str = "abbcccdefgh.txt"; variable 121 std::string str = RandomString(STR_MAX_SIZE); variable 138 std::string str = "abbcccdefgh.txt"; variable 155 std::string str = "abbcccdefgh.txt"; variable 173 std::string str = RandomString(STR_MAX_SIZE); variable 190 std::string str = "abbcccdefgh.txt"; variable [all …]
|
D | kernel_symbols_parser_test.cpp | 58 std::string str = std::to_string(RandomNumber()); in RandAddr() local 64 std::string str; in RandomName() local 77 char str = 't'; in RandomType() local 86 std::string str = randAddr + " " + randomType + " " + RandomName; in RandomSymbols() local
|
/developtools/smartperf_host/trace_streamer/test/unittest/ |
D | event_parser_test.cpp | 191 const uint8_t str[] = variable 215 const uint8_t str[] = variable 242 const uint8_t str[] = variable 269 const uint8_t str[] = variable 296 …const uint8_t str[] = "<idle>-0 (-----) [003] d..2 174330.280761: cpu_idle: state=2 cpu_id=3\n… variable 319 const uint8_t str[] = variable 343 …const uint8_t str[] = "ACCS0-2716 ( 2519) [000] d.h1 174330.280382: irq_handler_exit: irq=19 ret=… variable 366 const uint8_t str[] = variable 390 const uint8_t str[] = variable 415 const uint8_t str[] = variable [all …]
|
D | bytrace_parser_test.cpp | 172 std::string str( variable 192 std::string str( variable 212 std::string str( variable 232 std::string str( variable
|
D | proto_reader_test.cpp | 66 std::string str = ""; variable 106 std::string str = ""; variable 175 std::string str = ""; variable 215 std::string str = ""; variable 288 std::string str = ""; variable 331 std::string str = ""; variable 370 std::string str = ""; variable 408 std::string str = ""; variable 446 std::string str = ""; variable 493 std::string 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/profiler/device/plugins/ftrace_plugin/src/ |
D | string_utils.cpp | 17 bool StringUtils::EndsWith(const std::string& str, const std::string& postfix) in EndsWith() 25 bool StringUtils::StartsWith(const std::string& str, const std::string& prefix) in StartsWith() 33 bool StringUtils::Contains(const std::string& str, const std::string& target) in Contains() 38 std::string StringUtils::Strip(const std::string& str) in Strip() 67 std::vector<std::string> StringUtils::Split(const std::string& str, const std::string& sep) in Split()
|
/developtools/smartperf_host/trace_streamer/src/base/ |
D | string_help.cpp | 28 bool StartWith(const std::string& str, const std::string& res) in StartWith() 36 bool EndWith(const std::string& str, const std::string& res) in EndWith() 44 std::vector<std::string> SplitStringToVec(const std::string& str, const std::string& pat) in SplitStringToVec()
|
/developtools/profiler/tools/smaps_show/src/ |
D | main.rs | 140 fn print_smaps_core(infos: Vec<VmStruct>, value_keys: &Vec<(&str, &str)>, info_keys: &Vec<(&str, &s… in print_smaps_core() 186 fn value_to_cell(i: &VmStruct, k: &str, t: &str) -> Cell { in value_to_cell() 199 fn info_to_cell(i: &VmStruct, k: &str, is_summary: bool) -> Cell { in info_to_cell() 297 fn print_usage(program: &str, opts: Options) { in print_usage()
|