Home
last modified time | relevance | path

Searched refs:namespace_uri (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/tools/aapt2/xml/
DXmlUtil.cpp38 const std::string& namespace_uri) { in ExtractPackageFromNamespace() argument
39 if (util::StartsWith(namespace_uri, kSchemaPublicPrefix)) { in ExtractPackageFromNamespace()
41 StringPiece package = namespace_uri; in ExtractPackageFromNamespace()
48 } else if (util::StartsWith(namespace_uri, kSchemaPrivatePrefix)) { in ExtractPackageFromNamespace()
50 StringPiece package = namespace_uri; in ExtractPackageFromNamespace()
57 } else if (namespace_uri == kSchemaAuto) { in ExtractPackageFromNamespace()
91 [](const Attribute& attr) -> bool { return attr.namespace_uri == kSchemaTools; }); in Visit()
DXmlPullParser.h104 const std::string& namespace_uri() const;
135 std::string namespace_uri; member
150 const_iterator FindAttribute(android::StringPiece namespace_uri, android::StringPiece name) const;
288 int cmp = namespace_uri.compare(rhs.namespace_uri); in compare()
306 android::StringPiece namespace_uri, android::StringPiece name) const { in FindAttribute() argument
310 std::pair<android::StringPiece, android::StringPiece>(namespace_uri, name), in FindAttribute()
313 int cmp = attr.namespace_uri.compare( in FindAttribute()
314 0, attr.namespace_uri.size(), rhs.first.data(), rhs.first.size()); in FindAttribute()
323 if (iter != end_iter && namespace_uri == iter->namespace_uri && in FindAttribute()
DXmlActionExecutor.cpp45 if (!el->namespace_uri.empty()) { in PrintElementToDiagMessage()
46 *msg << el->namespace_uri << ":"; in PrintElementToDiagMessage()
59 if (child_el->namespace_uri.empty()) { in Execute()
104 if (el->namespace_uri.empty()) { in Execute()
DXmlDom.cpp102 return std::tie(lhs.namespace_uri, lhs.name, lhs.value) < in less_attribute()
103 std::tie(rhs.namespace_uri, rhs.name, rhs.value); in less_attribute()
122 SplitName(name, &el->namespace_uri, &el->name); in StartElementHandler()
126 SplitName(*attrs++, &attribute.namespace_uri, &attribute.name); in StartElementHandler()
232 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
326 el->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
383 cloned_attr.namespace_uri = attr.namespace_uri; in Clone()
423 if (ns == attr.namespace_uri && name == attr.name) { in FindAttribute()
433 return ns == attr.namespace_uri && name == attr.name; in RemoveAttribute()
469 if (ns == el->namespace_uri && name == el->name) { in FindChildWithAttribute()
[all …]
DXmlPullParser.cpp88 ExtractPackageFromNamespace(namespace_uri()); in Next()
136 const std::string& XmlPullParser::namespace_uri() const { in namespace_uri() function in aapt::xml::XmlPullParser
217 std::string namespace_uri = uri != nullptr ? uri : std::string(); in StartNamespaceHandler() local
218 parser->namespace_uris_.push(namespace_uri); in StartNamespaceHandler()
222 prefix != nullptr ? prefix : std::string(), namespace_uri}); in StartNamespaceHandler()
237 SplitName(*attrs++, &attribute.namespace_uri, &attribute.name); in StartElementHandler()
DXmlUtil.h56 Maybe<ExtractedPackage> ExtractPackageFromNamespace(const std::string& namespace_uri);
DXmlDom.h78 std::string namespace_uri; member
92 std::string namespace_uri; variable
/frameworks/base/tools/aapt2/java/
DProguardRules.cpp50 if (!node->namespace_uri.empty()) { in Visit()
52 xml::ExtractPackageFromNamespace(node->namespace_uri); in Visit()
118 if (node->namespace_uri.empty()) { in Visit()
125 if (attr.namespace_uri.empty() && attr.name == "class") { in Visit()
134 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit()
138 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "onClick") { in Visit()
156 if (node->namespace_uri.empty() && node->name == "item") { in Visit()
158 if (attr.namespace_uri == xml::kSchemaAndroid) { in Visit()
183 if (node->namespace_uri.empty()) { in Visit()
233 node->namespace_uri.empty() && (node->name == "transition" || node->name == "pathMotion"); in Visit()
[all …]
DManifestClassGenerator.cpp90 if (el->name != "manifest" && !el->namespace_uri.empty()) { in GenerateManifestClass()
103 if (child_el->namespace_uri.empty()) { in GenerateManifestClass()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp52 int diff = a->namespace_uri.compare(b->namespace_uri); in cmp_xml_attribute_by_id()
125 AddString(node->namespace_uri, kLowPriority, &flat_elem->ns, in Visit()
147 AddString(node->namespace_uri, kLowPriority, &flat_end_elem->ns, in Visit()
207 if (attr.namespace_uri != xml::kSchemaTools) { in WriteAttributes()
230 } else if (xml_attr->namespace_uri.empty()) { in WriteAttributes()
241 AddString(xml_attr->namespace_uri, kLowPriority, &flat_attr->ns, in WriteAttributes()
/frameworks/base/tools/aapt2/link/
DXmlNamespaceRemover.cpp37 attr.namespace_uri.clear(); in Visit()
39 el->namespace_uri.clear(); in Visit()
DXmlNamespaceRemover_test.cpp35 EXPECT_THAT(attr.namespace_uri, StrEq("")); in Visit()
37 EXPECT_THAT(el->namespace_uri, StrEq("")); in Visit()
DXmlCompatVersioner.cpp26 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
37 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
DXmlReferenceLinker.cpp94 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit()
DManifestFixer.cpp459 if (child_el->namespace_uri.empty()) { in RenameManifestPackage()
478 if (!root || !root->namespace_uri.empty() || root->name != "manifest") { in Consume()
/frameworks/base/tools/aapt2/
DDebug.cpp467 if (!el->namespace_uri.empty()) { in Visit()
468 printer_->Print(el->namespace_uri); in Visit()
476 if (!attr.namespace_uri.empty()) { in Visit()
477 printer_->Print(attr.namespace_uri); in Visit()
DResources.proto541 string namespace_uri = 2; field
564 string namespace_uri = 1; field
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp182 element.namespace_uri = "uri://"; in TEST()
194 attr.namespace_uri = xml::kSchemaAndroid; in TEST()
227 EXPECT_THAT(actual_el.namespace_uri, StrEq("uri://")); in TEST()
241 EXPECT_THAT(actual_attr.namespace_uri, StrEq(xml::kSchemaAndroid)); in TEST()
DProtoDeserialize.cpp958 out_el->namespace_uri = pb_el.namespace_uri(); in DeserializeXmlFromPb()
974 attr.namespace_uri = pb_attr.namespace_uri(); in DeserializeXmlFromPb()
DProtoSerialize.cpp665 pb_element->set_namespace_uri(el.namespace_uri); in SerializeXmlToPb()
679 pb_attr->set_namespace_uri(attr.namespace_uri); in SerializeXmlToPb()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp275 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in UpdateManifest()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp131 node->namespace_uri.clear(); in Visit()
306 std::string& xml_ns = root->namespace_uri; in ExtractConfiguration()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp343 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromBinaryManifest()
DLink.cpp463 if (el && el->namespace_uri.empty()) { in LinkAndVersionXmlFile()
909 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromManifest()