Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
SuperFlashHelper Class Referencefinal

#include <super_flash_helper.h>

Collaboration diagram for SuperFlashHelper:
Collaboration graph
[legend]

Public Member Functions

 SuperFlashHelper (const ImageSource &source)
 
bool Open (android::base::borrowed_fd fd)
 
bool IncludeInSuper (const std::string &partition)
 
bool AddPartition (const std::string &partition, const std::string &image_name, bool optional)
 
SparsePtr GetSparseLayout ()
 
bool WillFlash (const std::string &partition) const
 

Private Attributes

const ImageSourcesource_
 
android::fs_mgr::SuperLayoutBuilder builder_
 
std::unique_ptr< android::fs_mgr::LpMetadata > base_metadata_
 
std::vector< android::fs_mgr::SuperImageExtent > extents_
 
std::unordered_map< std::string, android::base::unique_fdimage_fds_
 
std::unordered_set< std::string > will_flash_
 

Constructor & Destructor Documentation

◆ SuperFlashHelper()

SuperFlashHelper::SuperFlashHelper ( const ImageSource source)
explicit

Member Function Documentation

◆ AddPartition()

bool SuperFlashHelper::AddPartition ( const std::string &  partition,
const std::string &  image_name,
bool  optional 
)

◆ GetSparseLayout()

SparsePtr SuperFlashHelper::GetSparseLayout ( )

◆ IncludeInSuper()

bool SuperFlashHelper::IncludeInSuper ( const std::string &  partition)

◆ Open()

bool SuperFlashHelper::Open ( android::base::borrowed_fd  fd)

◆ WillFlash()

bool SuperFlashHelper::WillFlash ( const std::string &  partition) const
inline

Member Data Documentation

◆ base_metadata_

std::unique_ptr<android::fs_mgr::LpMetadata> SuperFlashHelper::base_metadata_
private

◆ builder_

android::fs_mgr::SuperLayoutBuilder SuperFlashHelper::builder_
private

◆ extents_

std::vector<android::fs_mgr::SuperImageExtent> SuperFlashHelper::extents_
private

◆ image_fds_

std::unordered_map<std::string, android::base::unique_fd> SuperFlashHelper::image_fds_
private

◆ source_

const ImageSource& SuperFlashHelper::source_
private

◆ will_flash_

std::unordered_set<std::string> SuperFlashHelper::will_flash_
private

The documentation for this class was generated from the following files: