Home
last modified time | relevance | path

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

/system/gsid/
Dpartition_installer.cpp55 images_ = ImageManager::Open(MetadataDir(active_dsu), install_dir_); in PartitionInstaller()
63 PostInstallCleanup(images_.get()); in ~PartitionInstaller()
114 if (!images_) { in PerformSanityChecks()
154 if (!images_->UnmapImageIfExists(file)) { in Preallocate()
160 if (images_->BackingImageExists(file)) { in Preallocate()
161 if (!images_->DeleteBackingImage(file)) { in Preallocate()
185 return images_->CreateBackingImage(name, size, flags, std::move(progress)); in CreateImage()
189 return MappedDevice::Open(images_.get(), 10s, name); in OpenPartition()
326 if (!images_->Validate()) { in Finish()
Dpartition_installer.h80 std::unique_ptr<ImageManager> images_; variable
/system/core/fs_mgr/libsnapshot/
Dpower_test.cpp101 std::unique_ptr<ImageManager> images_; member in android::snapshot::PowerTest
144 images_ = ImageManager::Open("/metadata/gsi/test", "/data/gsi/test"); in OpenImageManager()
145 if (!images_) { in OpenImageManager()
216 if (!images_->UnmapImageIfExists(kSnapshotImageName)) { in Create()
220 if (!images_->UnmapImageIfExists(kSnapshotCowName)) { in Create()
239 if (!images_->UnmapImageIfExists(name)) { in CleanupImage()
243 if (images_->BackingImageExists(name) && !images_->DeleteBackingImage(name)) { in CleanupImage()
271 if (!images_->CreateBackingImage(kSnapshotImageName, image_size, 0, nullptr)) { in SetupImages()
276 if (!images_->CreateBackingImage(kSnapshotCowName, image_size, 0, nullptr)) { in SetupImages()
330 if (!images_->MapImageDevice(kSnapshotImageName, 10s, &image_path_)) { in MapImages()
[all …]
Dutility.h74 : AutoDevice(name), images_(images) {} in AutoUnmapImage()
80 android::fiemap::IImageManager* images_ = nullptr; member
Dsnapshot.cpp140 images_->RemoveAllImages(); in BeginUpdate()
362 return Return(images_->CreateBackingImage(cow_image_name, status.cow_file_size(), cow_flags)); in CreateCowImage()
488 ok = images_->MapImageWithDeviceMapper(opener, cow_image_name, &cow_dev); in MapCowImage()
490 ok = images_->MapImageDevice(cow_image_name, timeout_ms, &cow_dev); in MapCowImage()
521 return images_->UnmapImageIfExists(GetCowImageDeviceName(name)); in UnmapCowImage()
542 if (images_->BackingImageExists(cow_image_name)) { in DeleteSnapshot()
543 if (!images_->DeleteBackingImage(cow_image_name)) { in DeleteSnapshot()
1368 (EnsureImageManager() && images_->IsImageMapped(cow_image_device)); in RemoveAllSnapshots()
1379 if (!EnsureImageManager() || !images_->RemoveAllImages()) { in RemoveAllSnapshots()
1773 created_devices->EmplaceBack<AutoUnmapImage>(images_.get(), cow_image_name); in MapCowDevices()
[all …]
Dutility.cpp69 if (!images_->UnmapImageIfExists(name_)) { in ~AutoUnmapImage()
Dsnapshot_fuzz_utils.cpp434 snapshot->images_ = in CheckCreateSnapshotManager()
/system/core/fs_mgr/liblp/
Dimages.cpp141 images_(images) { in ImageBuilder()
286 auto iter = images_.find(GetPartitionName(partition)); in Build()
287 if (iter == images_.end()) { in Build()
293 images_.erase(iter); in Build()
296 if (!images_.empty()) { in Build()
Dimages.h65 std::map<std::string, std::string> images_; variable
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h345 IImageManager* image_manager() const { return images_.get(); } in image_manager()
589 std::unique_ptr<IImageManager> images_; variable