Home
last modified time | relevance | path

Searched refs:ResourceNameRef (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tools/aapt2/
DResource.h150 struct ResourceNameRef { struct
155 ResourceNameRef() = default; argument
156 ResourceNameRef(const ResourceNameRef&) = default;
157 ResourceNameRef(ResourceNameRef&&) = default;
158 ResourceNameRef(const ResourceName& rhs); // NOLINT(google-explicit-constructor)
159 ResourceNameRef(android::StringPiece p, const ResourceNamedTypeRef& t, android::StringPiece e);
160 ResourceNameRef(android::StringPiece p, ResourceType t, android::StringPiece e);
161 ResourceNameRef& operator=(const ResourceNameRef& rhs) = default; argument
162 ResourceNameRef& operator=(ResourceNameRef&& rhs) = default; argument
163 ResourceNameRef& operator=(const ResourceName& rhs); argument
[all …]
DResourceUtils_test.cpp45 ResourceNameRef actual; in TEST()
48 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST()
52 EXPECT_THAT(actual, Eq(ResourceNameRef({}, ResourceType::kColor, "foo"))); in TEST()
56 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST()
63 ResourceNameRef actual; in TEST()
67 EXPECT_THAT(actual, Eq(ResourceNameRef({}, ResourceType::kColor, "foo"))); in TEST()
73 ResourceNameRef actual; in TEST()
77 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST()
83 ResourceNameRef actual; in TEST()
87 EXPECT_THAT(actual, Eq(ResourceNameRef("android", ResourceType::kColor, "foo"))); in TEST()
[all …]
DResourceUtils.h41 bool ParseResourceName(android::StringPiece str, ResourceNameRef* out_resource,
52 bool ParseReference(android::StringPiece str, ResourceNameRef* out_reference,
66 bool ParseAttributeReference(android::StringPiece str, ResourceNameRef* out_reference);
DResourceTable.h275 explicit NewResourceBuilder(const ResourceNameRef& name);
316 std::optional<SearchResult> FindResource(const ResourceNameRef& name) const;
317 std::optional<SearchResult> FindResource(const ResourceNameRef& name, ResourceId id) const;
318 bool RemoveResource(const ResourceNameRef& name, ResourceId id) const;
DResource.cpp35 return ResourceNameRef(*this).to_string(); in to_string()
38 std::string ResourceNameRef::to_string() const { in to_string()
DResourceUtils.cpp112 bool ParseResourceName(StringPiece str, ResourceNameRef* out_ref, bool* out_private) { in ParseResourceName()
153 bool ParseReference(StringPiece str, ResourceNameRef* out_ref, bool* out_create, in ParseReference()
169 ResourceNameRef name; in ParseReference()
204 bool ParseAttributeReference(StringPiece str, ResourceNameRef* out_ref) { in ParseAttributeReference()
270 ResourceNameRef ref; in ParseStyleParentReference()
328 ResourceNameRef ref; in TryParseReference()
DResourceTable.cpp601 const ResourceNameRef& name) const { 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()
690 NewResourceBuilder::NewResourceBuilder(const ResourceNameRef& name) { in NewResourceBuilder()
695 ResourceNameRef ref; in NewResourceBuilder()
DResourceValues.h169 explicit Reference(const ResourceNameRef& n, Type type = Type::kResource);
171 Reference(const ResourceNameRef& n, const ResourceId& i);
DResourceValues.cpp101 Reference::Reference(const ResourceNameRef& n, Type t) in Reference()
107 Reference::Reference(const ResourceNameRef& n, const ResourceId& i) in Reference()
DResourceTable_test.cpp188 const ResourceNameRef& name, in VisibilityOfResource()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h63 std::unique_ptr<Item> ParseValue(const ResourceNameRef& name,
67 std::unique_ptr<Value> ParseMapEntry(const ResourceNameRef& name,
71 std::unique_ptr<Style> ParseStyle(const ResourceNameRef& name,
75 std::unique_ptr<Attribute> ParseAttr(const ResourceNameRef& name,
79 std::unique_ptr<Array> ParseArray(const ResourceNameRef& name,
83 std::unique_ptr<Plural> ParsePlural(const ResourceNameRef& name,
DBinaryResourceParser.cpp562 std::unique_ptr<Item> BinaryResourceParser::ParseValue(const ResourceNameRef& name, in ParseValue()
581 std::unique_ptr<Value> BinaryResourceParser::ParseMapEntry(const ResourceNameRef& name, in ParseMapEntry()
610 std::unique_ptr<Style> BinaryResourceParser::ParseStyle(const ResourceNameRef& name, in ParseStyle()
635 std::unique_ptr<Attribute> BinaryResourceParser::ParseAttr(const ResourceNameRef& name, in ParseAttr()
676 std::unique_ptr<Array> BinaryResourceParser::ParseArray(const ResourceNameRef& name, in ParseArray()
686 std::unique_ptr<Plural> BinaryResourceParser::ParsePlural(const ResourceNameRef& name, in ParsePlural()
/frameworks/base/tools/aapt2/compile/
DXmlIdCollector.cpp32 static bool cmp_name(const SourcedResourceName& a, const ResourceNameRef& b) { in cmp_name()
47 ResourceNameRef name; in Visit()
DIdAssigner_test.cpp194 << "resource " << ResourceNameRef(package->name, type->named_type, entry->name) in VerifyIds()
199 << "resource " << ResourceNameRef(package->name, type->named_type, entry->name) in VerifyIds()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.h101 void ProcessResource(const ResourceNameRef& name, const ResourceId& id,
108 bool ProcessStyleable(const ResourceNameRef& name, const ResourceId& id,
DJavaClassGenerator.cpp85 static std::string TransformNestedAttr(const ResourceNameRef& attr_name, in TransformNestedAttr()
235 bool JavaClassGenerator::ProcessStyleable(const ResourceNameRef& name, const ResourceId& id, in ProcessStyleable()
449 void JavaClassGenerator::ProcessResource(const ResourceNameRef& name, const ResourceId& id, in ProcessResource()
553 const ResourceNameRef resource_name(package_name_to_generate, target_type, in ProcessType()
/frameworks/base/tools/aapt2/link/
DProductFilter.cpp25 const ResourceNameRef& name, const ResourceConfigValueIter begin, in SelectProductToKeep()
97 ResourceNameRef name(pkg->name, type->named_type, entry->name); in Consume()
DLinkers.h104 ResourceConfigValueIter SelectProductToKeep(const ResourceNameRef& name,
DXmlReferenceLinker.cpp73 ResourceNameRef(maybe_package.value().package, ResourceType::kAttr, attr.name)); in Visit()
DTableMerger.cpp202 IAaptContext* context, const ResourceNameRef& res_name, bool overlay, in MergeConfigValue()
258 const ResourceNameRef res_name(src_package->name, src_type->named_type, src_entry->name); in DoMerge()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp43 explicit ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceNameRef>* mapping) in ReferenceIdToNameVisitor()
63 const std::map<ResourceId, ResourceNameRef>* mapping_;
429 std::map<ResourceId, ResourceNameRef> id_index; in DeserializePackageFromPb()
519 id_index[resid] = ResourceNameRef(pkg->name, type->named_type, entry->name); in DeserializePackageFromPb()
605 ResourceNameRef name_ref; in DeserializeCompiledFileFromPb()
666 ResourceNameRef name_ref; in DeserializeReferenceFromPb()
/frameworks/base/tools/aapt2/test/
DCommon.h43 ResourceNameRef ref; in ParseNameOrDie()
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp271 ResourceNameRef name(pkg->name, type->named_type, entry->name); in WriteSplitApk()
DUtil.cpp466 ResourceNameRef resource_name; in ParseResourceConfig()
DLink.cpp734 ResourceNameRef name; in LoadStableIdMap()
1019 ResourceNameRef res_name(package->name, type->named_type, entry->name); in VerifyNoExternalPackages()
1056 ResourceNameRef res_name(package->name, type->named_type, entry->name); in VerifyNoIdsSet()
1713 auto name_ref = ResourceNameRef(reference->name.value()); in ResolveTableEntry()

12