Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/format/binary/
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()
/frameworks/base/tools/aapt2/link/
DXmlCompatVersioner.cpp26 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
42 dst_attr->compiled_attribute = src_attr.compiled_attribute; in CopyAttribute()
88 const ResourceId attr_resid = result.attr.compiled_attribute.value().id.value(); in ProcessRule()
112 if (!attr.compiled_attribute) { in ProcessDoc()
118 const ResourceId attr_resid = attr.compiled_attribute.value().id.value(); in ProcessDoc()
DXmlReferenceLinker.cpp101 attr.compiled_attribute = in Visit()
104 if (!attr.compiled_attribute) { in Visit()
114 attribute = &attr.compiled_attribute.value().attribute; in Visit()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp382 size->compiled_attribute = xml::AaptAttribute(Attribute(), {kScreenSizeResourceId}); in AddScreens()
386 density->compiled_attribute = xml::AaptAttribute(Attribute(), {kScreenDensityResourceId}); in AddScreens()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
385 cloned_attr.compiled_attribute = attr.compiled_attribute; in Clone()
DXmlDom.h82 Maybe<AaptAttribute> compiled_attribute; member
/frameworks/base/tools/aapt2/
DDebug.cpp482 if (attr.compiled_attribute) { in Visit()
485 attr.compiled_attribute.value().id.value_or_default(ResourceId(0)).to_string()); in Visit()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp196 attr.compiled_attribute = xml::AaptAttribute(Attribute{}, ResourceId(0x01010000)); in TEST()
249 ASSERT_TRUE(actual_attr.compiled_attribute); in TEST()
250 ASSERT_TRUE(actual_attr.compiled_attribute.value().id); in TEST()
DProtoSerialize.cpp681 if (attr.compiled_attribute) { in SerializeXmlToPb()
682 const ResourceId attr_id = attr.compiled_attribute.value().id.value_or_default({}); in SerializeXmlToPb()
DProtoDeserialize.cpp977 attr.compiled_attribute = xml::AaptAttribute{Attribute(), ResourceId(pb_attr.resource_id())}; in DeserializeXmlFromPb()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp98 if (a.compiled_attribute && a.compiled_attribute.value().id) { in FindAttribute()
99 if (a.compiled_attribute.value().id.value() == resd_id) { in FindAttribute()