/applications/standard/app_samples/code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer/entry/src/main/js/MainAbility/model/ |
H A D | RemoteDeviceModel.js | 61 var list = this.#deviceManager.getAvailableDeviceListSync() 62 logger.debug(TAG, `getTrustedDeviceListSync end, deviceList=${JSON.stringify(list)}`) 63 if (typeof (list) != 'undefined' && typeof (list.length) != 'undefined') { 64 this.deviceList = list 79 logger.debug(TAG, `ready, updated device list=${JSON.stringify(this.deviceList)}`) 81 let list = this.deviceManager.getAvailableDeviceListSync() 82 logger.debug(TAG, `getTrustedDeviceListSync end, deviceList=${JSON.stringify(list)}`) 83 if (typeof (list) !== 'undefined' && typeof (list [all...] |
/applications/standard/app_samples/code/SuperFeature/DistributedAppDev/DistributeCalc/entry/src/main/js/MainAbility/common/ |
H A D | RemoteDeviceModel.js | 53 let list = new Array() 56 list[i] = device 59 this.deviceList = list 60 logger.debug(TAG, `ready, device list = ${JSON.stringify(device)}`) 69 logger.debug(TAG, `offline, device list= ${JSON.stringify(this.deviceList)}`) 76 logger.debug(TAG, `online, device list= ${JSON.stringify(this.deviceList)}`) 86 let list = [] 89 list[j] = device 92 this.deviceList = list 94 logger.info(TAG, `offline, updated device list [all...] |
/build/tools/component_tools/static_check/gn_check/ |
H A D | check_gn.py | 82 target = list() # 每个文件中的target 90 def get_all_abs_path(self) -> list: 94 list: list中的元素是字典,每个字典中是一条绝对路径的信息 97 ret_list = list() 102 return list() 126 bad_targets_to_excel = list() 157 bad_targets_to_excel = list() 170 subsys_comp = list() 198 bad_targets_to_excel = list() [all...] |
H A D | check_gn_online.py | 36 self.err_info = list() 42 row_range = list() 68 def check_have_product_name(self, key: str, line: list) -> None: 85 def check_abs_path(self, key: str, line: list) -> None: 89 abs_info = list() 176 for key in list(self.gn_data.keys()):
|
/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_json_check.py | 31 def check_all_bundle_json(path: str) -> list: 77 def get_all_bundle_json(path: str = '.') -> list: 154 - ``__lines`` : 表示将该 josn 文件转为 list 类型后的内容。 159 - ``readlines()`` : 返回该 bundle.json 以每一行内容为元素的 list。 161 - ``check()`` : 静态检查该 bundle.json,返回错误告警 list。 184 def readlines(self) -> list: 198 def check(self) -> list: 261 def check_segment(self) -> list: 297 def check_component(self) -> list: 320 def _check_component_name(self, component: dict, component_line: int, bundle_error_component: list) [all...] |
/build/templates/common/ |
H A D | check_deps_handler.py | 27 def check_third_party_deps(args, dep_part: str, parts_deps_info: dict, _tips_info: dict, third_deps_allow_list: list): 49 def load_part_info(depfiles: list): 73 def get_path_from_module_list(cur_part_name: str, depfiles:list) -> str: 90 def get_part_pattern(cur_part_name: str, parts_path_info: dict, path_parts_info: dict, depfiles: list) -> list: 116 def check_part_deps(args, part_pattern: str, path_parts_info: dict, compile_standard_allow_info: dict, depfiles: list): 169 def check(args) -> list:
|
/build/scripts/util/ |
H A D | build_utils.py | 90 """Converts a command-line parameter into a list. 92 If the input starts with a '[' it is assumed to be a GN-formatted list and 93 it will be parsed accordingly. When empty an empty list will be returned. 96 removed) and a list will be returned containing that string. 406 """Creates a zip file from a list of files. 409 inputs: A list of paths to zip, or a list of (zip_path, fs_path) tuples. 528 """Gets the list of all transitive dependencies in sorted order. 533 top: A list of the top level nodes 534 deps_func: A function that takes a node and returns a list o [all...] |
/build/scripts/ |
H A D | copy_ex.py | 36 items = list(itr) 44 def _do_copy_tree(items: list, 107 deps: list, 134 def do_copy(options, deps: list): 136 files = list( 153 def do_renaming(options, deps: list): 157 src_files = list( 161 dest_files = list(
|
H A D | cargo2gn.py | 86 # to sort crates in a list 90 def get_designated_pkg_info(lines: list, designated: str): 157 self.cfgs = list() 158 self.core_deps = list() # first part of self.deps elements 159 self.crate_types = list() 160 self.deps = list() 161 self.features = list() 162 self.ignore_options = list() 163 self.srcs = list() # main_src or merged multiple source files 164 self.shared_libs = list() # [all...] |
/build/hb/services/ |
H A D | gn.py | 148 gn_path_cmd = list(set(gn_path_cmd)) 173 gn_desc_cmd = list(set(gn_desc_cmd)) 257 '''Description: Convert all registed args into a list 259 @return: list of all registed args 262 def _convert_args(self) -> list: 275 elif isinstance(value, list): 280 '''Description: Convert all registed flags into a list 282 @return: list of all registed flags 285 def _convert_flags(self) -> list: 289 if key == 'gn_flags' and isinstance(value, list) [all...] |
H A D | ninja.py | 77 def _convert_args(self) -> list: 78 """convert all registed args into a list 82 if key == 'build_target' and isinstance(value, list): 84 elif key == 'ninja_args' and isinstance(value, list):
|
H A D | menu.py | 61 if config.support_cpu is not None and isinstance(config.support_cpu, list): 138 def _list_promt(self, name: str, message: str, choices: list, **kwargs): 139 questions = self._get_questions('list', name, message, choices) 143 def _get_questions(self, promt_type: str, name: str, message: str, choices: list): 154 def _prompt(self, questions: list, answers=None, **kwargs): 312 def __init__(self, choices: list, **kwargs): 327 def _init_choices(self, choices: list, default=None): 329 self.choices = [] # list (name, value, disabled) 351 def append(index: int, choice: list):
|
H A D | hpm.py | 143 '''Description: Convert all registed args into a list 145 @return: list of all registed args 148 def _convert_args(self) -> list: 161 elif isinstance(value, list): 166 '''Description: Convert all registed flags into a list 168 @return: list of all registed flags 171 def _convert_flags(self) -> list: 188 def _check_parts_validity(self, components: list):
|
/build/ohos/update/ |
H A D | check_abi_and_copy_deps.py | 29 def get_value_from_file(file: str, target: list, key: str, must: bool = True): 51 def get_valid_deps(module_deps: list, finish_list: list): 128 def get_copy_source_path(element: list): 137 def traverse_and_check(check_list: list, readelf: str, abidiff: str, abidw: str, abi_dumps_path: str): 183 def get_copy_output_path(element: list, parent_output: str): 231 if isinstance(copy_element[1], list):
|
/build/test/example/ |
H A D | performance_test.py | 123 self.system_info = list() 124 self.ninjia_trace_list = list() 125 self.gn_exec_li = list() 126 self.gn_script_li = list() 127 self.gn_end_li = list() 128 self.ccache_li = list() 129 self.c_targets_li = list() 134 self.cost_time_res = list() 147 self.error_message = list() 280 data = defaultdict(list) [all...] |
/build/hb/util/ |
H A D | type_check_util.py | 49 def tile_list(value: list) -> list: 52 if isinstance(entity, list):
|
H A D | system_util.py | 36 def exec_command(cmd: list, log_path='out/build.log', exec_env=None, log_mode='normal', **kwargs): 100 return list(self._env.keys()) 105 def allow(self, allowed_vars: list):
|
/build/ohos/sdk/ |
H A D | check_sdk_completeness.py | 36 def parse_sdk_check_list(sdk_check_list: list): 131 def get_redundant_set(sdk_check_list: list): 145 def get_unpacked_directories(sdk_check_list: list): 157 def get_missing_set(sdk_check_list: list): 169 def output_the_verification_result(sdk_check_list: list): 177 print("SDK package is less than SDK delivery list, missing: {}.".format(sdk_package_missing_set)) 178 print("SDK package is more than SDK delivery list, extra: {}.".format(sdk_package_redundant_set)) 181 print("SDK package is less than SDK delivery list, missing: {}.".format(sdk_package_missing_set)) 184 print("SDK package is more than SDK delivery list, extra: {}.".format(sdk_package_redundant_set)) 190 parser.add_argument('--sdk-delivery-list') [all...] |
H A D | parse_sdk_description.py | 70 def add_target(item: dict, target: str, sdk_systems: list): 82 def write_sdk_build_gni(sdk_targets: list, build_only_targets: list, gni: str): 143 variant = list(set(platforms) - set([base]))
|
/build/ohos/packages/ |
H A D | resources_collect.py | 63 def collect_testcase(resources_dir_list: list, parts_info: dict, output_base_dir: str): 89 def collect_test_mlf(resources_dir_list: list, parts_info: dict, output_base_dir: str): 120 def collect_libs_symbols(resources_dir_list: list, parts_info: dict, output_base_dir: str): 166 def collect_kits_modules(resources_dir_list: list, parts_info: dict, output_base_dir: str): 171 def collect_innerkits_modules(resources_dir_list: list, parts_info: dict, output_base_dir: str): 176 def collect_resources(collect_type: str, resources_dir_list: list, parts_info: dict, 199 parser.add_argument('--resources-dir-list', nargs='+', default=[])
|
/build/ohos/sa_profile/sa_info_process/ |
H A D | sort_sa_by_bootphase.py | 88 def check_depend(cur_systemability: str, deps_count: int, dependencies: list, depend_path: list): 146 def __detect_invert_dependency(self, systemability: list, depend): 191 def __detect_creation_dependency(self, systemability: list, depend): 273 def check_index(systemabilities: list, dependency, idx_self: int): 284 def inner_category_sort(systemabilities: list):
|
/build/ohos/testfwk/ |
H A D | testcase_resource_copy.py | 29 def copy_dir(src: str, dest: str) -> list: 55 part_build_out_path: str, resource_output_path: str) -> list: 106 part_build_out_path: str, resource_output_path: str) -> list: 146 resource_output_path: str) -> list: 172 def copy_testcase_resources(resource_infos: list) -> list: 265 part_build_out_path: str, resource_output_path: str) -> list: 280 part_build_out_path: str, resource_output_path: str) -> list:
|
/build/indep_configs/scripts/ |
H A D | gn_ninja_cmd.py | 24 def _run_cmd(cmd: list): 44 def _get_all_features_info(root_path, variants) -> list: 59 elif isinstance(value, list):
|
/build/ohos/images/mkimage/ |
H A D | judge_updater_image.py | 28 def get_needed_lib(file_path: str) -> list: 45 def judge_lib_available(lib_name: str, lib_chain: list, available_libs: list, lib_to_path: dict) -> bool:
|
/build/tools/ |
H A D | product_config_version_convert.py | 57 subsystems_list = list() 62 subsystem_list = list() 67 components_list = list()
|