Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{converter.cpp} Namespace Reference

Classes

struct  BranchBuildTargetInfo
 

Functions

static Result< BranchBuildTargetInfoGetDefaultBranchBuildTarget (const std::string default_branch_str)
 
Result< std::vector< std::string > > BashTokenize (const std::string &str)
 

Variables

const std::vector< std::string > kKernelImageNames
 
const std::vector< std::string > kInitRamFsImageName = {"initramfs.img"}
 
const std::vector< std::string > kBootImageName = {"boot.img"}
 
const std::vector< std::string > kVendorBootImageName = {"vendor_boot.img"}
 
const std::string kMixedSuperImageName = "mixed_super.img"
 

Function Documentation

◆ BashTokenize()

Result< std::vector< std::string > > cuttlefish::anonymous_namespace{converter.cpp}::BashTokenize ( const std::string &  str)

Split a string into arguments based on shell tokenization rules.

This behaves like shlex.split from python where arguments are separated based on whitespace, but quoting and quote escaping is respected. This function effectively removes one level of quoting from its inputs while making the split.

◆ GetDefaultBranchBuildTarget()

static Result< BranchBuildTargetInfo > cuttlefish::anonymous_namespace{converter.cpp}::GetDefaultBranchBuildTarget ( const std::string  default_branch_str)
static

Variable Documentation

◆ kBootImageName

const std::vector<std::string> cuttlefish::anonymous_namespace{converter.cpp}::kBootImageName = {"boot.img"}

◆ kInitRamFsImageName

const std::vector<std::string> cuttlefish::anonymous_namespace{converter.cpp}::kInitRamFsImageName = {"initramfs.img"}

◆ kKernelImageNames

const std::vector<std::string> cuttlefish::anonymous_namespace{converter.cpp}::kKernelImageNames
Initial value:
= {"kernel", "bzImage",
"Image"}

◆ kMixedSuperImageName

const std::string cuttlefish::anonymous_namespace{converter.cpp}::kMixedSuperImageName = "mixed_super.img"

◆ kVendorBootImageName

const std::vector<std::string> cuttlefish::anonymous_namespace{converter.cpp}::kVendorBootImageName = {"vendor_boot.img"}