/ohos5.0/build/hb/resources/ |
H A D | config.py | 84 self.config_update('target_os', self._target_os) 93 self.config_update('target_cpu', self._target_cpu) 102 self.config_update('version', self._version) 120 self.config_update('os_level', self._os_level) 142 self.config_update('root_path', self._root_path) 153 self.config_update('board', self._board) 173 self.config_update('kernel', self._kernel) 184 self.config_update('product', self._product) 210 self.config_update('device_path', self._device_path) 230 self.config_update('out_path', self._out_path) [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/base/ |
H A D | test_base.py | 29 self.name = self.__class__.__name__ 30 self._file_name = self.get_file_name() 31 self.working_dir = self.get_working_dir() 32 self._package_path = self.working_dir 33 self.idl_dir = os.path.join(self.working_dir, "foo") 34 self.output_dir = os.path.join(self.working_dir, "out") 43 self.command = self._command_format.format(self._idl, self._system_attr, self._mode_attr, 45 … self._gen_langauge, self._package_path, self.output_dir) 96 self.command = self._command_format.format(self._idl, self._system_attr, self._mode_attr, 104 hash_command = self._hash_command_format.format(self._idl, self._package_path, [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/ |
H A D | ffrt_trace_process_gui.pyw | 98 …ffrt_process, self.active_process_map, self.switch_log_map = extract_active_pid_and_switch_log(sel… 105 self.pid_list = list(self.active_process_map.keys()) 126 …self.D, self.logs_supplement = process_trace(self.logs, pid, self.active_process_map, self.switch_… 196 … self.D, _ = process_trace(self.logs, pid, self.active_process_map, self.switch_log_map) 219 self.frame00 = Frame(self.window, width=1280, height=200) 224 self.frame001 = Frame(self.frame00, width=50, height=200) 238 self.ffrt_pid_check = ttk.Combobox(self.frame002, textvariable=self.pid) 251 self.ffrt_tid_check = ttk.Combobox(self.frame003, textvariable=self.tid) 259 self.ffrt_taskname_check = ttk.Combobox(self.frame003, textvariable=self.task_name) 285 self.statistics_scroll = ttk.Scrollbar(self.frame10) [all …]
|
/ohos5.0/build/scripts/ |
H A D | cargo2gn.py | 201 self.srcs.append(self.main_src) 205 self.root_pkg_name = self.crate_name 217 self.cfgs = sorted(set(self.cfgs)) 220 self.deps = sorted(set(self.deps)) 221 self.features = sorted(set(self.features)) 333 self.main_src = self.main_src[len(self.cargo_dir) + 1:] 460 self.module_type = self.crate_name 542 self.write(self.error_infos) 581 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line) 611 self.srcs = sorted(set(self.srcs)) [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/testsuits/ |
H A D | test_index.py | 42 def setup(self): argument 44 self.driver.get(self.url) 47 def teardown(self): argument 51 self.driver.refresh() 54 def teardown_class(self): argument 56 self.driver.quit() 428 self.test.click( 446 self.test.click( 477 self.test.click( 482 self.test.click( [all …]
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | file_parser.py | 932 cur_cls = self.parent.get_class(self.parent_name) 1087 self.retval = obj_argument(self, retval) 1088 self.name = self.retval.remove_name() 1663 self.name = self.name[1:] 1670 self.name = self.name[1:] 1675 if self._check_advanced(self.type): 1700 self.result_value = [self._get_basic(val)] 1854 if self.is_byaddr() or self.is_byref(): 1874 if self.is_byref() or self.is_byaddr(): 1908 if not self.is_byref() and not self.is_byaddr(): [all …]
|
/ohos5.0/base/startup/hvb/tools/ |
H A D | hvbtool.py | 79 (self.magic, self.certoffset, self.certsize, self.imagesize, 120 self.mgc, self.major, self.minor = struct.unpack('4s2I', self.cert[0:12]) 121 self.version = '{}.{}'.format(self.major, self.minor) 122 if self.mgc != self.CERTMAGIC: 124 … self.img_org_len, self.img_len, self.partition = struct.unpack('2Q64s', self.cert[48:128]) 131 self.digest_offset, self.digest_size, self.hashtree_offset, self.hashtree_size, \ 134 … self.salt = struct.unpack('{}s'.format(self.salt_size), self.cert[240:240 + self.salt_size]) 136 … self.cert[240 + self.salt_size : 240 + self.salt_size + self.digest_size]) 138 self.algo, self.flags, self.key_offset, self.key_len = struct.unpack('2I2Q', \ 182 self.modulus_bits = self.get_bit_length(self.pubkey) [all …]
|
/ohos5.0/build/ |
H A D | gn_helpers.py | 183 return self.cur == len(self.input) 186 while not self.is_done() and self.input[self.cur] in ' \t\n': 225 if self.input[self.cur] != '=': 243 if not self.is_done() and _is_digit_or_minus(self.input[self.cur]): 245 while not self.is_done() and self.input[self.cur].isdigit(): 258 if self.input[self.cur] != '"': 264 while not self.is_done() and self.input[self.cur] != '"': 286 if self.input[self.cur] != '[': 337 next_char = self.input[self.cur] 354 next_char = self.input[self.cur] [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/ |
H A D | hcs_build_info.py | 27 self.row = 1 28 self.col = 1 37 def dump(self): argument 38 return "<{}:{}:{}: {},'{}'>".format(self.file_name, self.row, self.col, 41 def info(self): argument 42 return "{}:{}:{}".format(self.file_name, self.row, self.col) 51 return "{%s, %s}" % (self.is_eof, self.char) 60 self.data_len = len(self.data) 74 if self.read_index >= self.data_len: 104 self.cur_token.row = self.cur_row [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_tool_settings.py | 35 def __init__(self): argument 37 self.settings = {} 68 if key in self.settings: 122 def get_board_list(self): argument 134 def get_hdi_config(self): argument 164 def __init__(self): argument 188 def get_hdi_passwd(self): argument 189 key = self.passwd_key 192 def get_hdi_group(self): argument 193 key = self.group_key [all …]
|
/ohos5.0/build/hb/services/ |
H A D | preloader.py | 30 def __init__(self): argument 46 self._dirs = Dirs(self._config) 47 self._outputs = Outputs(self._dirs.preloader_output_dir) 48 self._product = Product(self._dirs, self._config) 49 self._all_parts = self._product._parts 50 self._build_vars = self._product._build_vars 51 self._os_level = self._build_vars.get('os_level') 52 self._target_os = self._build_vars.get('target_os') 53 self._target_cpu = self._build_vars.get('target_cpu') 55 self._subsystem_info = self._get_org_subsystem_info() [all …]
|
H A D | loader.py | 60 self.source_root_dir = self.config.root_path + '/' 61 self.gn_root_out_dir = self.config.out_path if not self.config.out_path.startswith( 63 self.os_level = self.config.os_level if self.config.os_level else "standard" 64 self.target_cpu = self.config.target_cpu if self.config.target_cpu else "arm" 65 self.target_os = self.config.target_os if self.config.target_os else "ohos" 69 self.source_root_dir, self.config_output_relpath) 70 self.target_arch = '{}_{}'.format(self.target_os, self.target_cpu) 93 self.build_xts = self.args_dict.get('build_xts') 113 self.variant_toolchains = self._platforms_info.get( 116 self.build_platforms = self._get_build_platforms() [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/sa_test/ |
H A D | test_base.py | 30 self.name = self.__class__.__name__ 31 self._file_name = self.get_file_name() 32 self.working_dir = self.get_working_dir() 34 self.output_dir = os.path.join(self.working_dir, "out") 35 self.target_dir = os.path.join(self.working_dir, "target") 39 …self.command = self._command_format.format(self._idl, self._gen_langauge, self.idl_file, self.outp… 56 self.output_dir = os.path.join(self.working_dir, output_dir) 59 self.target_dir = os.path.join(self.working_dir, target_dir) 65 …self.command = self._command_format.format(self._idl, self._gen_langauge, self.idl_file, self.outp… 94 self.command = self._command_format.format(self._idl, self.idl_file, self._command_attr) [all …]
|
/ohos5.0/base/startup/init/services/modules/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 228 return self.update_list(function_name, self.priority) 234 return self.update_list(function_name, self.blocklist) 299 flag = self.check_allow_list(self.final_allow_list) \ 311 self.final_allow_list |= self.allow_list 312 self.final_priority |= self.priority 319 self.final_allow_list = self.final_allow_list - self.final_priority - \ 503 elif self.arch == 'arm64' or self.arch == 'riscv64': 513 elif self.arch == 'arm64' or self.arch == 'riscv64': 523 elif self.arch == 'arm64' or self.arch == 'riscv64': 795 if not self.bpf_policy or not self.flag: [all …]
|
/ohos5.0/build/config/components/init/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 228 return self.update_list(function_name, self.priority) 234 return self.update_list(function_name, self.blocklist) 299 flag = self.check_allow_list(self.final_allow_list) \ 311 self.final_allow_list |= self.allow_list 312 self.final_priority |= self.priority 319 self.final_allow_list = self.final_allow_list - self.final_priority - \ 503 elif self.arch == 'arm64' or self.arch == 'riscv64': 513 elif self.arch == 'arm64' or self.arch == 'riscv64': 523 elif self.arch == 'arm64' or self.arch == 'riscv64': 795 if not self.bpf_policy or not self.flag: [all …]
|
/ohos5.0/foundation/arkui/ui_lite/tools/server/ |
H A D | tcp_server.py | 55 def __init__(self): argument 59 self.tcp_server_socket.bind((self.IP, self.PORT)) 62 self.config = self.read_data_from_json(self.config_file_name) 74 self.test_case = self.config['testGroup'][self.test_group_index]['test_case'] 75 self.test_case_dir = self.config['testGroup'][self.test_group_index]['test_case_dir'] 78 …self.test_case = self.traverasl_files(self.config['testGroup'][self.test_group_index]['test_case_d… 106 if self.test_group_index >= len(self.config['testGroup']): 117 if self.test_case_index < len(self.test_case): 118 …json_data = self.read_data_from_json(self.test_case_dir + '/' + self.test_case[self.test_case_inde… 127 send_config = self.config['testGroup'][self.test_group_index] [all …]
|
/ohos5.0/build/hb/util/preloader/ |
H A D | preloader_process_data.py | 62 self.built_in_base_dir = os.path.join(self.productdefine_dir, 'base') 85 self._name = "" 101 self._config = self._get_full_product_config() 102 self._version = self._config.get('version', '3.0') 138 self._device_info = self._get_device_info_v2( 144 self._device_info = self._get_device_info_v3(self._config) 146 self._device_info["target_cpu"] = self._ohos_config.target_cpu 148 self._device_info["target_os"] = self._ohos_config.target_os 150 self._device_info[self._ohos_config["compile_config"]] = True 167 self._parts = self._get_base_parts( [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/protocol/iso_fuzzer/ |
H A D | iso_fuzzer.cpp | 53 self->destroy(self); in IsoTest01() 174 self->destroy(self); in IsoTest08() 183 self->destroy(self); in IsoTest09() 193 self->destroy(self); in IsoTest10() 203 self->destroy(self); in IsoTest11() 213 self->destroy(self); in IsoTest12() 222 self->destroy(self); in IsoTest13() 233 self->destroy(self); in IsoTest14() 244 self->destroy(self); in IsoTest15() 255 self->destroy(self); in IsoTest16() [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/protocol/dlspeke_fuzzer/ |
H A D | dlspeke_fuzzer.cpp | 56 self->destroy(self); in DlSpekeTest01() 215 self->destroy(self); in DlSpekeTest08() 226 self->destroy(self); in DlSpekeTest09() 238 self->destroy(self); in DlSpekeTest10() 250 self->destroy(self); in DlSpekeTest11() 262 self->destroy(self); in DlSpekeTest12() 273 self->destroy(self); in DlSpekeTest13() 287 self->destroy(self); in DlSpekeTest14() 301 self->destroy(self); in DlSpekeTest15() 314 self->destroy(self); in DlSpekeTest16() [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_model_enable_operation.py | 24 self.root = root 26 self.board = board 27 self.model = model 28 if self.board.endswith("linux") or self.board.endswith("Hi3516DV300"): 32 self.root, self.vendor, self.board).scan_build() 43 self.contents_makefile = hdf_utils.read_file_lines(self.makefile_path) 81 self.root, self.vendor, self.board) 91 self.root, self.vendor, self.board) 106 if self.model not in self.liteos_model_name: 238 if self.model not in self.scan_makefile(): [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/authcodeimport_fuzzer/ |
H A D | authcodeimport_fuzzer.cpp | 54 self->destroy(self); in AuthCodeImportTest001() 160 self->destroy(self); in AuthCodeImportTest106() 174 self->destroy(self); in AuthCodeImportTest107() 187 self->destroy(self); in AuthCodeImportTest108() 205 self->destroy(self); in AuthCodeImportTest109() 221 self->destroy(self); in AuthCodeImportTest110() 236 self->destroy(self); in AuthCodeImportTest111() 251 self->destroy(self); in AuthCodeImportTest112() 266 self->destroy(self); in AuthCodeImportTest113() 284 self->destroy(self); in AuthCodeImportTest114() [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_predicates.cpp | 40 return self; in EqualTo() 55 return self; in NotEqualTo() 65 return self; in BeginWrap() 75 return self; in EndWrap() 85 return self; in Or() 95 return self; in And() 105 return self; in IsNull() 115 return self; in IsNotNull() 131 return self; in Like() 149 return self; in Between() [all …]
|
/ohos5.0/build/scripts/util/ |
H A D | md5_check.py | 144 self.force or not self.old_metadata or 145 self.old_metadata.strings_md5() != self.new_metadata.strings_md5() 146 or self.old_metadata.files_md5() != self.new_metadata.files_md5()) 153 if (self.force or not self.old_metadata 228 if self.force: 233 if self.old_metadata.strings_md5() != self.new_metadata.strings_md5(): 239 if self.old_metadata.files_md5() == self.new_metadata.files_md5(): 269 def __init__(self): argument 272 self._files = [] 345 self.get_tag(p) for p in sorted(self.iter_paths())) [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/idl-gen/ |
H A D | idl_generator.py | 27 def __init__(self): argument 28 self._idl = [] 30 self._file_list = [] 31 self._key_list = {} 35 def generate(self): argument 40 self._generate_type(self._parse_results[i]) 41 self._generate_interface(self._parse_results[i]) 131 self._idl += "package " + self._get_package(file_path) + ";\n\n" 203 self._idl = ["".join(self._idl)[:-1], ");\n"] 302 self._idl = [] [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/protocol/ecspeke_fuzzer/ |
H A D | ecspeke_fuzzer.cpp | 56 self->destroy(self); in ECSpekeTest01() 223 self->destroy(self); in ECSpekeTest09() 232 self->destroy(self); in ECSpekeTest10() 244 self->destroy(self); in ECSpekeTest11() 256 self->destroy(self); in ECSpekeTest12() 268 self->destroy(self); in ECSpekeTest13() 279 self->destroy(self); in ECSpekeTest14() 293 self->destroy(self); in ECSpekeTest15() 307 self->destroy(self); in ECSpekeTest16() 320 self->destroy(self); in ECSpekeTest17() [all …]
|