diff options
| author | 2018-01-19 10:57:53 +0000 | |
|---|---|---|
| committer | 2018-01-19 10:57:53 +0000 | |
| commit | cfd1b4b263da8fac7bda724fae0e42e618256871 (patch) | |
| tree | 3abe0d80a7f5ba306e7580d13357f3d2d0c923c1 /tools/aapt2/ResourceTable.h | |
| parent | 24de6a45aae21d576e84b1398ce346baf7639710 (diff) | |
| parent | e3c1a4a9d21e7698e9e5196086198569ac5cc6cd (diff) | |
Merge "Handle multiple packages of same name in 'aapt2 convert'"
Diffstat (limited to 'tools/aapt2/ResourceTable.h')
| -rw-r--r-- | tools/aapt2/ResourceTable.h | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/aapt2/ResourceTable.h b/tools/aapt2/ResourceTable.h index 95e30c442042..374fe1ea66a1 100644 --- a/tools/aapt2/ResourceTable.h +++ b/tools/aapt2/ResourceTable.h @@ -229,6 +229,11 @@ class ResourceTable {    ResourceTablePackage* CreatePackage(const android::StringPiece& name, Maybe<uint8_t> id = {}); +  // Attempts to find a package having the specified name and ID. If not found, a new package +  // of the specified parameters is created and returned. +  ResourceTablePackage* CreatePackageAllowingDuplicateNames(const android::StringPiece& name, +                                                            const Maybe<uint8_t> id); +    std::unique_ptr<ResourceTable> Clone() const;    // The string pool used by this resource table. Values that reference strings must use @@ -239,7 +244,8 @@ class ResourceTable {    // destroyed.    StringPool string_pool; -  // The list of packages in this table, sorted alphabetically by package name. +  // The list of packages in this table, sorted alphabetically by package name and increasing +  // package ID (missing ID being the lowest).    std::vector<std::unique_ptr<ResourceTablePackage>> packages;    // Set of dynamic packages that this table may reference. Their package names get encoded  |