Home
last modified time | relevance | path

Searched refs:compiled_attribute (Results 1 – 11 of 11) sorted by relevance

/aosp12/frameworks/base/tools/aapt2/format/binary/
H A DXmlFlattener.cpp46 if (a->compiled_attribute && a->compiled_attribute.value().id) { in cmp_xml_attribute_by_id()
47 if (b->compiled_attribute && b->compiled_attribute.value().id) { in cmp_xml_attribute_by_id()
48 return a->compiled_attribute.value().id.value() < b->compiled_attribute.value().id.value(); in cmp_xml_attribute_by_id()
51 } else if (!b->compiled_attribute) { in cmp_xml_attribute_by_id()
227 if (xml_attr->compiled_attribute && xml_attr->compiled_attribute.value().id && in WriteAttributes()
228 xml_attr->compiled_attribute.value().id.value() == kIdAttr) { in WriteAttributes()
246 if (!xml_attr->compiled_attribute || !xml_attr->compiled_attribute.value().id) { in WriteAttributes()
257 const xml::AaptAttribute& aapt_attr = xml_attr->compiled_attribute.value(); in WriteAttributes()
/aosp12/frameworks/base/tools/aapt2/link/
H A DXmlCompatVersioner.cpp27 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
44 dst_attr->compiled_attribute = src_attr.compiled_attribute; in CopyAttribute()
90 const ResourceId attr_resid = result.attr.compiled_attribute.value().id.value(); in ProcessRule()
114 if (!attr.compiled_attribute) { in ProcessDoc()
120 const ResourceId attr_resid = attr.compiled_attribute.value().id.value(); in ProcessDoc()
H A DXmlReferenceLinker.cpp79 attr.compiled_attribute = in Visit()
82 if (!attr.compiled_attribute) { in Visit()
92 attribute = &attr.compiled_attribute.value().attribute; in Visit()
/aosp12/frameworks/base/tools/aapt2/optimize/
H A DMultiApkGenerator.cpp386 size->compiled_attribute = xml::AaptAttribute(Attribute(), {kScreenSizeResourceId}); in AddScreens()
390 density->compiled_attribute = xml::AaptAttribute(Attribute(), {kScreenDensityResourceId}); in AddScreens()
/aosp12/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
386 cloned_attr.compiled_attribute = attr.compiled_attribute; in Clone()
H A DXmlDom.h82 Maybe<AaptAttribute> compiled_attribute; member
/aosp12/frameworks/base/tools/aapt2/
H A DDebug.cpp483 if (attr.compiled_attribute) { in Visit()
486 attr.compiled_attribute.value().id.value_or_default(ResourceId(0)).to_string()); in Visit()
/aosp12/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize_test.cpp271 attr.compiled_attribute = xml::AaptAttribute(Attribute{}, ResourceId(0x01010000)); in TEST()
324 ASSERT_TRUE(actual_attr.compiled_attribute); in TEST()
325 ASSERT_TRUE(actual_attr.compiled_attribute.value().id); in TEST()
H A DProtoSerialize.cpp761 if (attr.compiled_attribute) { in SerializeXmlToPb()
762 const ResourceId attr_id = attr.compiled_attribute.value().id.value_or_default({}); in SerializeXmlToPb()
H A DProtoDeserialize.cpp1037 attr.compiled_attribute = xml::AaptAttribute{Attribute(), ResourceId(pb_attr.resource_id())}; in DeserializeXmlFromPb()
/aosp12/frameworks/base/tools/aapt2/dump/
H A DDumpManifest.cpp101 if (a.compiled_attribute && a.compiled_attribute.value().id) { in FindAttribute()
102 if (a.compiled_attribute.value().id.value() == resd_id) { in FindAttribute()