/ohos5.0/build/ohos/images/ |
H A D | build_image.py | 17 import os 24 os.path.dirname(os.path.dirname(os.path.dirname( 37 root_dir = os.path.join(os.path.dirname(system_path), 'root') 47 os.symlink('/system/bin', os.path.join(root_dir, 'bin')) 48 os.symlink('/system/bin/init', os.path.join(root_dir, 'init')) 49 os.symlink('/system/etc', os.path.join(root_dir, 'etc')) 50 os.symlink('/vendor', os.path.join(root_dir, 'chipset')) 53 os.symlink('/system/lib', os.path.join(root_dir, 'lib')) 63 os.symlink('bin/init', os.path.join(updater_path, 'init')) 64 os.symlink('/bin', os.path.join(updater_path, 'system/bin')) [all …]
|
/ohos5.0/build/hb/resources/ |
H A D | global_var.py | 19 import os 22 CURRENT_OHOS_ROOT = os.path.dirname(os.path.dirname( 23 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 30 DEFAULT_BUILD_ARGS = os.path.join( 32 DEFAULT_SET_ARGS = os.path.join( 34 DEFAULT_CLEAN_ARGS = os.path.join( 36 DEFAULT_ENV_ARGS = os.path.join( 38 DEFAULT_TOOL_ARGS = os.path.join( 62 CURRENT_SET_ARGS = os.path.join( 66 CURRENT_ENV_ARGS = os.path.join( [all …]
|
/ohos5.0/build/ |
H A D | prebuilts_config.py | 19 import os 49 sha_sums256_path = os.path.join(os.path.dirname(check_url), sha_sums256) 70 os.makedirs(dest) 77 os.unlink(dest) 92 os.makedirs(os.path.dirname(dest_dir), exist_ok=True) 105 …with os.fdopen(os.open(os.path.join(home_path, '.npmrc'), os.O_WRONLY | os.O_CREAT, mode=0o640), '… 110 …with os.fdopen(os.open(os.path.join(download_dir, 'package.json'), os.O_WRONLY | os.O_CREAT, mode=… 142 if not os.path.exists(os.path.join(download_dir, "npm-install.js")): 182 os.open(file_path, os.O_WRONLY | os.O_CREAT, mode=0o640), 'wb') as out_file: 228 after_extract_folder = os.listdir(os.path.join(download_dir, version))[0] [all …]
|
/ohos5.0/foundation/arkui/ace_engine/build/tools/ |
H A D | build_js.py | 16 import os 22 project_path = os.path.abspath(argv[1]) 24 nodejs_path = os.path.abspath(argv[3]) 27 parse5_path = os.path.abspath(argv[6]) 30 buildEnv = os.environ 41 os.makedirs(third_party_target_path); 52 os.makedirs(js2bundle_target_path); 56 os.chdir(js2bundle_target_path) 63 if os.path.exists(target_i18n_path): 66 if os.path.exists(source_i18n_path): [all …]
|
/ohos5.0/build/toolchain/ |
H A D | mini_debug_info.py | 21 import os 27 with os.fdopen(os.open(tmp_file, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file: 31 …with os.fdopen(os.open(symbols_path, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_fil… 70 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file: 73 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file: 82 os.remove(tmp_file1) 83 os.remove(tmp_file2) 88 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'w', encoding='utf-8') as output_file: 91 … with os.fdopen(os.open(tmp_file1, os.O_RDWR | os.O_CREAT), 'r', encoding='utf-8') as output_file: 100 os.remove(tmp_file1) [all …]
|
/ohos5.0/build/scripts/ |
H A D | download_sdk.py | 20 import os 31 cur_dir = os.getcwd() 57 if not os.path.isfile(os.path.join(savepath, filename)): 65 filesize = os.path.getsize(os.path.join(savepath, filename)) 78 if os.path.exists(os.path.join(target_dir, "daily_build.log")): 79 os.remove(os.path.join(target_dir, "daily_build.log")) 80 if os.path.exists(os.path.join(target_dir, "manifest_tag.xml")): 81 os.remove(os.path.join(target_dir, "manifest_tag.xml")) 147 if os.path.exists(os.path.join(default_save_path, product_name)): 162 if os.path.exists(os.path.join(save_path2, os.path.basename(download_url))): [all …]
|
/ohos5.0/base/web/webview/ |
H A D | copy_files.py | 17 import os 21 WORK_SPACE = os.path.dirname(os.path.abspath(__file__)) 22 PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(WORK_SPACE))) 37 if os.path.isdir(dst_dir): 40 if os.path.isdir(src_dir) and os.listdir(src_dir): 53 for item in os.listdir(src_dir): 56 if os.path.isfile(src_file): 88 if os.path.isdir(dst_dir): 93 module_source_files += copy_dir(os.path.join(os.path.join(src_dir, 'bridge'), 'webview'), 95 module_source_files += copy_dir(os.path.join(os.path.join(src_dir, 'cpptoc'), 'webview'), [all …]
|
/ohos5.0/build/ohos/packages/ |
H A D | modules_install.py | 18 import os 22 os.path.dirname(os.path.dirname(os.path.dirname( 23 os.path.abspath(__file__))))) 27 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "rules")) 109 if not os.path.exists(source): 124 if os.path.isdir(source): 153 … relpath = os.path.relpath(os.path.dirname(symlink_src_file), os.path.dirname(symlink_dest_file)) 154 if not os.path.exists(os.path.dirname(symlink_dest_file)): 155 os.makedirs(os.path.dirname(symlink_dest_file), exist_ok=True) 157 os.symlink(os.path.join(relpath, os.path.basename(dest)), symlink_dest_file) [all …]
|
/ohos5.0/build/templates/common/ |
H A D | generate_component_package.py | 18 import os 95 with os.fdopen(os.open(json_path, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 123 with os.fdopen(os.open(json_path, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 163 path = os.path.join(os.path.abspath(src_path), file) 177 … with os.fdopen(os.open(path1, os.O_WRONLY | os.O_CREAT, mode=0o640), "wb") as write_stream: 343 …with os.fdopen(os.open(os.path.join(bundlejson_out, "bundle.json"), os.O_WRONLY | os.O_CREAT, mode… 366 with os.fdopen(os.open(bundlejson_out, os.O_WRONLY | os.O_CREAT, mode=0o640), "w", 388 … with os.fdopen(os.open(readme_out_file, os.O_WRONLY | os.O_CREAT, mode=0o640), 'w') as fp: 485 fd = os.open(gn_path, os.O_WRONLY | os.O_CREAT, mode=0o640) 505 fd = os.open(toolchain_gn_file, os.O_WRONLY | os.O_CREAT, mode=0o640) [all …]
|
/ohos5.0/build/ohos/notice/ |
H A D | collect_module_notice_file.py | 18 import os 22 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) 40 return os.path.exists(os.path.join(current_dir, '.gn')) 48 if os.path.isfile(os.path.join(current_dir, file)): 57 if os.path.isfile(candidate): 80 return os.path.join(os.path.dirname(readme_path), notice_file), notice_name, notice_version 126 os.makedirs(os.path.dirname(output), exist_ok=True) 127 os.makedirs(os.path.dirname(notice_info_json), exist_ok=True) 150 with os.fdopen(os.open(notice_file, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 153 with os.fdopen(os.open(output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), [all …]
|
/ohos5.0/build/indep_configs/scripts/ |
H A D | generate_components.py | 18 import os 81 if os.path.exists(dest_dir) and os.path.islink(dest_dir): 82 os.unlink(dest_dir) 87 os.remove(dest_dir) 88 os.symlink(src_dir, dest_dir) 96 os.remove(link_path) 223 flags = os.O_WRONLY | os.O_CREAT 225 with os.fdopen(os.open(file_name, flags, modes), 'w') as f: 235 flags = os.O_WRONLY | os.O_CREAT 237 with os.fdopen(os.open(platforms_list_gni_file, flags, modes), 'w') as f: [all …]
|
H A D | variants_info_handler.py | 18 import os 46 syscap_json_file = os.path.join(variants_path, 'syscap.json') 49 os.makedirs(syscap_out_path) 50 out_path = os.path.join(syscap_out_path, 'syscap.para') 52 flags = os.O_WRONLY | os.O_CREAT 55 with os.fdopen(os.open(out_path, flags, modes), 'w') as f: 67 flags = os.O_WRONLY | os.O_CREAT 69 with os.fdopen(os.open(syscap_json_out_file, flags, modes), 'w') as f: 80 syscap_out_path = os.path.join(etc_out_path, "param") 86 features_file = os.path.join(variants_path, "features.json") [all …]
|
/ohos5.0/build/lite/testfwk/ |
H A D | lite_testcase_resource_copy.py | 17 import os 22 os.path.dirname(os.path.dirname(os.path.dirname( 23 os.path.abspath(__file__))))) 29 if not os.path.exists(src): 31 if not os.path.exists(dest): 32 os.makedirs(dest, exist_ok=True) 34 for root, _, files in os.walk(src): 39 if os.path.islink(src_path): 44 if not os.path.exists(dest_dir): 171 if not os.path.exists(src_file): [all …]
|
/ohos5.0/build/ohos/sdk/ |
H A D | convert_permissions.py | 16 import os 23 API_PATH = os.path.join(OUTPATH, "api") 30 if os.path.exists(dest) is False: 37 if os.path.exists(dest) is False: 47 tool = os.path.abspath(os.path.join(source_root, permission_convert_tool)) 48 nodejs = os.path.abspath(nodejs) 49 config = os.path.abspath(os.path.join(source_root, config_file)) 50 output_path = os.path.abspath(os.path.join(source_root, permission_gen_path)) 52 cwd=os.path.abspath(os.path.join(source_root, permission_convert_dir)), 60 if os.path.exists(dest): [all …]
|
H A D | parse_public_sdk.py | 17 import os 22 os.path.dirname( 23 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) 31 API_PATH = os.path.join(OUTPATH, "api") 43 if os.path.exists(dest): 50 if os.path.exists: 58 if os.path.exists: 66 if os.path.exists: 74 tool = os.path.abspath(tool) 75 nodejs = os.path.abspath(nodejs) [all …]
|
/ohos5.0/base/startup/init/scripts/ |
H A D | param_cfg_to_code.py | 20 import os 83 f.write('#include <stdint.h>' + os.linesep + os.linesep) 88 f.write('#endif' + os.linesep + os.linesep) 94 f.write('} Node;' + os.linesep + os.linesep) 96 f.write(os.linesep + os.linesep) 106 f.write('};' + os.linesep + os.linesep) 111 f.write('}' + os.linesep) 115 f.write(os.linesep) 148 if not os.path.exists(out_dir): 154 if not os.path.exists(source): [all …]
|
/ohos5.0/build/ohos/testfwk/ |
H A D | testcase_resource_copy.py | 17 import os 23 os.path.dirname(os.path.dirname(os.path.dirname( 24 os.path.abspath(__file__))))) 30 if not os.path.exists(src): 32 if not os.path.exists(dest): 33 os.makedirs(dest, exist_ok=True) 36 for root, _, files in os.walk(src): 41 if os.path.islink(src_path): 46 if not os.path.exists(dest_dir): 176 if not os.path.exists(src_file): [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/test/ |
H A D | hcgen_test.py | 32 import os 84 if hcgen_path.find('hc-gen') >= 0 and os.access(hcgen_path, os.X_OK): 95 source_root = os.path.abspath(os.path.join(TestConfig.WORK_DIR, source_root)) 97 if not os.access(hcgen, os.X_OK): 99 if not os.access(hcgen, os.X_OK): 108 if os.path.isdir(os.path.join(case_path, dir_name)): 138 os.makedirs(output_dir) 276 pwd = pwd[:pwd.rfind(os.sep)] 283 os.mkdir(temp_dir) 290 if os.path.exists(temp_dir): [all …]
|
H A D | update_case.py | 32 import os 52 if hcgen_path.find('hc-gen') >= 0 and os.access(hcgen_path, os.X_OK): 62 source_root = os.path.abspath(os.path.join(TestConfig.WORK_DIR, source_root)) 64 if not os.access(hcgen_path, os.X_OK): 66 if not os.access(hcgen_path, os.X_OK): 76 if os.path.isdir(os.path.join(case_path, directory)): 85 flags = os.O_RDWR | os.O_CREAT 87 with os.fdopen(os.open(result_file_name, flags, modes), 224 pwd = pwd[:pwd.rfind(os.sep)] 233 os.remove(os.path.join(root, file)) [all …]
|
/ohos5.0/build/lite/ |
H A D | gen_module_notice_file.py | 21 import os 29 return os.path.exists(os.path.join(src_path, '.gn')) 35 for file in os.listdir(src_dir): 37 if os.path.isfile(file_path): 45 if not os.path.exists(readme_file_path) or os.path.isdir(readme_file_path): 61 license_file_path = os.path.join(os.path.dirname(readme_file_path), 66 copyright_file_path = os.path.join(os.path.dirname(copyright_file), 78 if os.path.exists(expect_file): 111 while os.path.exists(os.path.join(nf_dest_dir, 122 if not os.path.exists(dir_name): [all …]
|
/ohos5.0/foundation/multimodalinput/input/util/common/include/ |
H A D | table_dump.h | 61 os << "+"; in PrintLine() 83 os << "|"; in PrintHeader() 85 ((os << " ", PrintCentered(os, titles, widths[index++]), os << " |"), ...); in PrintHeader() 86 os << std::endl; in PrintHeader() 92 os << "|"; in PrintRow() 94 ((os << " ", PrintCentered(os, args, widths[index++]), os << " |"), ...); in PrintRow() 95 os << std::endl; in PrintRow() 110 os << std::endl; in DumpFullTable() 113 PrintLine(os, widths); in DumpFullTable() 115 PrintLine(os, widths); in DumpFullTable() [all …]
|
/ohos5.0/base/update/updater/services/ui/strategy/ |
H A D | ui_strategy.cpp | 26 os << info.progressPage << std::endl; in operator <<() 27 os << info.resPage; in operator <<() 28 return os; in operator <<() 33 os << "resPage: {" << std::endl; in operator <<() 36 os << "}" << std::endl; in operator <<() 37 return os; in operator <<() 42 os << "progressPage: {" << std::endl; in operator <<() 46 os << "\tlogoComId: " << info.logoComId << std::endl; in operator <<() 47 os << "\tlogoType: " << info.logoType << std::endl; in operator <<() 48 os << "}"; in operator <<() [all …]
|
/ohos5.0/base/update/packaging_tools/test/ |
H A D | create_package_data.py | 16 import os 91 if not os.path.exists(package_name_path): 92 os.mkdir(package_name_path) 117 if not os.path.exists(updater_config_path): 118 os.mkdir(updater_config_path) 195 if os.path.exists("./%s" % package_name): 197 if os.path.exists("./%s.zip" % package_name): 198 os.remove("./%s.zip" % package_name) 199 if os.path.exists("./partition_file.xml"): 200 os.remove("./partition_file.xml") [all …]
|
H A D | test_build_update.py | 16 import os 54 os.mkdir("./output_test") 65 pkg_re = os.path.join(output, os.listdir(output)[0]).endswith('zip') 80 os.mkdir("./output_test") 92 pkg_re = os.path.join(output, os.listdir(output)[0]).endswith('zip') 143 pkg_re = os.path.join(output, os.listdir(output)[0]).endswith('bin') 185 if os.path.exists(output): 252 os.remove(target_package) 253 os.remove('test.file') 378 os.remove('vendor.img') [all …]
|
/ohos5.0/build/test/example/ |
H A D | mylogger.py | 22 import os 36 self.filename = os.fspath(filename) 56 os.path.abspath(self.filename) + '.' + self.suftime): 74 self.baseFilename = os.path.abspath(self.filename) + "." + self.suftime 77 with os.fdopen(os.open(self.baseFilename, os.O_WRONLT | os.O_CREAT | os.O_EXCL, 85 log_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "log") 86 if not os.path.exists(log_path): 87 os.makedirs(log_path) 88 tfr_handler = SafeFileHandler(os.path.join(log_path, class_name + ".log")) 106 config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "build_example.json") [all …]
|