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.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()
DXmlReferenceLinker.cpp77 attr.compiled_attribute = in Visit()
80 if (!attr.compiled_attribute) { in Visit()
90 attribute = &attr.compiled_attribute.value().attribute; in Visit()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp395 size->compiled_attribute = xml::AaptAttribute(Attribute(), {kScreenSizeResourceId}); in AddScreens()
399 density->compiled_attribute = xml::AaptAttribute(Attribute(), {kScreenDensityResourceId}); in AddScreens()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp244 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
388 cloned_attr.compiled_attribute = attr.compiled_attribute; in Clone()
DXmlDom.h81 std::optional<AaptAttribute> compiled_attribute; member
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp772 if (attr.compiled_attribute) { in SerializeXmlToPb()
773 const ResourceId attr_id = attr.compiled_attribute.value().id.value_or(ResourceId{}); in SerializeXmlToPb()
DProtoSerialize_test.cpp272 attr.compiled_attribute = xml::AaptAttribute(Attribute{}, ResourceId(0x01010000)); in TEST()
325 ASSERT_TRUE(actual_attr.compiled_attribute); in TEST()
326 ASSERT_TRUE(actual_attr.compiled_attribute.value().id); in TEST()
DProtoDeserialize.cpp1047 attr.compiled_attribute = xml::AaptAttribute{Attribute(), ResourceId(pb_attr.resource_id())}; in DeserializeXmlFromPb()
/frameworks/base/tools/aapt2/
DDebug.cpp496 if (attr.compiled_attribute) { in Visit()
498 printer_->Print(attr.compiled_attribute.value().id.value_or(ResourceId(0)).to_string()); in Visit()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp106 if (a.compiled_attribute && a.compiled_attribute.value().id) { in FindAttribute()
107 if (a.compiled_attribute.value().id.value() == resd_id) { in FindAttribute()