Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 17 of 17) sorted by relevance

/base/update/packaging_tools/test/
Dtest_script_generator.py110 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)
Dcreate_package_data.py194 def create_file(file_path, file_data): argument
201 with open(file_path, "wb") as w_f:
/base/security/code_signature/services/key_enable/src/
Dfile_utils.rs19 pub fn load_bytes_from_file(file_path: &str) -> Vec<u8> in load_bytes_from_file()
21 let mut file = File::open(file_path).expect("Open file failed."); in load_bytes_from_file()
Dcert_utils.rs30 fn get_trusted_cert_from_file(certs: &mut Vec<Vec<u8>>, file_path: &str) in get_trusted_cert_from_file()
32 match cert_chain_utils::get_verifed_cert_from_chain(file_path) { in get_trusted_cert_from_file()
Dcert_chain_utils.rs38 fn load_certs_from_pem_file(file_path: &str) -> Option<Vec<X509>> in load_certs_from_pem_file()
40 let pem = file_utils::load_bytes_from_file(file_path); in load_certs_from_pem_file()
/base/update/packaging_tools/
Dupdate_package.py178 file_path = extend_path_list[idx]
180 file_path = \
182 digest = get_hash_content(file_path, OPTIONS_MANAGER.hash_algorithm)
190 component_list[idx].file_path = file_path.encode("utf-8")
198 component_list[idx].size = os.path.getsize(file_path)
201 component_list[idx].original_size = os.path.getsize(file_path)
264 component_list[i].file_path = component.encode("utf-8")
503 def get_hash_content(file_path, hash_algorithm): argument
511 cmd = [LINUX_HASH_ALGORITHM_DICT[hash_algorithm], file_path]
517 if not os.path.exists(file_path):
[all …]
Dutils.py560 def get_file_content(file_path, file_name=None): argument
567 if not os.path.exists(file_path):
569 "%s is not exist! path: %s" % (file_name, file_path),
572 with open(file_path, 'r') as r_f:
575 "%s file parsing complete! path: %s" % (file_name, file_path))
Dcreate_hashdata.py127 with open(component.file_path, "rb") as component_file:
128 component_len = os.path.getsize(component.file_path)
Dcreate_update_package.py180 with open(component.file_path, "rb") as component_file:
/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/
Dzip_writer.cpp172 bool ZipWriter::AddFileContentToZip(zipFile zip_file, std::string &file_path) in AddFileContentToZip() argument
174 …DUMPER_HILOGD(MODULE_COMMON, "AddFileContentToZip enter|file_path=[%{public}s]", file_path.c_str()… in AddFileContentToZip()
176 if (!DumpUtils::PathIsValid(file_path)) { in AddFileContentToZip()
181 auto fp = fopen(file_path.c_str(), "rb"); in AddFileContentToZip()
/base/global/timezone/tool/update_tool/
Ddownload_iana.py87 file_path = os.path.abspath(__file__)
88 file_dir = os.path.dirname(file_path)
/base/msdp/device_status/rust/plugin_manager/src/
Dlib.rs65 let file_path = match intention { in instantiate_loader() localVariable
78 libloading::Library::new(file_path.as_os_str()) in instantiate_loader()
/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/
Dzip_writer.h41 static bool AddFileContentToZip(zipFile zip_file, std::string &file_path);
/base/startup/init/services/modules/seccomp/scripts/tools/
Dmerge_policy.py104 def parse_file(self, file_path): argument
105 with open(file_path) as fp:
/base/security/device_security_level/oem_property/ohos/standard/
Ddslm_cred_tool.py409 def _get_file_content(self, file_path: str):
410 if not os.path.isfile(file_path):
411 raise CredVerificationException('file {} is not existed'.format(file_path))
413 with open(file_path, 'r') as fp:
/base/startup/init/services/modules/seccomp/scripts/
Dgenerate_code_from_policy.py916 def parse_file(self, file_path): argument
917 with open(file_path) as fp:
/base/request/request/services/service/rust/src/
Drequest_task.rs981 let file_path = self.conf.file_specs[index].path.as_ptr() as *const c_char; in background_notify() localVariable
993 file_path, in background_notify()