Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 109) sorted by relevance

12345

/build/lite/hb_internal/env/
Denv.py45 hb_info('necessary_package: {}'.format(','.join(packages_info[0])))
46 hb_info('installed_package: {}'.format(','.join(packages_info[1])))
47 hb_info('uninstalled_package: {}'.format(','.join(packages_info[2])))
60 hb_info('root path: {}'.format(root_path))
61 hb_info('board: {}'.format(board))
62 hb_info('kernel: {}'.format(kernel))
63 hb_info('product: {}'.format(product))
64 hb_info('product path: {}'.format(product_path))
65 hb_info('device path: {}'.format(device_path))
66 hb_info('device company: {}'.format(device_company))
[all …]
/build/loader/
Dgenerate_targets_gn.py87 parts_list_content = '"{}",'.format('",\n "'.join(parts_list))
89 parts_list_gni_template.format(parts_list_content))
94 inner_kits_content = '"{}",'.format('",\n "'.join(inner_kits_list))
98 inner_kits_gni_template.format(inner_kits_content))
103 system_kits_content = '"{}",'.format('",\n "'.join(system_kits_list))
107 system_kits_gni_template.format(system_kits_content))
112 test_list_content = '"{}",'.format('",\n "'.join(parts_test_list))
116 parts_test_gni_template.format(test_list_content))
126 phony_target_list.append('{}_phony'.format(part_name))
128 phony_group_template.format(part_name, part_label))
[all …]
Dload_bundle_file.py32 raise Exception("file '{}' doesn't exist.".format(
36 raise Exception("read file '{}' failed.".format(
43 _tip_info = "bundle.json info is incorrect in '{}'".format(
46 raise Exception("{}, 'component' is required.".format(_tip_info))
50 "{}, 'component.name' is required.".format(_tip_info))
53 "{}, 'component.subsystem' is required.".format(_tip_info))
56 "{}, 'component.build' is required.".format(_tip_info))
60 … "{}, 'component.build.sub_component' or 'component.build.group_type' is required.".format(
67 raise Exception("{}, incorrect group type".format(_tip_info))
85 _key = '{}:{}'.format(_subsystem_name, _part_name)
Dload_ohos_build.py75 label = '//{}/{}'.format(path, label)
81 "config file '{}' doesn't exist.".format(bundle_file))
84 raise Exception("read file '{}' failed.".format(bundle_file))
92 "config file '{}' doesn't exist.".format(ohos_build_file))
95 raise Exception("read file '{}' failed.".format(ohos_build_file))
106 _real_name = '{}_{}'.format(part_name, variant_name)
129 lib_config.append(' type = "{}"'.format(lib_type))
130 lib_config.append(' name = "{}"'.format(label))
137 lib_config.append(' "{}",'.format(h_file))
140 lib_config.append(' header_base = "{}"'.format(header_base))
[all …]
Dplatforms_loader.py39 raise Exception("config file '{}' doesn't exist.".format(
43 raise Exception("read file '{}' failed.".format(
57 raise Exception(error_info.format(_name))
58 arch = "{}_{}".format(target_os, target_cpu)
72 raise Exception(error_info.format(_name))
73 arch = "{}_{}".format(target_os, target_cpu)
86 "config file '{}' doesn't exist.".format(platform_config_file))
90 "read file '{}' failed.".format(platform_config_file))
114 'target_platforms', "{}.build".format(_platform_name))
124 _platform_config_file = '{}.build'.format(_platform_name)
/build/lite/hb_internal/common/
Dmisc.py77 '{}/build/scripts/util/pyd.py'.format(self._root_path),
89 os.rename(logfile, '{}/build.{}.log'.format(self._out_path, mtime))
122 'python3', '{}/build/scripts/util/pyd.py'.format(self._root_path),
129 'python3', '{}/build/scripts/util/pyd.py'.format(self._root_path),
136 'python3', '{}/build/scripts/util/pyd.py'.format(self._root_path),
151 'python3', '{}/build/scripts/summary_ccache_hitrate.py'.format(
152 self._root_path), '{}/{}'.format(self._root_path, ccache_log_file_name)
159 '{}/build/scripts/get_warnings.py'.format(self._root_path),
161 '{}/build.log'.format(self._out_path),
163 '{}/packages/WarningList.txt'.format(self._out_path),
[all …]
/build/scripts/
Dninja_rules_parser.py27 raise Exception("file '{}' doesn't exist.".format(subninja_build_file))
30 raise Exception("read file '{}' failed.".format(subninja_build_file))
59 start_index = len('{}/obj/'.format(toolchain_name))
64 _label_path = '{}$:{}'.format(_path, label_name)
72 "file '{}' doesn't exist.".format(toolchain_ninja_file))
75 raise Exception("read file '{}' failed.".format(toolchain_ninja_file))
100 "file '{}' doesn't exist.".format(variants_toolchain_info_file))
104 "read file '{}' failed.".format(variants_toolchain_info_file))
111 raise Exception("file '{}' doesn't exist.".format(build_ninja_file))
114 raise Exception("read file '{}' failed.".format(build_ninja_file))
[all …]
Dtools_checker.py30 print("Running: {}".format(' '.join(cmd)))
66 _build_package_list = file_json["{}".format(_version)]["dep_package"]
72 format(pkg))
95 print("\033[33m OS {} is not supported for ohos build.\033[0m".format(
105 format(host_version))
106 print("\033[33m Available OS version are {}.\033[0m".format(
Dinterface_mgr.py38 sys.stdout.write("read file failed. {}".format(err))
57 "subsystem sdk out dir '{}' not exist or not dir".format(
72 check_content.append('{} {}'.format(h_file, file_sha256))
98 'sdk base dir [{}] does not exist.'.format(sdk_base_dir))
123 format(subsystem_name, module_name, check_file))
135 'the number of files is different.').format(
144 format(subsystem_name, module_name, h_file))
/build/tools/module_dependence/
Ddependence_analysis.py24 search_str = "{}/**/*{}".format(search_path, "_external_deps_temp.json")
36 "file '{}' doesn't exist.".format(_external_deps_file))
40 "read file '{}' failed.".format(_external_deps_file))
45 module_alias = '{}:{}'.format(part_name, module_name)
63 raise Exception("file '{}' doesn't exist.".format(_deps_file))
66 raise Exception("read file '{}' failed.".format(_deps_file))
69 module_alias = '{}:{}'.format(part_name, module_name)
82 "module '{}' external deps info is incorrect.".format(
Dmodule_deps_tree.py27 print("file '{}' doesn't exist.".format(input_file))
35 print("The file '{}' format is incorrect.".format(input_file))
75 node_name = "{}:{}".format(new_part_name, module_name)
79 "module '{}' doesn't exist.".format(old_node_name))
81 print("Warning! module '{}' doesn't exist.".format(
142 "{}.html".format(node_name.replace(":", "__")))
143 tree_title = "{} module dependency tree".format(node_name)
161 print('module deps tree output to {}'.format(output_file))
/build/scripts/util/
Dpycache.py30 possible_dir_cache_artifact = '{}.directory'.format(cache_artifact)
37 print('Retrieve {} from cache'.format(obj))
46 print('Extract {} from cache'.format(obj))
49 print('Failed to retrieve {} from cache'.format(obj))
62 dir_cache_artifact = '{}.directory'.format(cache_artifact)
65 print("archive {} to {}".format(obj, dir_cache_artifact))
69 print("copying {} to {}".format(obj, cache_artifact))
83 _, cache_artifact = self.descend_directory('{}{}'.format(
97 _, cache_artifact = self.descend_directory('{}{}'.format(
108 daemon_config_file = '{}/.config'.format(self.pycache_dir)
Dfile_utils.py25 print("file '{}' doesn't exist.".format(input_file))
33 print("The file '{}' format is incorrect.".format(input_file))
36 print("read file '{}' failed.".format(input_file))
44 print("file '{}' doesn't exist.".format(input_file))
53 print("read file '{}' failed".format(input_file))
Dpyd.py34 def log_message(self, format, *args): # pylint: disable=redefined-builtin argument
36 super().log_message(format, *args)
118 print('pycache hit targets: {}'.format(self.hit_times))
119 print('pycache miss targets: {}'.format(self.miss_times))
122 print('pycache hit rate: {:.2f}%'.format(hit_rate))
123 print('pycache miss rate: {:.2f}%'.format(miss_rate))
138 print('Starting pycache daemon at {}:{}'.format(host, port))
150 daemon_config_file = '{}/.config'.format(cache_dir)
152 raise Exception('Warning: {} not exists'.format(daemon_config_file))
/build/
Dprebuilts_download.py66 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
68 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
70 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
80 progress.console.log('Requesting {}'.format(url))
84 progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red')
91 progress.console.log("Downloaded {}".format(local_file))
94 progress.console.log("Decompressing {}".format(local_file))
96 progress.console.log("Decompressed {}".format(local_file))
101 print('Requesting {}, please wait'.format(url))
105 print("Failed to open {}, HTTPError: {}".format(url, e.code))
[all …]
/build/ohos/notice/
Dcollect_system_notice_files.py54 "{}.txt".format(module_info['dest'][0]))
58 if os.path.isfile("{}.json".format(module_info['notice'])):
59 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
60 shutil.copyfile("{}.json".format(module_info['notice']), "{}.json".format(dest))
69 if os.path.isfile("{}.json".format(file)):
70 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
71 shutil.copyfile("{}.json".format(file), "{}.json".format(dest))
Dcollect_module_notice_file.py63 raise Exception("Error: failed to read {}.".format(readme_path))
69 raise Exception("Error: value of notice file is empty in {}.".format(
72 raise Exception("Error: Name of notice file is empty in {}.".format(
75 raise Exception("Error: Version Number of notice file is empty in {}.".format(
89 … module_notice_info['Software'] = "{} {}".format(notice_file_info[1], notice_file_info[2])
99 … module_notice_info['Software'] = "{} {}".format(notice_file_info[1], notice_file_info[2])
107 … module_notice_info['Software'] = "{} {}".format(notice_file_info[1], notice_file_info[2])
111 module_notice_info['Path'] = "/{}".format(options.module_source_dir[5:])
116 notice_info_json = '{}.json'.format(output)
Dmerge_notice_files.py83 if os.path.isfile("{}.json".format(file)):
84 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
85 shutil.copyfile("{}.json".format(file), "{}.json".format(dest))
113 output_file, '/{}'.format(
120 json_filename = '{}.json'.format(filename)
128 write_file(output_file, "Software: {}".format(software_name))
129 write_file(output_file, "Path: {}".format(notice_source_path))
172 .format(file_key, get_entity(temp_file_hd.read())))
186 notice_file = '{}.txt'.format(zip_file[:-4])
232 zipfiles = glob.glob('{}/**/*.zip'.format(notice_dir), recursive=True)
[all …]
/build/templates/common/
Dexternal_deps_handler.py45 "external dep part '{}' doesn't exist.".format(external_part_name))
53 "part '{}' doesn't exist.".format(adapted_part_name))
58 "external dep module '{}' doesn't exist in part '{}'.".format(
62 "external dep module '{}' doesn't exist in part '{}'.".format(
73 raise Exception("part '{}' doesn't exist in sdk modules.".format(
84 raise Exception("part '{}' doesn't exist sdk modules.".format(
89 "external dep module '{}' doesn't exist in part '{}'.".format(
94 "external dep module '{}' doesn't exist in part '{}'.".format(
198 "external deps part '{}' variants info is None.".format(
202 dep_label_with_tc = "{}({})".format(dep_label, toolchain)
[all …]
Dget_subsystem_name.py36 "file '{}' does not exist.".format(part_subsystem_info_file))
41 "read file '{}' failed.".format(part_subsystem_info_file))
45 raise Exception("subsystem name error, part_name='{}'".format(
/build/lite/
Dutils.py47 print('file [{}] no exist.'.format(input_file))
74 print('you can check build log in {}'.format(log_path))
75 raise Exception("{} failed, return code is {}".format(cmd, ret_code))
86 raise Exception("{} failed, failed log is {}".format(cmd, ret))
96 raise Exception("{} makedirs failed".format(path))
98 raise Exception("{} exists, makedirs failed".format(path))
112 raise Exception('{} not found in callback dict'.format(event))
/build/tools/component_tools/
Dgenerate_kconfig.py37 return KCONFIG_STR.format(name, comment)
40 return PROPERTIES_STR.format(name, comment)
43 return KMENU_STR.format(name)
70 result += create_property("property$${}".format(prop), prop)
77 result += create_config("{}$${}".format(subsys_name, component_name), component_name)
78 result += create_feature("{}$${}".format(subsys_name, component_name))
/build/ohos/sa_profile/
Dsrc_sa_profile_process.py29 raise Exception("read file '{}' failed.".format(sa_profile_infos))
35 "get part name failed in sa info, part_name='{}'".format(
40 part_name = '{}_{}'.format(origin_part_name, platform_name)
61 "read file '{}' failed.".format(args.variants_toolchain_file))
/build/ohos/packages/
Dhigh_privilege_process_validate.py90 print("Cfg location: {}".format(self.loc))
159 …print("Name: {}\nuid: {}\ngiven uid: {}\ngid: ".format(i[0], i[1].uid, i[1].related_item.uid), end…
169 print("Cfg location: {}".format(i[1].loc))
182 … print("Error: {}is not a valid whilelist, it has not a wanted field name".format(process_path))
245 parse_cfg_file("{}/{}".format(cfg_dir, file))
255 print("High-privilege process check skipped: file [{}] not exist".format(sys_cfg_folder))
260 print("High-privilege process check skipped: file [{}] not exist".format(vendor_cfg_folder))
265 print("High-privilege process check skipped: file [{}] not exist".format(process_path))
/build/ohos/statistics/
Dbuild_overlap_statistics.py106 pattern = '{}*'.format(path)
108 pattern = '../../{}*'.format(path)
127 print('{} targets overlap rate statistics'.format(program_language))
128 print('{:16}\t{:8}\t{:5}\t{:8}\t{:5}\t{:4}'.format(
133 print('{:16}\t{:8}\t{:2.1f}%\t{:8}\t{:2.1f}%\t{:.2f}'.format(
137 print('\n{} overall build overlap rate: {:.2f}\n\n'.format(

12345