Home
last modified time | relevance | path

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

/packages/modules/Virtualization/microdroid_manager/src/
Dinstance.rs61 const PARTITION_HEADER_SIZE: u64 = 512; constant
122 let payload_offset = offset + PARTITION_HEADER_SIZE; in read_microdroid_data()
140 let mut header = [0; PARTITION_HEADER_SIZE as usize]; in read_microdroid_data()
181 let mut header = [0; PARTITION_HEADER_SIZE as usize]; in write_microdroid_data()
187 self.file.seek(SeekFrom::Start(offset + PARTITION_HEADER_SIZE))?; in write_microdroid_data()
207 header_offset % PARTITION_HEADER_SIZE == 0, in read_header_at()
253 let payload_size = round_to_multiple(header.payload_size, PARTITION_HEADER_SIZE)?; in locate_microdroid_header()
255 .checked_add(PARTITION_HEADER_SIZE) in locate_microdroid_header()