Android-cuttlefish cvd tool
Public Member Functions | List of all members
fastboot::IFastBootDriver Class Referenceabstract

#include <fastboot_driver_interface.h>

Inheritance diagram for fastboot::IFastBootDriver:
Inheritance graph
[legend]

Public Member Functions

virtual RetCode FlashPartition (const std::string &partition, android::base::borrowed_fd fd, uint32_t sz)=0
 
virtual RetCode DeletePartition (const std::string &partition)=0
 
virtual RetCode WaitForDisconnect ()=0
 
virtual RetCode Reboot (std::string *response=nullptr, std::vector< std::string > *info=nullptr)=0
 
virtual RetCode RebootTo (std::string target, std::string *response=nullptr, std::vector< std::string > *info=nullptr)=0
 
virtual RetCode GetVar (const std::string &key, std::string *val, std::vector< std::string > *info=nullptr)=0
 
virtual RetCode FetchToFd (const std::string &partition, android::base::borrowed_fd fd, int64_t offset=-1, int64_t size=-1, std::string *response=nullptr, std::vector< std::string > *info=nullptr)=0
 
virtual RetCode Download (const std::string &name, android::base::borrowed_fd fd, size_t size, std::string *response=nullptr, std::vector< std::string > *info=nullptr)=0
 
virtual RetCode RawCommand (const std::string &cmd, const std::string &message, std::string *response=nullptr, std::vector< std::string > *info=nullptr, int *dsize=nullptr)=0
 
virtual RetCode ResizePartition (const std::string &partition, const std::string &size)=0
 
virtual RetCode Erase (const std::string &partition, std::string *response=nullptr, std::vector< std::string > *info=nullptr)=0
 
virtual ~IFastBootDriver ()=default
 

Constructor & Destructor Documentation

◆ ~IFastBootDriver()

virtual fastboot::IFastBootDriver::~IFastBootDriver ( )
virtualdefault

Member Function Documentation

◆ DeletePartition()

virtual RetCode fastboot::IFastBootDriver::DeletePartition ( const std::string &  partition)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ Download()

virtual RetCode fastboot::IFastBootDriver::Download ( const std::string &  name,
android::base::borrowed_fd  fd,
size_t  size,
std::string *  response = nullptr,
std::vector< std::string > *  info = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ Erase()

virtual RetCode fastboot::IFastBootDriver::Erase ( const std::string &  partition,
std::string *  response = nullptr,
std::vector< std::string > *  info = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ FetchToFd()

virtual RetCode fastboot::IFastBootDriver::FetchToFd ( const std::string &  partition,
android::base::borrowed_fd  fd,
int64_t  offset = -1,
int64_t  size = -1,
std::string *  response = nullptr,
std::vector< std::string > *  info = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ FlashPartition()

virtual RetCode fastboot::IFastBootDriver::FlashPartition ( const std::string &  partition,
android::base::borrowed_fd  fd,
uint32_t  sz 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ GetVar()

virtual RetCode fastboot::IFastBootDriver::GetVar ( const std::string &  key,
std::string *  val,
std::vector< std::string > *  info = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ RawCommand()

virtual RetCode fastboot::IFastBootDriver::RawCommand ( const std::string &  cmd,
const std::string &  message,
std::string *  response = nullptr,
std::vector< std::string > *  info = nullptr,
int *  dsize = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ Reboot()

virtual RetCode fastboot::IFastBootDriver::Reboot ( std::string *  response = nullptr,
std::vector< std::string > *  info = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ RebootTo()

virtual RetCode fastboot::IFastBootDriver::RebootTo ( std::string  target,
std::string *  response = nullptr,
std::vector< std::string > *  info = nullptr 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ ResizePartition()

virtual RetCode fastboot::IFastBootDriver::ResizePartition ( const std::string &  partition,
const std::string &  size 
)
pure virtual

Implemented in fastboot::FastBootDriver.

◆ WaitForDisconnect()

virtual RetCode fastboot::IFastBootDriver::WaitForDisconnect ( )
pure virtual

Implemented in fastboot::FastBootDriver.


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