/frameworks/base/tools/aapt2/ |
D | Resource.h | 150 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 …]
|
D | ResourceUtils_test.cpp | 45 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 …]
|
D | ResourceUtils.h | 41 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);
|
D | ResourceTable.h | 275 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;
|
D | Resource.cpp | 35 return ResourceNameRef(*this).to_string(); in to_string() 38 std::string ResourceNameRef::to_string() const { in to_string()
|
D | ResourceUtils.cpp | 112 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()
|
D | ResourceTable.cpp | 601 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()
|
D | ResourceValues.h | 169 explicit Reference(const ResourceNameRef& n, Type type = Type::kResource); 171 Reference(const ResourceNameRef& n, const ResourceId& i);
|
D | ResourceValues.cpp | 101 Reference::Reference(const ResourceNameRef& n, Type t) in Reference() 107 Reference::Reference(const ResourceNameRef& n, const ResourceId& i) in Reference()
|
D | ResourceTable_test.cpp | 188 const ResourceNameRef& name, in VisibilityOfResource()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.h | 63 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,
|
D | BinaryResourceParser.cpp | 562 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/ |
D | XmlIdCollector.cpp | 32 static bool cmp_name(const SourcedResourceName& a, const ResourceNameRef& b) { in cmp_name() 47 ResourceNameRef name; in Visit()
|
D | IdAssigner_test.cpp | 194 << "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/ |
D | JavaClassGenerator.h | 101 void ProcessResource(const ResourceNameRef& name, const ResourceId& id, 108 bool ProcessStyleable(const ResourceNameRef& name, const ResourceId& id,
|
D | JavaClassGenerator.cpp | 85 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/ |
D | ProductFilter.cpp | 25 const ResourceNameRef& name, const ResourceConfigValueIter begin, in SelectProductToKeep() 97 ResourceNameRef name(pkg->name, type->named_type, entry->name); in Consume()
|
D | Linkers.h | 104 ResourceConfigValueIter SelectProductToKeep(const ResourceNameRef& name,
|
D | XmlReferenceLinker.cpp | 73 ResourceNameRef(maybe_package.value().package, ResourceType::kAttr, attr.name)); in Visit()
|
D | TableMerger.cpp | 202 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/ |
D | ProtoDeserialize.cpp | 43 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/ |
D | Common.h | 43 ResourceNameRef ref; in ParseNameOrDie()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.cpp | 271 ResourceNameRef name(pkg->name, type->named_type, entry->name); in WriteSplitApk()
|
D | Util.cpp | 466 ResourceNameRef resource_name; in ParseResourceConfig()
|
D | Link.cpp | 734 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()
|