Home
last modified time | relevance | path

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

/external/crosvm/disk/src/
Dandroid_sparse.rs101 pub struct AndroidSparse { struct
155 impl AndroidSparse { implementation
156 pub fn from_file(mut file: File) -> Result<AndroidSparse> { in from_file() argument
189 AndroidSparse::from_parts(file, total_size, chunks) in from_file()
192 fn from_parts(file: File, size: u64, chunks: Vec<ChunkWithSize>) -> Result<AndroidSparse> { in from_parts() argument
208 let image = AndroidSparse { in from_parts()
224 impl DiskGetLen for AndroidSparse { implementation
230 impl FileSetLen for AndroidSparse { implementation
239 impl FileSync for AndroidSparse { implementation
245 impl PunchHole for AndroidSparse { implementation
[all …]
Ddisk.rs30 use android_sparse::{AndroidSparse, SPARSE_HEADER_MAGIC};
154 AndroidSparse, enumerator
301 return Ok(ImageType::AndroidSparse); in detect_image_type()
313 ImageType::Qcow2 | ImageType::AndroidSparse | ImageType::CompositeDisk => false, in async_ok()
322 ImageType::Qcow2 | ImageType::AndroidSparse | ImageType::CompositeDisk => { in create_async_disk_file()
344 ImageType::AndroidSparse => { in create_disk_file()
345 Box::new(AndroidSparse::from_file(raw_image).map_err(Error::CreateAndroidSparseDisk)?) in create_disk_file()
574 assert_eq!(image_type, ImageType::AndroidSparse); in detect_image_type_android_sparse()