Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Virtualization/authfs/src/fsverity/
Dverifier.rs42 file_size: u64, in verity_check()
48 assert_ne!(file_size, 0); in verity_check()
52 fsverity_walk(chunk_index, file_size, merkle_tree)?.try_fold( in verity_check()
73 file_size: u64, in fsverity_walk()
78 let max_level = merkle_tree_height(file_size).expect("file should not be empty") as u32;
85 let nodes_at_level = divide_roundup(file_size, leaves_size_per_node);
115 file_size: u64, in build_fsverity_formatted_digest()
117 let digest = build_fsverity_digest(root_hash, file_size)?;
130 file_size: u64, field
139 file_size: u64, in new()
[all …]
Dbuilder.rs34 file_size: u64, field
50 Self { leaves: Vec::new(), file_size: 0 } in new()
54 pub fn file_size(&self) -> u64 { in file_size() method
55 self.file_size in file_size()
68 self.file_size = new_file_size; in resize()
82 if size_at_least > self.file_size { in update_hash()
83 self.file_size = size_at_least; in update_hash()
105 debug_assert_eq!(self.file_size, 0); in calculate_root_hash()
109 debug_assert!(self.file_size <= CHUNK_SIZE && self.file_size > 0); in calculate_root_hash()
113 debug_assert_eq!((self.file_size - 1) / CHUNK_SIZE, n as u64); in calculate_root_hash()
[all …]
Dcommon.rs57 file_size: u64, in build_fsverity_digest()
67 .update(&file_size.to_le_bytes())? // data_size in build_fsverity_digest()
Deditor.rs154 self.merkle_tree.read().unwrap().file_size() in size()
233 if size < merkle_tree.file_size() && size % CHUNK_SIZE > 0 { in resize()
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs54 file_size: u64,
57 LocalUnverifiedReadonlyFile { reader: LocalFileReader, file_size: u64 },
62 file_size: u64,
65 RemoteUnverifiedReadonlyFile { reader: RemoteFileReader, file_size: u64 },
115 fn create_stat(ino: libc::ino_t, file_size: u64, file_mode: FileMode) -> io::Result<libc::stat64> { in create_stat()
129 st.st_size = libc::off64_t::try_from(file_size) in create_stat()
133 st.st_blocks = libc::c_longlong::try_from(divide_roundup(file_size, 512)) in create_stat()
145 file_size: u64, in read_chunks()
149 let remaining = file_size.saturating_sub(offset); in read_chunks()
210 FileConfig::LocalVerifiedReadonlyFile { file_size, .. } in lookup()
[all …]
Dmain.rs99 file_size: u64, field
113 file_size: u64, field
155 file_size: strs[2].parse::<u64>()?, in parse_remote_ro_file_option()
168 file_size: strs[2].parse::<u64>()?, in parse_remote_ro_file_unverified_option()
208 fn new_config_remote_verified_file(remote_id: i32, file_size: u64) -> Result<FileConfig> { in new_config_remote_verified_file()
218 file_size, in new_config_remote_verified_file()
222 file_size, in new_config_remote_verified_file()
226 fn new_config_remote_unverified_file(remote_id: i32, file_size: u64) -> Result<FileConfig> { in new_config_remote_unverified_file()
228 Ok(FileConfig::RemoteUnverifiedReadonlyFile { reader, file_size }) in new_config_remote_unverified_file()
237 let file_size = file.metadata()?.len(); in new_config_local_ro_file() localVariable
[all …]
/packages/modules/Virtualization/microdroid/signature/
Dmk_payload.cc211 auto file_size = GetFileSize(ToAbsolute(apex_config.path, config.dirname)); in MakeSignature() local
212 if (!file_size.ok()) { in MakeSignature()
213 return Error() << "I/O error: " << file_size.error(); in MakeSignature()
215 apex_signature->set_size(file_size.value()); in MakeSignature()
240 auto file_size = GetFileSize(file_path); in GenerateFiller() local
241 if (!file_size.ok()) { in GenerateFiller()
242 return file_size.error(); in GenerateFiller()
244 auto disk_size = AlignToPartitionSize(*file_size + sizeof(uint32_t)); in GenerateFiller()
250 uint32_t size = htobe32(static_cast<uint32_t>(*file_size)); in GenerateFiller()
251 if (ftruncate(fd.get(), disk_size - *file_size) == -1) { in GenerateFiller()
/packages/modules/adb/client/
Dincremental.cpp37 static std::pair<unique_fd, std::vector<char>> read_signature(Size file_size, in read_signature() argument
75 if (auto expected = verity_tree_size_for_file(file_size); tree_size != expected) { in read_signature()
88 static std::pair<unique_fd, std::string> read_and_encode_signature(Size file_size, in read_and_encode_signature() argument
93 auto [fd, signature] = read_signature(file_size, std::move(signature_file), silent); in read_and_encode_signature()
Dincremental_server.cpp672 static std::pair<unique_fd, int64_t> open_signature(int64_t file_size, const char* filepath) { in open_signature() argument
683 if (auto expected = verity_tree_size_for_file(file_size); tree_size != expected) { in open_signature()
688 int32_t data_block_count = numBytesToNumBlocks(file_size); in open_signature()
708 auto [file_fd, file_size] = open_fd(filepath); in serve()
709 auto [sign_fd, sign_offset] = open_signature(file_size, filepath); in serve()
711 files.emplace_back(filepath, i, file_size, std::move(file_fd), sign_offset, in serve()
/packages/modules/Virtualization/compos/src/
Dcompsvc_worker.rs55 args.push(format!("{}:{}:{}", conf.fd, conf.fd, conf.file_size)); in spawn_authfs()
126 file_size: u64, field
177 Ok(InFdAnnotation { fd: fd.parse()?, file_size: size[1..].parse()? }) in parse_args()
Dpvm_exec.rs118 let file_size = fstat(fd)?.st_size; in parse_args() localVariable
119 Ok(InputFdAnnotation { fd, file_size }) in parse_args()
Dcompsvc.rs86 worker_args.push(format!("{}:{}", annotation.fd, annotation.file_size)); in build_worker_args()
/packages/modules/Virtualization/compos/aidl/com/android/compos/
DInputFdAnnotation.aidl28 long file_size;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDetailsHelper.java125 return context.getString(R.string.file_size); in getDetailsName()
/packages/modules/adb/
Dtest_device.py1303 for file_size in [8, 1024 * 1024]:
1315 f.write('x' * file_size)
1329 for file_size in [8, 1024 * 1024]:
1342 f.write('x' * file_size)
/packages/apps/Camera2/src/com/android/camera/ui/
DDetailsDialog.java314 return context.getString(R.string.file_size);
/packages/modules/Virtualization/zipfuse/src/
Dinode.rs372 fn file_size() { in file_size() function
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py401 size=info.file_size,