Home
last modified time | relevance | path

Searched refs:ResourceTable (Results 1 – 25 of 108) sorted by relevance

12345

/frameworks/base/tools/aapt/tests/
DResourceTable_test.cpp26 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/
DTableMerger_test.cpp56 std::unique_ptr<ResourceTable> table_a = in TEST_F()
64 std::unique_ptr<ResourceTable> table_b = test::ResourceTableBuilder() in TEST_F()
68 ResourceTable final_table; in TEST_F()
89 ResourceTable final_table; in TEST_F()
109 ResourceTable final_table; in TEST_F()
127 std::unique_ptr<ResourceTable> table_a = in TEST_F()
131 std::unique_ptr<ResourceTable> table_b = in TEST_F()
136 ResourceTable final_table; in TEST_F()
154 std::unique_ptr<ResourceTable> base = in TEST_F()
158 std::unique_ptr<ResourceTable> overlay = in TEST_F()
[all …]
DTableMerger.h62 TableMerger(IAaptContext* context, ResourceTable* out_table, const TableMergerOptions& options);
70 bool Merge(const android::Source& src, ResourceTable* table, bool overlay);
75 ResourceTable* table);
84 ResourceTable* main_table_;
89 bool MergeImpl(const android::Source& src, ResourceTable* src_table, bool overlay,
DLinkers.h34 class ResourceTable; variable
59 bool Consume(IAaptContext* context, ResourceTable* table) override;
89 bool Consume(IAaptContext* context, ResourceTable* table) override;
115 explicit XmlReferenceLinker(ResourceTable* table) : table_(table) { in XmlReferenceLinker()
122 ResourceTable* table_;
DTableMerger.cpp32 TableMerger::TableMerger(IAaptContext* context, ResourceTable* out_table, in TableMerger()
40 bool TableMerger::Merge(const android::Source& src, ResourceTable* table, bool overlay) { in Merge()
48 bool TableMerger::MergeImpl(const android::Source& src, ResourceTable* table, bool overlay, in MergeImpl()
70 ResourceTable* table) { in MergeAndMangle()
179 static ResourceTable::CollisionResult ResolveMergeCollision( in ResolveMergeCollision()
186 return ResourceTable::CollisionResult::kKeepOriginal; in ResolveMergeCollision()
193 return ResourceTable::CollisionResult::kKeepOriginal; in ResolveMergeCollision()
198 return ResourceTable::ResolveValueCollision(existing, incoming); in ResolveMergeCollision()
201 static ResourceTable::CollisionResult MergeConfigValue( in MergeConfigValue()
205 using CollisionResult = ResourceTable::CollisionResult; in MergeConfigValue()
[all …]
DReferenceLinker.h35 android::StringPool* string_pool, ResourceTable* table, in ReferenceLinkerTransformer()
61 ResourceTable* table_;
129 ResourceTable* table,
133 bool Consume(IAaptContext* context, ResourceTable* table) override;
DResourceExcluder_test.cpp49 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()
DNoDefaultResourceRemover_test.cpp25 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()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator_test.cpp63 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 …]
DObfuscator.h33 class ResourceTable; variable
40 bool Consume(IAaptContext* context, ResourceTable* table) override;
60 bool HandleShortenFilePaths(ResourceTable* table,
DVersionCollapser.h26 class ResourceTable; variable
32 bool Consume(IAaptContext* context, ResourceTable* table) override;
DResourceDeduper.h26 class ResourceTable; variable
33 bool Consume(IAaptContext* context, ResourceTable* table) override;
DResourceDeduper_test.cpp38 std::unique_ptr<ResourceTable> table = in TEST()
76 std::unique_ptr<ResourceTable> table = in TEST()
99 std::unique_ptr<ResourceTable> table = in TEST()
122 std::unique_ptr<ResourceTable> table = in TEST()
143 std::unique_ptr<ResourceTable> table = in TEST()
162 std::unique_ptr<ResourceTable> table = in TEST()
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp39 ResourceTable table; in TEST()
51 ResourceTable table; in TEST()
61 ResourceTable table; in TEST()
73 ResourceTable table; in TEST()
112 ResourceTable table; in TEST()
133 ResourceTable table; in TEST()
150 ResourceTable table; in TEST()
166 std::optional<ResourceTable::SearchResult> sr = in TEST()
187 static ::testing::AssertionResult VisibilityOfResource(const ResourceTable& table, in VisibilityOfResource()
191 std::optional<ResourceTable::SearchResult> result = table.FindResource(name); in VisibilityOfResource()
[all …]
DLoadedApk.h60 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 bool WriteToArchive(IAaptContext* context, ResourceTable* split_table,
122 std::unique_ptr<ResourceTable> table_;
DDebug.h36 static void PrintTable(const ResourceTable& table, const DebugPrintTableOptions& options,
38 static void PrintStyleGraph(ResourceTable* table, const ResourceName& target_style);
42 static void DumpOverlayable(const ResourceTable& table, text::Printer* printer);
DResourceTable.cpp104 ResourceTable::ResourceTable(ResourceTable::Validation validation) : validation_(validation) { in ResourceTable() function in aapt::ResourceTable
107 ResourceTablePackage* ResourceTable::FindPackage(android::StringPiece name) const { in FindPackage()
112 ResourceTablePackage* ResourceTable::FindOrCreatePackage(android::StringPiece name) { in FindOrCreatePackage()
251 ResourceTable::CollisionResult ResourceTable::ResolveValueCollision(Value* existing, in ResolveValueCollision()
401 ResourceTableView ResourceTable::GetPartitionedView(const ResourceTableViewOptions& options) const { in GetPartitionedView()
467 bool ResourceTable::AddResource(NewResource&& res, android::IDiagnostics* diag) { in AddResource()
600 std::optional<ResourceTable::SearchResult> ResourceTable::FindResource( in FindResource()
619 std::optional<ResourceTable::SearchResult> ResourceTable::FindResource(const ResourceNameRef& name, in FindResource()
641 bool ResourceTable::RemoveResource(const ResourceNameRef& name, ResourceId id) const { in RemoveResource()
663 std::unique_ptr<ResourceTable> ResourceTable::Clone() const { in Clone()
[all …]
DLoadedApk.cpp100 std::unique_ptr<ResourceTable> table; in LoadProtoApkFromFileCollection()
104 pb::ResourceTable pb_table; in LoadProtoApkFromFileCollection()
118 table = util::make_unique<ResourceTable>(ResourceTable::Validation::kDisabled); in LoadProtoApkFromFileCollection()
159 std::unique_ptr<ResourceTable> table; in LoadBinaryApkFromFileCollection()
163 table = util::make_unique<ResourceTable>(ResourceTable::Validation::kDisabled); in LoadBinaryApkFromFileCollection()
206 bool LoadedApk::WriteToArchive(IAaptContext* context, ResourceTable* split_table, in WriteToArchive()
279 pb::ResourceTable pb_table; in WriteToArchive()
/frameworks/base/tools/aapt2/split/
DTableSplitter.h56 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_;
DTableSplitter_test.cpp26 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()
225 ResourceTable* split_one = splitter.splits()[0].get(); in TEST()
226 ResourceTable* split_two = splitter.splits()[1].get(); in TEST()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp47 ResourceTable* table, std::string* out_content) { in Flatten()
58 ResourceTable* table, ResTable* out_table) { in Flatten()
72 ResourceTable* table, ResourceTable* out_table) { in Flatten()
156 std::unique_ptr<ResourceTable> table = in TEST_F()
204 std::unique_ptr<ResourceTable> table = in TEST_F()
224 std::unique_ptr<ResourceTable> table = in TEST_F()
229 ResourceTable result; in TEST_F()
246 std::unique_ptr<ResourceTable> table = in TEST_F()
295 static std::unique_ptr<ResourceTable> BuildTableWithSparseEntries( in BuildTableWithSparseEntries()
297 std::unique_ptr<ResourceTable> table = in BuildTableWithSparseEntries()
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp30 ::testing::AssertionResult VerifyIds(ResourceTable* table);
60 std::optional<ResourceTable::SearchResult> maybe_result; in TEST_F()
159 const ResourceTable::SearchResult& search_result = result.value(); in TEST_F()
164 ResourceTable table; in TEST_F()
176 ResourceTable table; in TEST_F()
188 ResourceTable table; in TEST_F()
201 ::testing::AssertionResult VerifyIds(ResourceTable* table) { in VerifyIds()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp35 std::unique_ptr<ResourceTable> table = in TEST()
54 std::unique_ptr<ResourceTable> table = in TEST()
83 std::unique_ptr<ResourceTable> table = in TEST()
108 std::unique_ptr<ResourceTable> table = in TEST()
155 std::unique_ptr<ResourceTable> table = in TEST()
179 std::unique_ptr<ResourceTable> table = in TEST()
270 std::unique_ptr<ResourceTable> table = in TEST()
298 std::unique_ptr<ResourceTable> table = in TEST()
343 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() in TEST()
389 std::unique_ptr<ResourceTable> table = in TEST()
[all …]
/frameworks/base/tools/aapt/
DResourceTable.cpp45 ResourceTable* table, in compileXmlFile()
61 ResourceTable* table, in compileXmlFile()
77 ResourceTable* table, in compileXmlFile()
267 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg, in appendTypeInfo()
314 status_t createIfNeeded(ResourceTable* outTable) in createIfNeeded()
332 ResourceTable* outTable, in compileAttribute()
604 ResourceTable* outTable) in parseAndAddBag()
702 ResourceTable* outTable) in parseAndAddEntry()
784 ResourceTable* outTable) in compileResourceFile()
1761 ResourceTable::ResourceTable(Bundle* bundle, const String16& assetsPackage, ResourceTable::PackageT… in ResourceTable() function in ResourceTable
[all …]
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp43 ResourceEntry* GetEntry(ResourceTable* table, const ResourceNameRef& res_name) { in GetEntry()
48 ResourceEntry* GetEntry(ResourceTable* table, const ResourceNameRef& res_name, ResourceId id) { in GetEntry()
55 std::unique_ptr<ResourceTable> table = in TEST()
71 ResourceTable new_table; in TEST()
72 pb::ResourceTable pb_table; in TEST()
102 std::unique_ptr<ResourceTable> table = in TEST()
175 pb::ResourceTable pb_table; in TEST()
183 ResourceTable new_table; in TEST()
192 std::optional<ResourceTable::SearchResult> result = in TEST()
237 std::optional<ResourceTable::SearchResult> search_result = in TEST()
[all …]

12345