Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
OptimizedFlashSuperTask Class Reference

#include <task.h>

Inheritance diagram for OptimizedFlashSuperTask:
Inheritance graph
[legend]
Collaboration diagram for OptimizedFlashSuperTask:
Collaboration graph
[legend]

Public Member Functions

 OptimizedFlashSuperTask (const std::string &super_name, std::unique_ptr< SuperFlashHelper > helper, SparsePtr sparse_layout, uint64_t super_size, const FlashingPlan *fp)
 
virtual OptimizedFlashSuperTaskAsOptimizedFlashSuperTask () override
 
void Run () override
 
std::string ToString () const override
 
- Public Member Functions inherited from Task
 Task ()=default
 
virtual void Run ()=0
 
virtual std::string ToString () const =0
 
virtual FlashTaskAsFlashTask ()
 
virtual RebootTaskAsRebootTask ()
 
virtual UpdateSuperTaskAsUpdateSuperTask ()
 
virtual OptimizedFlashSuperTaskAsOptimizedFlashSuperTask ()
 
virtual WipeTaskAsWipeTask ()
 
virtual ResizeTaskAsResizeTask ()
 
virtual ~Task ()=default
 

Static Public Member Functions

static std::unique_ptr< OptimizedFlashSuperTaskInitialize (const FlashingPlan *fp, std::vector< std::unique_ptr< Task > > &tasks)
 
static bool CanOptimize (const ImageSource *source, const std::vector< std::unique_ptr< Task > > &tasks)
 

Private Attributes

const std::string super_name_
 
std::unique_ptr< SuperFlashHelperhelper_
 
SparsePtr sparse_layout_
 
uint64_t super_size_
 
const FlashingPlanfp_
 

Constructor & Destructor Documentation

◆ OptimizedFlashSuperTask()

OptimizedFlashSuperTask::OptimizedFlashSuperTask ( const std::string &  super_name,
std::unique_ptr< SuperFlashHelper helper,
SparsePtr  sparse_layout,
uint64_t  super_size,
const FlashingPlan fp 
)

Member Function Documentation

◆ AsOptimizedFlashSuperTask()

virtual OptimizedFlashSuperTask * OptimizedFlashSuperTask::AsOptimizedFlashSuperTask ( )
inlineoverridevirtual

Reimplemented from Task.

◆ CanOptimize()

bool OptimizedFlashSuperTask::CanOptimize ( const ImageSource source,
const std::vector< std::unique_ptr< Task > > &  tasks 
)
static

◆ Initialize()

std::unique_ptr< OptimizedFlashSuperTask > OptimizedFlashSuperTask::Initialize ( const FlashingPlan fp,
std::vector< std::unique_ptr< Task > > &  tasks 
)
static

◆ Run()

void OptimizedFlashSuperTask::Run ( )
overridevirtual

Implements Task.

◆ ToString()

std::string OptimizedFlashSuperTask::ToString ( ) const
overridevirtual

Implements Task.

Member Data Documentation

◆ fp_

const FlashingPlan* OptimizedFlashSuperTask::fp_
private

◆ helper_

std::unique_ptr<SuperFlashHelper> OptimizedFlashSuperTask::helper_
private

◆ sparse_layout_

SparsePtr OptimizedFlashSuperTask::sparse_layout_
private

◆ super_name_

const std::string OptimizedFlashSuperTask::super_name_
private

◆ super_size_

uint64_t OptimizedFlashSuperTask::super_size_
private

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