Home
last modified time | relevance | path

Searched refs:CHUNK_SIZE (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Virtualization/authfs/src/fsverity/
Dbuilder.rs20 use crate::common::{divide_roundup, CHUNK_SIZE};
24 const HASH_PER_PAGE: usize = CHUNK_SIZE as usize / HASH_SIZE;
78 let leaves_size = divide_roundup(new_file_size, CHUNK_SIZE); in resize()
121 debug_assert!(self.file_size <= CHUNK_SIZE && self.file_size > 0); in calculate_root_hash()
125 debug_assert_eq!((self.file_size - 1) / CHUNK_SIZE, n as u64); in calculate_root_hash()
126 let size_for_equivalent = n as u64 * CHUNK_SIZE; in calculate_root_hash()
209 let hash = sha256(&vec![1u8; CHUNK_SIZE as usize]); in merkle_tree_non_sequential()
212 tree.update_hash(1, &hash, CHUNK_SIZE * 2); in merkle_tree_non_sequential()
213 tree.update_hash(3, &hash, CHUNK_SIZE * 4); in merkle_tree_non_sequential()
214 tree.update_hash(0, &hash, CHUNK_SIZE); in merkle_tree_non_sequential()
[all …]
Dverifier.rs21 use crate::common::{divide_roundup, CHUNK_SIZE};
25 const ZEROS: [u8; CHUNK_SIZE as usize] = [0u8; CHUNK_SIZE as usize];
48 let chunk_hash = hash_with_padding(chunk, CHUNK_SIZE as usize); in verity_check()
52 if file_size <= CHUNK_SIZE { in verity_check()
65 Ok(hash_with_padding(&merkle_chunk, CHUNK_SIZE as usize)) in verity_check()
80 let hashes_per_node = CHUNK_SIZE / SHA256_HASH_SIZE as u64;
87 let leaves_size_per_hash = CHUNK_SIZE * leaves_per_hash;
90 let level_size = nodes_at_level * CHUNK_SIZE;
101 let chunk_index = global_hash_offset / CHUNK_SIZE;
102 let hash_offset_in_chunk = (global_hash_offset % CHUNK_SIZE) as usize;
[all …]
Dcommon.rs22 use crate::common::{divide_roundup, CHUNK_SIZE};
54 let hashes_per_node = CHUNK_SIZE / SHA256_HASH_SIZE as u64; in merkle_tree_height()
55 let hash_pages = divide_roundup(data_size, hashes_per_node * CHUNK_SIZE); in merkle_tree_height()
62 while data_size > CHUNK_SIZE { in merkle_tree_size()
63 let hash_size = divide_roundup(data_size, CHUNK_SIZE) * SHA256_HASH_SIZE as u64; in merkle_tree_size()
64 let hash_storage_size = divide_roundup(hash_size, CHUNK_SIZE) * CHUNK_SIZE; in merkle_tree_size()
Deditor.rs60 use crate::common::{ChunkedSizeIter, CHUNK_SIZE};
135 let mut orig_data = [0u8; CHUNK_SIZE as usize]; in new_hash_for_incomplete_write()
164 if current_size as u64 == CHUNK_SIZE { in new_chunk_hash()
200 ChunkedSizeIter::new(buf.len(), offset, CHUNK_SIZE as usize) in write_at()
208 let output_chunk_index = (output_offset / CHUNK_SIZE) as usize; in write_at()
209 let offset_from_alignment = (output_offset % CHUNK_SIZE) as usize; in write_at()
260 if size < merkle_tree.file_size() && size % CHUNK_SIZE > 0 { in resize()
261 let new_tail_size = (size % CHUNK_SIZE) as usize; in resize()
262 let chunk_index = size / CHUNK_SIZE; in resize()
264 let mut buf: ChunkBuffer = [0; CHUNK_SIZE as usize]; in resize()
[all …]
/packages/modules/Virtualization/authfs/src/fsverity/metadata/
Dmetadata.rs71 pub const CHUNK_SIZE: u64 = authfs_fsverity_metadata_bindgen::CHUNK_SIZE; constant
135 (metadata_file.stream_position()? + CHUNK_SIZE - 1) / CHUNK_SIZE * CHUNK_SIZE; in parse_fsverity_metadata()
Dmetadata.hpp48 const uint64_t CHUNK_SIZE = 4096; variable
/packages/modules/Virtualization/authfs/src/
Dfile.rs9 use crate::common::{divide_roundup, CHUNK_SIZE};
20 pub type ChunkBuffer = [u8; CHUNK_SIZE as usize];
86 let last_index = divide_roundup(file_size, CHUNK_SIZE); in new()
89 let mut chunk_buffer = [0; CHUNK_SIZE as usize]; in new()
107 if let Some(chunk) = &self.buffer.chunks(CHUNK_SIZE as usize).nth(chunk_index as usize) { in read_chunk()
Dfusefs.rs39 use crate::common::{divide_roundup, ChunkedSizeIter, CHUNK_SIZE};
391 fn blk_size() -> libc::c_int { CHUNK_SIZE as libc::c_int }
393 fn blk_size() -> libc::c_long { CHUNK_SIZE as libc::c_long }
460 offset / CHUNK_SIZE in offset_to_chunk_index()
472 let total = ChunkedSizeIter::new(size_to_read, offset, CHUNK_SIZE as usize).try_fold( in read_chunks()
479 let mut buf = [0u8; CHUNK_SIZE as usize]; in read_chunks()
485 let begin = (current_offset % CHUNK_SIZE) as usize; in read_chunks()
Dcommon.rs18 pub const CHUNK_SIZE: u64 = 4096; constant
/packages/modules/Virtualization/authfs/src/file/
Dremote_file.rs23 use crate::common::CHUNK_SIZE;
31 let offset = i64::try_from(chunk_index * CHUNK_SIZE) in remote_read_chunk()
95 let offset = i64::try_from(chunk_index * CHUNK_SIZE) in read_chunk()
/packages/modules/adb/client/
Dincremental.cpp230 std::vector<char> child_stdout(CHUNK_SIZE); in wait_for_installation()
257 child_stdout.resize(buf_size + CHUNK_SIZE); in wait_for_installation()
Dcommandline.cpp835 int opt = CHUNK_SIZE; in adb_sideload_legacy()
838 char buf[CHUNK_SIZE]; in adb_sideload_legacy()
841 unsigned xfer = (size > CHUNK_SIZE) ? CHUNK_SIZE : size; in adb_sideload_legacy()
866 #define SIDELOAD_HOST_BLOCK_SIZE (CHUNK_SIZE)
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java937 private static final int CHUNK_SIZE = 1024 * 64; // 64kB field in StatsManager
969 byte[] chunk = new byte[CHUNK_SIZE]; in getDataWithFd()
986 while ((chunkLen = dataInputStream.read(chunk, 0, CHUNK_SIZE)) != -1) { in getDataWithFd()
/packages/modules/Virtualization/libs/libfdt/src/
Diterators.rs63 const CHUNK_SIZE: usize = size_of::<<CellIterator as Iterator>::Item>(); in new() constant
65 Self { chunks: bytes.chunks_exact(CHUNK_SIZE) } in new()
/packages/modules/adb/
Dadb.h212 #define CHUNK_SIZE (64 * 1024) macro
Dadb_listeners.cpp85 int rcv_buf_size = CHUNK_SIZE; in ss_listener_event_func()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java852 private static final int CHUNK_SIZE = 1024 * 64; // 64 kB field in StatsManagerService
892 byte[] chunk = new byte[CHUNK_SIZE]; in getDataFdFromStatsd()
901 while ((chunkLen = inputStream.read(chunk, 0, CHUNK_SIZE)) != -1) { in getDataFdFromStatsd()
/packages/modules/DnsResolver/
DDnsTlsSocket.cpp643 constexpr uint16_t CHUNK_SIZE = 2048; in readResponse() local
644 std::vector<uint8_t> discard(std::min(remainingBytes, CHUNK_SIZE)); in readResponse()
/packages/apps/TV/libs/m2/
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...