Searched refs:AndroidSparse (Results 1 – 2 of 2) sorted by relevance
101 pub struct AndroidSparse { struct155 impl AndroidSparse { implementation156 pub fn from_file(mut file: File) -> Result<AndroidSparse> { in from_file() argument189 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() argument208 let image = AndroidSparse { in from_parts()224 impl DiskGetLen for AndroidSparse { implementation230 impl FileSetLen for AndroidSparse { implementation239 impl FileSync for AndroidSparse { implementation245 impl PunchHole for AndroidSparse { implementation[all …]
30 use android_sparse::{AndroidSparse, SPARSE_HEADER_MAGIC};154 AndroidSparse, enumerator301 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()