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()
324 el->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
381 cloned_attr.namespace_uri = attr.namespace_uri; in Clone()
421 if (ns == attr.namespace_uri && name == attr.name) { in FindAttribute()
431 return ns == attr.namespace_uri && name == attr.name; in RemoveAttribute()
467 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()
119 if (node->namespace_uri.empty()) { in Visit()
125 } else if (node->namespace_uri == xml::kSchemaAndroid) { in Visit()
130 if (attr.namespace_uri.empty() && attr.name == "class") { in Visit()
139 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "name") { in Visit()
143 } else if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "onClick") { in Visit()
161 if (node->namespace_uri.empty() && node->name == "item") { in Visit()
174 if (attr.namespace_uri == xml::kSchemaAndroid && attr.name == "onClick") { in Visit()
194 if (node->namespace_uri.empty()) { 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/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.cpp103 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit()
DManifestFixer.cpp505 if (child_el->namespace_uri.empty()) { in RenameManifestPackage()
524 if (!root || !root->namespace_uri.empty() || root->name != "manifest") { in Consume()
/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/
DDebug.cpp475 if (!el->namespace_uri.empty()) { in Visit()
476 printer_->Print(el->namespace_uri); in Visit()
484 if (!attr.namespace_uri.empty()) { in Visit()
485 printer_->Print(attr.namespace_uri); in Visit()
DResources.proto552 string namespace_uri = 2; field
575 string namespace_uri = 1; field
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp186 element.namespace_uri = "uri://"; in TEST()
198 attr.namespace_uri = xml::kSchemaAndroid; in TEST()
231 EXPECT_THAT(actual_el.namespace_uri, StrEq("uri://")); in TEST()
245 EXPECT_THAT(actual_attr.namespace_uri, StrEq(xml::kSchemaAndroid)); in TEST()
DProtoDeserialize.cpp966 out_el->namespace_uri = pb_el.namespace_uri(); in DeserializeXmlFromPb()
982 attr.namespace_uri = pb_attr.namespace_uri(); in DeserializeXmlFromPb()
DProtoSerialize.cpp687 pb_element->set_namespace_uri(el.namespace_uri); in SerializeXmlToPb()
701 pb_attr->set_namespace_uri(attr.namespace_uri); in SerializeXmlToPb()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp279 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.cpp470 if (el && el->namespace_uri.empty()) { in LinkAndVersionXmlFile()
917 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromManifest()
978 if (child_el->namespace_uri.empty() && child_el->name == "uses-split") { in ExtractAppInfoFromManifest()