Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceTable.h189 class ResourceTablePackage {
195 explicit ResourceTablePackage(const android::StringPiece& name) : name(name.to_string()) { in ResourceTablePackage() function
198 ResourceTablePackage() = default;
203 DISALLOW_COPY_AND_ASSIGN(ResourceTablePackage);
307 ResourceTablePackage* package;
319 ResourceTablePackage* FindPackage(const android::StringPiece& name) const;
320 ResourceTablePackage* FindOrCreatePackage(const android::StringPiece& name);
337 std::vector<std::unique_ptr<ResourceTablePackage>> packages;
DResourceTable.cpp105 ResourceTablePackage* ResourceTable::FindPackage(const android::StringPiece& name) const { in FindPackage()
106 return FindElementsRunAction<ResourceTablePackage>( in FindPackage()
110 ResourceTablePackage* ResourceTable::FindOrCreatePackage(const android::StringPiece& name) { in FindOrCreatePackage()
111 return FindElementsRunAction<ResourceTablePackage>(name, packages, [&](bool found, auto& iter) { in FindOrCreatePackage()
112 return found ? iter->get() : packages.emplace(iter, new ResourceTablePackage(name))->get(); in FindOrCreatePackage()
123 ResourceTableType* ResourceTablePackage::FindType(ResourceType type) const { in FindType()
128 ResourceTableType* ResourceTablePackage::FindOrCreateType(ResourceType type) { in FindOrCreateType()
342 void InsertEntryIntoTableView(ResourceTableView& table, const ResourceTablePackage* package, in InsertEntryIntoTableView()
589 ResourceTablePackage* package = FindPackage(name.package); in FindResource()
608 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.h85 ResourceTablePackage* main_package_;
90 bool DoMerge(const Source& src, ResourceTablePackage* src_package, bool mangle_package,
DTableMerger.cpp233 bool TableMerger::DoMerge(const Source& src, ResourceTablePackage* src_package, bool mangle_package, in DoMerge()
351 ResourceTablePackage* pkg = table.FindOrCreatePackage(file_desc.name.package); in MergeFile()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h54 bool ParseTypeSpec(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
56 bool ParseType(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
DBinaryResourceParser.cpp195 ResourceTablePackage* package = table_->FindOrCreatePackage(util::Utf16ToUtf8(package_name)); in ParsePackage()
283 bool BinaryResourceParser::ParseTypeSpec(const ResourceTablePackage* package, in ParseTypeSpec()
331 bool BinaryResourceParser::ParseType(const ResourceTablePackage* package, in ParseType()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.h95 const ResourceTablePackage& package, const ResourceTableType& type,
DJavaClassGenerator.cpp532 const ResourceTablePackage& package, in ProcessType()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp243 ResourceTablePackage* split_pkg = split_table->FindPackage(pkg->name); in SplitTable()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp86 expected<ResourceTablePackage*, const char*> GetStaticLibraryPackage(ResourceTable* table) { in GetStaticLibraryPackage()
1002 auto is_ext_package_func = [&](const std::unique_ptr<ResourceTablePackage>& pkg) -> bool { in VerifyNoExternalPackages()
1335 ResourceTablePackage* pkg = lib_package_result.value(); in MergeStaticLibrary()
1768 ResourceTablePackage* package_to_rewrite = nullptr; in WriteApk()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp430 ResourceTablePackage* pkg = out_table->FindOrCreatePackage(pb_package.package_name()); in DeserializePackageFromPb()