Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceTable.h192 class ResourceTablePackage {
198 explicit ResourceTablePackage(android::StringPiece name) : name(name) { in ResourceTablePackage() function
201 ResourceTablePackage() = default;
207 DISALLOW_COPY_AND_ASSIGN(ResourceTablePackage);
316 ResourceTablePackage* package;
328 ResourceTablePackage* FindPackage(android::StringPiece name) const;
329 ResourceTablePackage* FindOrCreatePackage(android::StringPiece name);
346 std::vector<std::unique_ptr<ResourceTablePackage>> packages;
DResourceTable.cpp107 ResourceTablePackage* ResourceTable::FindPackage(android::StringPiece name) const { in FindPackage()
108 return FindElementsRunAction<ResourceTablePackage>( in FindPackage()
112 ResourceTablePackage* ResourceTable::FindOrCreatePackage(android::StringPiece name) { in FindOrCreatePackage()
113 return FindElementsRunAction<ResourceTablePackage>(name, packages, [&](bool found, auto& iter) { in FindOrCreatePackage()
114 return found ? iter->get() : packages.emplace(iter, new ResourceTablePackage(name))->get(); in FindOrCreatePackage()
126 ResourceTableType* ResourceTablePackage::FindTypeWithDefaultName(const ResourceType type) const { in FindTypeWithDefaultName()
131 ResourceTableType* ResourceTablePackage::FindType(const ResourceNamedTypeRef& type) const { in FindType()
136 ResourceTableType* ResourceTablePackage::FindOrCreateType(const ResourceNamedTypeRef& type) { in FindOrCreateType()
350 void InsertEntryIntoTableView(ResourceTableView& table, const ResourceTablePackage* package, in InsertEntryIntoTableView()
602 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.cpp234 bool TableMerger::DoMerge(const android::Source& src, ResourceTablePackage* src_package, in DoMerge()
353 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.cpp88 expected<ResourceTablePackage*, const char*> GetStaticLibraryPackage(ResourceTable* table) { in GetStaticLibraryPackage()
1012 auto is_ext_package_func = [&](const std::unique_ptr<ResourceTablePackage>& pkg) -> bool { in VerifyNoExternalPackages()
1459 ResourceTablePackage* pkg = lib_package_result.value(); in MergeStaticLibrary()
1894 ResourceTablePackage* package_to_rewrite = nullptr; in WriteApk()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp431 ResourceTablePackage* pkg = out_table->FindOrCreatePackage(pb_package.package_name()); in DeserializePackageFromPb()