/packages/modules/Virtualization/authfs/src/fsverity/ |
D | verifier.rs | 42 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 …]
|
D | builder.rs | 34 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 …]
|
D | common.rs | 57 file_size: u64, in build_fsverity_digest() 67 .update(&file_size.to_le_bytes())? // data_size in build_fsverity_digest()
|
D | editor.rs | 154 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/ |
D | fusefs.rs | 54 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 …]
|
D | main.rs | 99 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/ |
D | mk_payload.cc | 211 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/ |
D | incremental.cpp | 37 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()
|
D | incremental_server.cpp | 672 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/ |
D | compsvc_worker.rs | 55 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()
|
D | pvm_exec.rs | 118 let file_size = fstat(fd)?.st_size; in parse_args() localVariable 119 Ok(InputFdAnnotation { fd, file_size }) in parse_args()
|
D | compsvc.rs | 86 worker_args.push(format!("{}:{}", annotation.fd, annotation.file_size)); in build_worker_args()
|
/packages/modules/Virtualization/compos/aidl/com/android/compos/ |
D | InputFdAnnotation.aidl | 28 long file_size;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DetailsHelper.java | 125 return context.getString(R.string.file_size); in getDetailsName()
|
/packages/modules/adb/ |
D | test_device.py | 1303 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/ |
D | DetailsDialog.java | 314 return context.getString(R.string.file_size);
|
/packages/modules/Virtualization/zipfuse/src/ |
D | inode.rs | 372 fn file_size() { in file_size() function
|
/packages/services/Car/tests/BugReportApp/utils/ |
D | bugreport_app_tester.py | 401 size=info.file_size,
|