Home
last modified time | relevance | path

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

/system/gsid/
Dpartition_installer.cpp51 images_ = ImageManager::Open(MetadataDir(active_dsu), install_dir_); in PartitionInstaller()
74 if (images_->IsImageMapped(file)) { in FinishInstall()
76 images_->UnmapImageDevice(file); in FinishInstall()
78 images_->DeleteBackingImage(file); in FinishInstall()
108 if (!images_) { in PerformSanityChecks()
148 if (!images_->UnmapImageIfExists(file)) { in Preallocate()
154 if (images_->BackingImageExists(file)) { in Preallocate()
155 if (!images_->DeleteBackingImage(file)) { in Preallocate()
179 return images_->CreateBackingImage(name, size, flags, std::move(progress)); in CreateImage()
183 return MappedDevice::Open(images_.get(), 10s, name); in OpenPartition()
[all …]
Dpartition_installer.h83 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.cpp159 images_->RemoveAllImages(); in BeginUpdate()
397 return Return(images_->CreateBackingImage(cow_image_name, status.cow_file_size(), cow_flags)); in CreateCowImage()
540 ok = images_->MapImageWithDeviceMapper(opener, cow_image_name, &cow_dev); in MapCowImage()
542 ok = images_->MapImageDevice(cow_image_name, timeout_ms, &cow_dev); in MapCowImage()
595 return images_->UnmapImageIfExists(GetCowImageDeviceName(name)); in UnmapCowImage()
616 if (images_->BackingImageExists(cow_image_name)) { in DeleteSnapshot()
617 if (!images_->DeleteBackingImage(cow_image_name)) { in DeleteSnapshot()
1720 (EnsureImageManager() && images_->IsImageMapped(cow_image_device)); in RemoveAllSnapshots()
1731 if (!EnsureImageManager() || !images_->RemoveAllImages()) { in RemoveAllSnapshots()
2203 created_devices->EmplaceBack<AutoUnmapImage>(images_.get(), cow_image_name); in MapCowDevices()
[all …]
Dutility.cpp70 if (!images_->UnmapImageIfExists(name_)) { in ~AutoUnmapImage()
/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.h436 IImageManager* image_manager() const { return images_.get(); } in image_manager()
778 std::unique_ptr<IImageManager> images_; variable