Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 155) sorted by relevance

1234567

/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
Dtemplate_processor.py42 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 …]
Drom_analysis.py52 def analysis(cls, product_name: str, product_dict: Dict[str, List[str]], output_file_name: str):
101 def collect_product_info(cls, product_name: str):
109 … def _add_rest_dir(cls, top_dir: str, rela_path: str, sub_path: str, dir_list: List[str]) -> None:
147 def _find_files(cls, product_name: str) -> Dict[str, List[str]]:
188 …def _put(cls, sub: str, com: str, unit: Dict, rom_size_dict: Dict, com_size_baseline: str = str()):
215 …def _fuzzy_match(cls, file_name: str, filter_path_keyword: Tuple[str] = tuple()) -> Tuple[str, str…
272 def _save_as_xls(cls, result_dict: Dict, product_name: str, baseline: bool) -> None:
335 def _result_unit_adaptive(cls, result_dict: Dict[str, Dict]) -> None:
350 …l_configured(cls, manual_config_info: Dict[str, Dict], compiled_files: Dict[str, List], compiled_r…
369 …late_type(cls, type_list: List[str], gn_info: Dict, gn_info_file: str, base_name: str, rom_ram_bas…
[all …]
Dmisc.py52 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 …]
Dget_subsystem_component.py32 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/
Dgn_common_tool.py33 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,
152subsystem_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]:
Drom_ram_baseline_collector.py33 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:
Dbasic_tool.py39 …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:
Dsimple_excel_writer.py25 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/
Dbasic_tool.py39 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:
Dgn_common_tool.py37 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]:
Drom_ram_baseline_collector.py30 def collect(cls, oh_path: str) -> Dict[str, Dict]:
41 def post_handler(x:str)->list:
64 …def _put(cls, result_dict: Dict, subsystem_name: str, component_name: str, rom_size: str, ram_size…
Dsimple_excel_writer.py28 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:
Dsimple_yaml_tool.py25 def read_yaml(cls, file_name: str, mode: str = "r", encoding: str = "utf-8") -> Dict:
/developtools/integration_verification/tools/rom_ram_analyzer/standard/
Dram_analyzer.py40 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,
84output_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 …]
Drom_analyzer.py42 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/syscap_codec/tools/
Dsyscap_check.py66 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 …]
Dsyscap_collector.py36 def dict_to_json(output_path: str, syscaps_dict: dict):
58 def check_syscap(syscap_str: str):
80 def read_json_file(bundle_json_path: str):
97 def get_all_components_path(components_file_path: str):
107 def path_component_to_bundle(path: str) -> str:
132 def format_component_path(component_path: str):
139 def traversal_path(parts_path_info: dict, project_path: str, product_define_dict):
155 def collect_all_product_component_syscap_dict(parts_path_info: dict, project_path: str, product_def…
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dstring_utils_test.cpp49 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 …]
/developtools/smartperf_host/trace_streamer/test/unittest/ptreader_parser/
Devent_parser_test.cpp191 const uint8_t str[] = variable
214 const uint8_t str[] = variable
240 const uint8_t str[] = variable
266 const uint8_t str[] = variable
287 …const uint8_t str[] = "<idle>-0 (-----) [003] d..2 174330.280761: cpu_idle: state=2 cpu_id=3\n… variable
310 const uint8_t str[] = variable
333 const uint8_t str[] = variable
358 const uint8_t str[] = variable
381 const uint8_t str[] = variable
406 const uint8_t str[] = variable
[all …]
/developtools/hdc/src/host/
Dext_client.cpp113 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/trace_streamer/test/unittest/pbreader/
Dproto_reader_test.cpp94 std::string str = ""; variable
121 std::string str = ""; variable
169 std::string str = ""; variable
196 std::string str = ""; variable
244 std::string str = ""; variable
274 std::string str = ""; variable
304 std::string str = ""; variable
330 std::string str = ""; variable
356 std::string str = ""; variable
382 std::string str = ""; variable
[all …]
/developtools/smartperf_host/trace_streamer/src/base/
Dstring_help.cpp29 bool StartWith(const std::string &str, const std::string &res) in StartWith()
37 bool EndWith(const std::string &str, const std::string &res) in EndWith()
45 std::vector<std::string> SplitStringToVec(const std::string &str, const std::string &pat) in SplitStringToVec()
65 std::string TrimInvisibleCharacters(const std::string &str) in TrimInvisibleCharacters()
80 std::string str = "\""; in FormatString() local
91 std::string Strip(const std::string &str) in Strip()
107 void RemoveNullTerminator(std::string &str) in RemoveNullTerminator()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dstring_utils.cpp17 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/integration_verification/tools/components_deps/
Dcomponents_deps_analyzer.py26 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/smartperf_host/ide/test/trace/component/trace/sheet/frequsage/
DTabPaneFreqDataCut.test.ts303 let str = ''; variable
326 let str = ''; variable
349 let str = ''; variable
372 let str = ''; variable
648 let str = ''; variable
671 let str = ''; variable
694 let str = ''; variable
717 let str = ''; variable

1234567