/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | async_fs.rs | 30 let file_path = "tmp_file1"; in sdv_async_fs_write() localVariable 59 let file_path = "tmp_file2"; in sdv_async_fs_read() localVariable 94 let file_path = "tmp_file3"; in sdv_async_fs_rw() localVariable 103 .open(file_path) in sdv_async_fs_rw() 162 let file_path = "tmp_file4"; in sdv_async_fs_read_to_end() localVariable 188 let file_path = "tmp_file5"; in sdv_async_fs_seek() localVariable 251 let file_path = "tmp_file6"; in sdv_async_fs_set_permission() localVariable 275 let file_path = "tmp_file7"; in sdv_async_fs_sync_all() localVariable 303 let file_path = "tmp_file8"; in sdv_async_fs_set_len() localVariable 323 let file_path = "tmp_file9"; in sdv_async_fs_try_clone() localVariable [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/ |
H A D | async_dir.rs | 748 let file_path = "file0.txt"; in ut_fs_create_remove_file() localVariable 781 let file_path = "file1.txt"; in ut_fs_rename() localVariable 804 let file_path = "file2.txt"; in ut_fs_write_and_read_to_string() localVariable 830 let file_path = "file3.txt"; in ut_fs_write_and_read() localVariable 854 let file_path = "file4.txt"; in ut_fs_read_link() localVariable 872 let file_path = "file5.txt"; in ut_fs_copy() localVariable 897 let file_path = "file6.txt"; in ut_fs_hard_link() localVariable 922 let file_path = "file7.txt"; in ut_fs_metadata() localVariable 947 let file_path = "file8.txt"; in ut_fs_canonicalize() localVariable 970 let file_path = "file9.txt"; in ut_fs_symlink_metadata() localVariable [all …]
|
H A D | async_file.rs | 589 let file_path = "file11.txt"; in ut_fs_file_set_len() localVariable 595 let res = remove_file(file_path).await; in ut_fs_file_set_len() 611 let file_path = "file12.txt"; in ut_fs_file_try_clone() localVariable 630 let file_path = "file13.txt"; in ut_fs_file_seek() localVariable 682 std::fs::remove_file(file_path).unwrap(); in ut_fs_file_seek() 693 let file_path = "file14.txt"; in ut_fs_file_set_permission() localVariable 707 std::fs::remove_file(file_path).unwrap(); in ut_fs_file_set_permission() 717 let file_path = "file15.txt"; in ut_fs_file_sync_all() localVariable 733 std::fs::remove_file(file_path).unwrap(); in ut_fs_file_sync_all() 744 let file_path = "file16.txt"; in ut_fs_set_buf_size_limit() localVariable [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_delete_handler.py | 86 file_path=file_path, flag_str=flag_re, re_name=config_re_str) 100 for dot_path in file_path: 271 if os.path.exists(file_path): 272 os.remove(file_path) 360 file_path=file_path, temp_re=mk_re_str) 368 file_path=file_path, temp_re=mk_re_str) 374 self._delete_driver_file(file_path=file_path) 393 file_path=file_path, flag_str=flag_re, re_name=mk_re_str) 398 self._delete_driver_file(file_path=file_path) 406 def _delete_driver_file(self, file_path): argument [all …]
|
H A D | hdf_vendor_build_file.py | 23 self.file_path = hdf_utils.get_vendor_gn_path(root) 24 if not os.path.exists(self.file_path): 25 raise HdfToolException('file: %s not exist' % self.file_path, 27 self.contents = hdf_utils.read_file(self.file_path) 30 with open(self.file_path, 'r') as file_read: 43 write_fd = os.open(self.file_path, config_info["flags"], config_info["modes"]) 47 return self.file_path 49 def delete_module(self, file_path, model): argument 50 lines = hdf_utils.read_file_lines(file_path) 54 hdf_utils.write_file_lines(file_path, lines) [all …]
|
H A D | hdf_vendor_mk_file.py | 24 self.file_path = hdf_utils.get_vendor_lite_mk_path(root) 25 if not os.path.exists(self.file_path): 26 raise HdfToolException('file: %s not exist' % self.file_path, 28 self.contents = hdf_utils.read_file(self.file_path) 56 hdf_utils.replace_and_save(self.contents, self.file_path, 59 hdf_utils.append_and_save(self.contents, self.file_path, module_) 60 return self.file_path 62 def delete_module(self, file_path, module): argument 64 file_contents = hdf_utils.read_file(file_path) 68 hdf_utils.delete_and_save(file_contents, self.file_path, old_range) [all …]
|
H A D | hdf_vendor_makefile.py | 23 self.file_path = path 27 self.file_path = hdf_utils.\ 29 if not os.path.exists(self.file_path): 30 raise HdfToolException('file: %s not exist' % self.file_path, 32 self.contents = hdf_utils.read_file_lines(self.file_path) 46 hdf_utils.write_file_lines(self.file_path, self.contents) 47 return self.file_path 60 content=self.contents, file_path=self.file_path) 66 hdf_utils.write_file(self.file_path, new_content)
|
H A D | hdf_manager_config_file.py | 21 def __init__(self, file_path): argument 22 self.file_path = file_path 23 self.file_dir = os.path.dirname(self.file_path) 30 if os.path.exists(self.file_path): 31 self.contents = hdf_utils.read_file(self.file_path) 43 hdf_utils.write_file(self.file_path, self.contents) 106 hdf_utils.replace_and_save(self.contents, self.file_path, 112 hdf_utils.add_after_and_save(self.contents, self.file_path, 137 ' found' % self.file_path, 142 hdf_utils.add_after_and_save(self.contents, self.file_path, [all …]
|
H A D | hdf_model_enable_operation.py | 197 file_path = [] 205 file_path.append(os.path.join(roots, file_name)) 206 return file_path 220 def _replace_operation(self, new_string, old_string, file_path): argument 226 with open(file_path, 'rb') as f_read: 241 for file_path in file_path_list: 242 if file_path.split("_")[-1] == "defconfig": 254 file_path=file_path) 261 for file_path in file_path_list: 262 if file_path.split("_")[-1] == "defconfig": [all …]
|
H A D | hdf_module_mk_file.py | 23 self.file_path = hdf_utils.get_module_mk_path(root, vendor, module) 24 if os.path.exists(self.file_path): 25 self.contents = hdf_utils.read_file(self.file_path) 50 hdf_utils.replace_and_save(self.contents, self.file_path, 58 ' $(HDF_DRIVER)' % self.file_path, 60 hdf_utils.write_file(self.file_path, new_content) 67 hdf_utils.delete_and_save(self.contents, self.file_path, drv_range)
|
H A D | hdf_hcs_file.py | 18 def __init__(self, file_path): argument 19 self.file_path = file_path 20 self.file_dir = os.path.dirname(self.file_path) 21 if os.path.exists(self.file_path): 22 self.lines = hdf_utils.read_file_lines(self.file_path) 31 hdf_utils.write_file(self.file_path, ''.join(self.lines))
|
H A D | hdf_device_info_hcs.py | 45 self.file_path = hdf_utils.get_template_file_path(root) 46 if not os.path.exists(self.file_path): 49 self.file_path, CommandErrorCode.TARGET_NOT_EXIST) 89 self.file_path, 'device_info_hcs.template') 94 self.file_path, 'User_device_info_hcs.template') 117 self.file_path, 'exists_model_hcs_info.template') 180 def hdi_hcs_delete(file_path, driver_name): argument 181 hcs_config = hdf_utils.read_file_lines(file_path) 201 hdf_utils.write_file_lines(file_path, temp_lines)
|
H A D | hdf_lite_settings_mk_file.py | 22 self.file_path = hdf_utils.get_hdf_lite_settings_mk_path(root_dir) 23 if os.path.exists(self.file_path): 24 self.lines = hdf_utils.read_file_lines(self.file_path) 26 dir_path = os.path.dirname(self.file_path) 36 hdf_utils.write_file(self.file_path, ''.join(self.lines))
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 169 def read_file(file_path): argument 175 def read_file_lines(file_path, code_type="utf-8"): argument 181 def read_file_binary(file_path): argument 182 with open(file_path, "rb") as file_binary_read: 193 def write_file(file_path, content): argument 376 if isinstance(file_path, list): 377 for file_name in file_path: 479 def __init__(self, file_path, temp_re): argument 480 self.file = file_path 492 return read_file_binary(file_path=self.file) [all …]
|
/ohos5.0/base/request/request/services/src/task/ |
H A D | download.rs | 324 let file = File::create(file_path).unwrap(); in ut_download_basic() 336 let file = File::open(file_path).unwrap(); in ut_download_basic() 359 let file = File::open(file_path).unwrap(); in ut_download_resume() 369 let file = File::create(file_path).unwrap(); in ut_download_not_support_range() 383 let file = File::open(file_path).unwrap(); in ut_download_not_support_range() 393 let file = File::create(file_path).unwrap(); in ut_download_resume_not_support_range() 451 let file = File::create(file_path).unwrap(); in ut_download_range_0() 474 let file = File::create(file_path).unwrap(); in ut_download_range_1() 518 let file = File::create(file_path).unwrap(); in ut_download_range_resume_1() 548 let file = File::create(file_path).unwrap(); in ut_download_invalid_task() [all …]
|
/ohos5.0/build/tools/component_tools/ |
H A D | components_dependence_analysis.py | 68 def read_build_gn_file(file_path: str): 69 with open(file_path, 'r') as file: 87 file_path = os.path.join(root_path, file) 89 file_paths.append(file_path) 90 if os.path.isdir(file_path): 91 _colletct_build_gn_path(file_path) 96 file_path = os.path.join(root_path, file) 97 if file != 'out' and os.path.isdir(file_path): 98 _colletct_build_gn_path(file_path)
|
/ohos5.0/drivers/hdf_core/framework/tools/idl-gen/ |
H A D | idl_generator.py | 64 file_path = self._search_file(path, file_name) 65 if file_path is not None: 66 return file_path 82 if file_path is not None: 83 include_file.append(file_path) 130 def _install_package(self, file_path): argument 295 def _write_file(self, file_path, file_name): argument 305 def _split_path(file_path): argument 306 normpath = os.path.normpath(file_path) 316 def _make_output_dir(self, file_path): argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/tools/ |
H A D | build_theme_code.py | 93 def read_file(file_path): argument 94 with open(file_path) as file_read: 99 def write_file(file_path, content): argument 100 with open(file_path, 'wb+') as file_write: 104 def build_header(file_path): argument 143 write_file(file_path, end_str.format(new_content, define)) 179 def build_cpp(file_path, platform): argument 219 file_name = '{}theme_constants_{}.cpp'.format(file_path, platform) 223 def read_file_lines(file_path): argument 224 with open(file_path) as file_read:
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 50 file_path[self.module + "_dot_configs"] = \ 52 return file_path 63 file_path = {} 101 return file_path 119 file_path['BUILD.gn'] = build_file_path 131 file_path['Makefile'] = makefile_path 137 file_path['Kconfig'] = kconfig_path 138 return file_path 153 return file_path 156 file_path = {} [all …]
|
/ohos5.0/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_check_online.py | 39 for file_path in diff: 40 diff_dict[file_path] = [] 41 diff_list = diff[file_path] 43 if '/third_party_' in file_path and 'name' in i[1]: 49 if file_path in diff_dict.keys(): 50 diff_dict[file_path].append(line)
|
/ohos5.0/foundation/ability/idl_tool/test/sa_test/ |
H A D | util.py | 92 def file_exists(file_path): argument 93 return os.path.isfile(file_path) 96 def make_binary_file(file_path): argument 98 return exec_command("make --directory={} --jobs=4".format(file_path)) 101 def clean_binary_file(file_path): argument 102 return exec_command("make --directory={} clean".format(file_path))
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
H A D | hdi_delete_handler.py | 106 for file_path in self.create_info: 107 if os.path.exists(file_path): 108 os.remove(file_path) 130 for file_path in self.config_info: 131 self._delete_interface_config_file(file_path) 133 for file_path in self.config_info: 134 self._delete_peripheral_config_file(file_path) 136 for file_path in self.config_info: 137 self._delete_unittest_config_file(file_path) 155 group_passwd.delete_group_passwd(name=self.args.driver_name, file_path=config_json_path)
|
/ohos5.0/base/update/packaging_tools/test/ |
H A D | test_script_generator.py | 110 file_path = "./vendor.img" 111 create_file(file_path, get_target_vendor_data()) 112 with open(file_path) as wo_f: 121 if os.path.exists(file_path): 122 os.remove(file_path)
|
/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/ |
H A D | content_parser.py | 28 file_path = "" variable in ContentParser 32 self.file_path = path 50 if os.path.exists(self.file_path): 51 with open(self.file_path, 'r') as f:
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | zip_writer.cpp | 37 bool AddFileContentToZip(zipFile zip_file, FilePath &file_path) in AddFileContentToZip() argument 40 if (!FilePathCheckValid(file_path.Value())) { in AddFileContentToZip() 41 APP_LOGI("filePath is invalid file_path=%{public}s", file_path.Value().c_str()); in AddFileContentToZip() 44 if (!FilePath::PathIsValid(file_path)) { in AddFileContentToZip() 49 FILE *fp = fopen(file_path.Value().c_str(), "rb"); in AddFileContentToZip() 52 file_path.Value().c_str(), strerror(errno)); in AddFileContentToZip() 61 … APP_LOGI("Could not write data to zip for path:%{private}s ", file_path.Value().c_str()); in AddFileContentToZip()
|