Lines Matching refs:attr

228       Attribute attr;  in CopyAttributes()  local
232 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
237 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
242 attr.compiled_attribute = AaptAttribute(::aapt::Attribute(), {res_id}); in CopyAttributes()
247 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
257 attr.compiled_value = ResourceUtils::ParseBinaryResValue( in CopyAttributes()
262 el->attributes.push_back(std::move(attr)); in CopyAttributes()
378 for (const xml::Attribute& attr : src.attributes) { in Clone() local
380 cloned_attr.name = attr.name; in Clone()
381 cloned_attr.namespace_uri = attr.namespace_uri; in Clone()
382 cloned_attr.value = attr.value; in Clone()
383 cloned_attr.compiled_attribute = attr.compiled_attribute; in Clone()
384 if (attr.compiled_value != nullptr) { in Clone()
385 cloned_attr.compiled_value.reset(attr.compiled_value->Clone(&cloned->string_pool)); in Clone()
420 for (const auto& attr : attributes) { in FindAttribute() local
421 if (ns == attr.namespace_uri && name == attr.name) { in FindAttribute()
422 return &attr; in FindAttribute()
430 [&](const Attribute& attr) -> bool { in RemoveAttribute() argument
431 return ns == attr.namespace_uri && name == attr.name; in RemoveAttribute()
438 Attribute* attr = FindAttribute(ns, name); in FindOrCreateAttribute() local
439 if (attr == nullptr) { in FindOrCreateAttribute()
441 attr = &attributes.back(); in FindOrCreateAttribute()
443 return attr; in FindOrCreateAttribute()
472 const Attribute* attr = el->FindAttribute(attr_ns, attr_name); in FindChildWithAttribute() local
473 if (attr && attr_value == attr->value) { in FindChildWithAttribute()