Home
last modified time | relevance | path

Searched refs:ResourceTablePackage (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceTable.h205 class ResourceTablePackage {
211 explicit ResourceTablePackage(android::StringPiece name) : name(name) { in ResourceTablePackage() function
214 ResourceTablePackage() = default;
220 DISALLOW_COPY_AND_ASSIGN(ResourceTablePackage);
336 ResourceTablePackage* package;
348 ResourceTablePackage* FindPackage(android::StringPiece name) const;
349 ResourceTablePackage* FindOrCreatePackage(android::StringPiece name);
367 std::vector<std::unique_ptr<ResourceTablePackage>> packages;
DResourceTable.cpp124 ResourceTablePackage* ResourceTable::FindPackage(android::StringPiece name) const { in FindPackage()
125 return FindElementsRunAction<ResourceTablePackage>( in FindPackage()
129 ResourceTablePackage* ResourceTable::FindOrCreatePackage(android::StringPiece name) { in FindOrCreatePackage()
130 return FindElementsRunAction<ResourceTablePackage>(name, packages, [&](bool found, auto& iter) { in FindOrCreatePackage()
131 return found ? iter->get() : packages.emplace(iter, new ResourceTablePackage(name))->get(); in FindOrCreatePackage()
143 ResourceTableType* ResourceTablePackage::FindTypeWithDefaultName(const ResourceType type) const { in FindTypeWithDefaultName()
148 ResourceTableType* ResourceTablePackage::FindType(const ResourceNamedTypeRef& type) const { in FindType()
153 ResourceTableType* ResourceTablePackage::FindOrCreateType(const ResourceNamedTypeRef& type) { in FindOrCreateType()
413 ResourceTableView& table, const ResourceTablePackage* package, const ResourceTableType* type, in InsertEntryIntoTableView()
713 ResourceTablePackage* package = FindPackage(name.package); in FindResource()
[all …]
DValueVisitor.h198 inline void VisitAllValuesInPackage(ResourceTablePackage* pkg, ValueVisitor* visitor) {
/frameworks/base/tools/aapt2/link/
DPrivateAttributeMover_test.cpp41 ResourceTablePackage* package = table->FindPackage("android"); in TEST()
68 ResourceTablePackage* package = table->FindPackage("android"); in TEST()
87 ResourceTablePackage* package = table->FindPackage("android"); in TEST()
DTableMerger.h86 ResourceTablePackage* main_package_;
92 bool DoMerge(const android::Source& src, ResourceTablePackage* src_package, bool mangle_package,
DTableMerger.cpp237 bool TableMerger::DoMerge(const android::Source& src, ResourceTablePackage* src_package, in DoMerge()
383 ResourceTablePackage* pkg = table.FindOrCreatePackage(file_desc.name.package); in MergeFile()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h55 bool ParseTypeSpec(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
57 bool ParseType(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
DBinaryResourceParser.cpp202 ResourceTablePackage* package = in ParsePackage()
293 bool BinaryResourceParser::ParseTypeSpec(const ResourceTablePackage* package, in ParseTypeSpec()
343 bool BinaryResourceParser::ParseType(const ResourceTablePackage* package, in ParseType()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.h94 const ResourceTablePackage& package, const ResourceTableType& type,
DJavaClassGenerator.cpp534 const ResourceTablePackage& package, in ProcessType()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp241 ResourceTablePackage* split_pkg = split_table->FindPackage(pkg->name); in SplitTable()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp90 expected<ResourceTablePackage*, const char*> GetStaticLibraryPackage(ResourceTable* table) { in GetStaticLibraryPackage()
1040 auto is_ext_package_func = [&](const std::unique_ptr<ResourceTablePackage>& pkg) -> bool { in VerifyNoExternalPackages()
1487 ResourceTablePackage* pkg = lib_package_result.value(); in MergeStaticLibrary()
1972 ResourceTablePackage* package_to_rewrite = nullptr; in WriteApk()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp432 ResourceTablePackage* pkg = out_table->FindOrCreatePackage(pb_package.package_name()); in DeserializePackageFromPb()