/frameworks/base/tools/aapt/tests/ |
D | ResourceTable_test.cpp | 26 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() 37 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 38 configs->addEntry(landConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 39 configs->addEntry(sw600dpLandConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 41 EXPECT_TRUE(ResourceTable::shouldGenerateVersionedResource(configs, defaultConfig, 17)); in TEST() 42 EXPECT_TRUE(ResourceTable::shouldGenerateVersionedResource(configs, landConfig, 17)); in TEST() 46 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() 57 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 58 configs->addEntry(v21Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 59 configs->addEntry(sw600dpV13Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger_test.cpp | 54 std::unique_ptr<ResourceTable> table_a = in TEST_F() 64 std::unique_ptr<ResourceTable> table_b = test::ResourceTableBuilder() in TEST_F() 69 ResourceTable final_table; in TEST_F() 90 ResourceTable final_table; in TEST_F() 110 ResourceTable final_table; in TEST_F() 128 std::unique_ptr<ResourceTable> table_a = in TEST_F() 133 std::unique_ptr<ResourceTable> table_b = in TEST_F() 139 ResourceTable final_table; in TEST_F() 157 std::unique_ptr<ResourceTable> base = in TEST_F() 162 std::unique_ptr<ResourceTable> overlay = in TEST_F() [all …]
|
D | TableMerger.h | 60 TableMerger(IAaptContext* context, ResourceTable* out_table, const TableMergerOptions& options); 68 bool Merge(const Source& src, ResourceTable* table, bool overlay); 72 bool MergeAndMangle(const Source& src, const android::StringPiece& package, ResourceTable* table); 81 ResourceTable* master_table_; 86 bool MergeImpl(const Source& src, ResourceTable* src_table, bool overlay, bool allow_new);
|
D | TableMerger.cpp | 32 TableMerger::TableMerger(IAaptContext* context, ResourceTable* out_table, in TableMerger() 41 bool TableMerger::Merge(const Source& src, ResourceTable* table, bool overlay) { in Merge() 49 bool TableMerger::MergeImpl(const Source& src, ResourceTable* table, bool overlay, bool allow_new) { in MergeImpl() 70 ResourceTable* table) { in MergeAndMangle() 175 static ResourceTable::CollisionResult ResolveMergeCollision(Value* existing, Value* incoming, in ResolveMergeCollision() 181 return ResourceTable::CollisionResult::kKeepOriginal; in ResolveMergeCollision() 187 return ResourceTable::CollisionResult::kKeepOriginal; in ResolveMergeCollision() 191 return ResourceTable::ResolveValueCollision(existing, incoming, true /* overlay */); in ResolveMergeCollision() 194 static ResourceTable::CollisionResult MergeConfigValue(IAaptContext* context, in MergeConfigValue() 200 using CollisionResult = ResourceTable::CollisionResult; in MergeConfigValue() [all …]
|
D | Linkers.h | 34 class ResourceTable; variable 59 bool Consume(IAaptContext* context, ResourceTable* table) override; 89 bool Consume(IAaptContext* context, ResourceTable* table) override; 108 bool Consume(IAaptContext* context, ResourceTable* table) override;
|
D | ResourceExcluder_test.cpp | 49 std::unique_ptr<ResourceTable> table = in TEST() 67 std::unique_ptr<ResourceTable> table = in TEST() 85 std::unique_ptr<ResourceTable> table = in TEST() 106 std::unique_ptr<ResourceTable> table = in TEST() 133 std::unique_ptr<ResourceTable> table = in TEST() 160 std::unique_ptr<ResourceTable> table = in TEST() 181 std::unique_ptr<ResourceTable> table = in TEST() 204 std::unique_ptr<ResourceTable> table = in TEST()
|
D | NoDefaultResourceRemover_test.cpp | 25 std::unique_ptr<ResourceTable> table = in TEST() 51 std::unique_ptr<ResourceTable> table = in TEST() 75 std::unique_ptr<ResourceTable> table = in TEST() 91 std::unique_ptr<ResourceTable> table = in TEST()
|
D | ProductFilter_test.cpp | 31 ResourceTable table; in TEST() 66 ResourceTable table; in TEST() 92 ResourceTable table; in TEST() 116 ResourceTable table; in TEST()
|
D | PrivateAttributeMover_test.cpp | 26 std::unique_ptr<ResourceTable> table = in TEST() 60 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() in TEST() 81 std::unique_ptr<ResourceTable> table = in TEST()
|
/frameworks/base/tools/aapt2/optimize/ |
D | MultiApkGenerator_test.cpp | 63 std::unique_ptr<ResourceTable> FilterTable(IAaptContext* context, in FilterTable() 65 const ResourceTable& old_table, in FilterTable() 74 std::unique_ptr<ResourceTable> BuildTable() { in BuildTable() 86 inline FileReference* ValueForConfig(ResourceTable* table, const ConfigDescription& config) { in ValueForConfig() 107 std::unique_ptr<ResourceTable> table = BuildTable(); in TEST_F() 116 std::unique_ptr<ResourceTable> split = in TEST_F() 119 ResourceTable* new_table = split.get(); in TEST_F() 134 std::unique_ptr<ResourceTable> table = BuildTable(); in TEST_F() 143 std::unique_ptr<ResourceTable> split = in TEST_F() 146 ResourceTable* new_table = split.get(); in TEST_F() [all …]
|
D | ResourceDeduper.h | 26 class ResourceTable; variable 33 bool Consume(IAaptContext* context, ResourceTable* table) override;
|
D | VersionCollapser.h | 26 class ResourceTable; variable 32 bool Consume(IAaptContext* context, ResourceTable* table) override;
|
D | ResourcePathShortener.h | 28 class ResourceTable; variable 35 bool Consume(IAaptContext* context, ResourceTable* table) override;
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable.cpp | 63 ResourceTablePackage* ResourceTable::FindPackage(const StringPiece& name) const { in FindPackage() 73 ResourceTablePackage* ResourceTable::FindPackageById(uint8_t id) const { in FindPackageById() 82 ResourceTablePackage* ResourceTable::CreatePackage(const StringPiece& name, Maybe<uint8_t> id) { in CreatePackage() 96 ResourceTablePackage* ResourceTable::CreatePackageAllowingDuplicateNames(const StringPiece& name, in CreatePackageAllowingDuplicateNames() 112 ResourceTablePackage* ResourceTable::FindOrCreatePackage(const StringPiece& name) { in FindOrCreatePackage() 269 ResourceTable::CollisionResult ResourceTable::ResolveValueCollision(Value* existing, in ResolveValueCollision() 327 ResourceTable::CollisionResult ResourceTable::IgnoreCollision(Value* /* existing */, in IgnoreCollision() 344 bool ResourceTable::AddResource(const ResourceNameRef& name, in AddResource() 354 bool ResourceTable::AddResourceWithId(const ResourceNameRef& name, const ResourceId& res_id, in AddResourceWithId() 362 bool ResourceTable::AddResourceMangled(const ResourceNameRef& name, const ConfigDescription& config, in AddResourceMangled() [all …]
|
D | ResourceTable_test.cpp | 36 ResourceTable table; in TEST() 50 ResourceTable table; in TEST() 58 ResourceTable table; in TEST() 69 ResourceTable table; in TEST() 104 ResourceTable table; in TEST() 123 ResourceTable table; in TEST() 138 ResourceTable table; in TEST() 152 Maybe<ResourceTable::SearchResult> sr = in TEST() 173 static ::testing::AssertionResult VisibilityOfResource(const ResourceTable& table, in VisibilityOfResource() 177 Maybe<ResourceTable::SearchResult> result = table.FindResource(name); in VisibilityOfResource() [all …]
|
D | LoadedApk.h | 60 std::unique_ptr<ResourceTable> table, std::unique_ptr<xml::XmlResource> manifest, in LoadedApk() 77 const ResourceTable* GetResourceTable() const { in GetResourceTable() 81 ResourceTable* GetResourceTable() { in GetResourceTable() 109 virtual bool WriteToArchive(IAaptContext* context, ResourceTable* split_table, 121 std::unique_ptr<ResourceTable> table_;
|
D | Debug.h | 36 static void PrintTable(const ResourceTable& table, const DebugPrintTableOptions& options, 38 static void PrintStyleGraph(ResourceTable* table, const ResourceName& target_style);
|
/frameworks/base/tools/aapt2/compile/ |
D | IdAssigner_test.cpp | 23 ::testing::AssertionResult VerifyIds(ResourceTable* table); 26 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() in TEST() 41 std::unique_ptr<ResourceTable> table = in TEST() 62 Maybe<ResourceTable::SearchResult> maybe_result; in TEST() 95 std::unique_ptr<ResourceTable> table = in TEST() 110 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() in TEST() 122 Maybe<ResourceTable::SearchResult> result = in TEST() 126 const ResourceTable::SearchResult& search_result = result.value(); in TEST() 132 ::testing::AssertionResult VerifyIds(ResourceTable* table) { in VerifyIds()
|
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.h | 56 splits_.push_back(util::make_unique<ResourceTable>()); in TableSplitter() 62 void SplitTable(ResourceTable* original_table); 64 std::vector<std::unique_ptr<ResourceTable>>& splits() { return splits_; } in splits() 68 std::vector<std::unique_ptr<ResourceTable>> splits_;
|
D | TableSplitter_test.cpp | 26 std::unique_ptr<ResourceTable> table = in TEST() 64 std::unique_ptr<ResourceTable> table = in TEST() 109 std::unique_ptr<ResourceTable> table = in TEST() 133 ResourceTable* split_one = splitter.splits()[0].get(); in TEST() 134 ResourceTable* split_two = splitter.splits()[1].get(); in TEST() 135 ResourceTable* split_three = splitter.splits()[2].get(); in TEST() 193 ResourceTable table; in TEST() 217 ResourceTable* split_one = splitter.splits()[0].get(); in TEST() 218 ResourceTable* split_two = splitter.splits()[1].get(); in TEST()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 45 ResourceTable* table, std::string* out_content) { in Flatten() 56 ResourceTable* table, ResTable* out_table) { in Flatten() 70 ResourceTable* table, ResourceTable* out_table) { in Flatten() 154 std::unique_ptr<ResourceTable> table = in TEST_F() 203 std::unique_ptr<ResourceTable> table = in TEST_F() 224 std::unique_ptr<ResourceTable> table = in TEST_F() 230 ResourceTable result; in TEST_F() 247 std::unique_ptr<ResourceTable> table = in TEST_F() 297 static std::unique_ptr<ResourceTable> BuildTableWithSparseEntries( in BuildTableWithSparseEntries() 299 std::unique_ptr<ResourceTable> table = in BuildTableWithSparseEntries() [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator_test.cpp | 35 std::unique_ptr<ResourceTable> table = in TEST() 55 std::unique_ptr<ResourceTable> table = in TEST() 85 std::unique_ptr<ResourceTable> table = in TEST() 111 std::unique_ptr<ResourceTable> table = in TEST() 160 std::unique_ptr<ResourceTable> table = in TEST() 185 std::unique_ptr<ResourceTable> table = in TEST() 277 std::unique_ptr<ResourceTable> table = in TEST() 307 std::unique_ptr<ResourceTable> table = in TEST() 347 std::unique_ptr<ResourceTable> table = in TEST() 385 std::unique_ptr<ResourceTable> table = in TEST() [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.cpp | 43 ResourceTable* table, in compileXmlFile() 59 ResourceTable* table, in compileXmlFile() 75 ResourceTable* table, in compileXmlFile() 265 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg, in appendTypeInfo() 312 status_t createIfNeeded(ResourceTable* outTable) in createIfNeeded() 330 ResourceTable* outTable, in compileAttribute() 602 ResourceTable* outTable) in parseAndAddBag() 700 ResourceTable* outTable) in parseAndAddEntry() 782 ResourceTable* outTable) in compileResourceFile() 1759 ResourceTable::ResourceTable(Bundle* bundle, const String16& assetsPackage, ResourceTable::PackageT… in ResourceTable() function in ResourceTable [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Dump.cpp | 165 pb::ResourceTable pb_table; in Action() 173 ResourceTable table; in Action() 223 ResourceTable* table = apk->GetResourceTable(); in Dump() 264 ResourceTable* table = apk->GetResourceTable(); in Dump() 293 Maybe<ResourceTable::SearchResult> target = table->FindResource(target_style); in Dump() 311 ResourceTable* table = apk->GetResourceTable(); in Dump()
|
/frameworks/base/tools/aapt2/process/ |
D | IResourceTableConsumer.h | 32 class ResourceTable; variable 58 virtual bool Consume(IAaptContext* context, ResourceTable* table) = 0;
|