|
Android-cuttlefish cvd tool
|
#include <fake_android_build.h>


Public Types | |
| enum class | ImageStatus { kExtracted , kUnextracted , kMissing } |
Public Member Functions | |
| std::string | Name () const override |
| PrettyStruct | Pretty () override |
| Result< std::set< std::string, std::less< void > > > | Images () override |
| Result< std::string > | ImageFile (std::string_view name, bool extract=true) override |
| void | AddExtractedImage (std::string_view image, std::string_view path) |
| void | AddUnextractedImage (std::string_view image) |
| void | AddMissingImage (std::string_view image) |
| Result< void > | SetExtractDir (std::string_view) override |
| Result< std::set< std::string, std::less< void > > > | AbPartitions () override |
| void | SetAbPartitions (std::set< std::string, std::less< void > >) |
| Result< std::set< std::string, std::less< void > > > | SystemPartitions () override |
| void | SetSystemPartitions (std::set< std::string, std::less< void > >) |
| Result< std::set< std::string, std::less< void > > > | VendorPartitions () override |
| void | SetVendorPartitions (std::set< std::string, std::less< void > >) |
| Result< std::set< std::string, std::less< void > > > | LogicalPartitions () override |
| void | SetLogicalPartitions (std::set< std::string, std::less< void > >) |
| Result< std::set< std::string, std::less< void > > > | PhysicalPartitions () override |
| void | SetPhysicalPartitions (std::set< std::string, std::less< void > >) |
Public Member Functions inherited from cuttlefish::AndroidBuild | |
| virtual | ~AndroidBuild ()=default |
| virtual std::string | Name () const =0 |
| virtual PrettyStruct | Pretty ()=0 |
| virtual Result< std::set< std::string, std::less< void > > > | Images () |
| virtual Result< std::string > | ImageFile (std::string_view name, bool extract=true) |
| virtual Result< void > | SetExtractDir (std::string_view) |
| virtual Result< std::set< std::string, std::less< void > > > | AbPartitions () |
| virtual Result< std::set< std::string, std::less< void > > > | SystemPartitions () |
| virtual Result< std::set< std::string, std::less< void > > > | VendorPartitions () |
| virtual Result< std::set< std::string, std::less< void > > > | LogicalPartitions () |
| virtual Result< std::set< std::string, std::less< void > > > | PhysicalPartitions () |
Private Attributes | |
| std::optional< std::map< std::string, std::pair< ImageStatus, std::string >, std::less< void > > > | images_ |
| std::optional< std::string > | extract_dir_ |
| std::optional< std::set< std::string, std::less< void > > > | ab_partitions_ |
| std::optional< std::set< std::string, std::less< void > > > | system_partitions_ |
| std::optional< std::set< std::string, std::less< void > > > | vendor_partitions_ |
| std::optional< std::set< std::string, std::less< void > > > | logical_partitions_ |
| std::optional< std::set< std::string, std::less< void > > > | physical_partitions_ |
|
strong |
|
overridevirtual |
Reimplemented from cuttlefish::AndroidBuild.
| void cuttlefish::FakeAndroidBuild::AddExtractedImage | ( | std::string_view | image, |
| std::string_view | path | ||
| ) |
| void cuttlefish::FakeAndroidBuild::AddMissingImage | ( | std::string_view | image | ) |
| void cuttlefish::FakeAndroidBuild::AddUnextractedImage | ( | std::string_view | image | ) |
|
overridevirtual |
Reimplemented from cuttlefish::AndroidBuild.
|
overridevirtual |
Image information, as reported by the Android build system.
An image may be one of three different categories:
super partition.super partition.super_empty pseudo-partition file that reports what should be in the super partition, but without the logical partition contents. Reimplemented from cuttlefish::AndroidBuild.
|
overridevirtual |
Partitions in the super image. Disjoint from GPT entries.
Reimplemented from cuttlefish::AndroidBuild.
|
overridevirtual |
The name of the concrete implementation.
Implements cuttlefish::AndroidBuild.
|
overridevirtual |
Entries in the GPT. Disjoint from logical partitions.
Reimplemented from cuttlefish::AndroidBuild.
|
overridevirtual |
Implements cuttlefish::AndroidBuild.
| void cuttlefish::FakeAndroidBuild::SetAbPartitions | ( | std::set< std::string, std::less< void > > | partitions | ) |
|
overridevirtual |
Stores a directory to use for extracting generated files. ImageFile may store generated files here, and implementations may extract files here as part of the implementation of other methods.
Reimplemented from cuttlefish::AndroidBuild.
| void cuttlefish::FakeAndroidBuild::SetLogicalPartitions | ( | std::set< std::string, std::less< void > > | partitions | ) |
| void cuttlefish::FakeAndroidBuild::SetPhysicalPartitions | ( | std::set< std::string, std::less< void > > | partitions | ) |
| void cuttlefish::FakeAndroidBuild::SetSystemPartitions | ( | std::set< std::string, std::less< void > > | partitions | ) |
| void cuttlefish::FakeAndroidBuild::SetVendorPartitions | ( | std::set< std::string, std::less< void > > | partitions | ) |
|
overridevirtual |
If this build is combined with another build by mixing system and vendor from different places, reports which partitions this build expects to contribute to a particular side of the mix. System and vendor partition sets should be disjoint.
Reimplemented from cuttlefish::AndroidBuild.
|
overridevirtual |
Reimplemented from cuttlefish::AndroidBuild.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |