/frameworks/base/tools/aapt2/xml/ |
D | XmlUtil.cpp | 26 Maybe<ExtractedPackage> extractPackageFromNamespace(const std::u16string& namespaceUri) { in extractPackageFromNamespace() argument 27 if (util::stringStartsWith<char16_t>(namespaceUri, kSchemaPublicPrefix)) { in extractPackageFromNamespace() 29 StringPiece16 package = namespaceUri; in extractPackageFromNamespace() 36 } else if (util::stringStartsWith<char16_t>(namespaceUri, kSchemaPrivatePrefix)) { in extractPackageFromNamespace() 38 StringPiece16 package = namespaceUri; in extractPackageFromNamespace() 45 } else if (namespaceUri == kSchemaAuto) { in extractPackageFromNamespace()
|
D | XmlPullParser.h | 129 std::u16string namespaceUri; member 144 const_iterator findAttribute(StringPiece16 namespaceUri, StringPiece16 name) const; 256 int cmp = namespaceUri.compare(rhs.namespaceUri); in compare() 273 inline XmlPullParser::const_iterator XmlPullParser::findAttribute(StringPiece16 namespaceUri, in findAttribute() argument 277 std::pair<StringPiece16, StringPiece16>(namespaceUri, name), in findAttribute() 279 int cmp = attr.namespaceUri.compare(0, attr.namespaceUri.size(), in findAttribute() 289 if (iter != endIter && namespaceUri == iter->namespaceUri && name == iter->name) { in findAttribute()
|
D | XmlActionExecutor.cpp | 45 if (!el->namespaceUri.empty()) { in printElementToDiagMessage() 46 *msg << el->namespaceUri << ":"; in printElementToDiagMessage() 59 if (childEl->namespaceUri.empty()) { in execute() 93 if (el->namespaceUri.empty()) { in execute()
|
D | XmlDom.cpp | 83 ns->namespaceUri = util::utf8ToUtf16(uri); in startNamespaceHandler() 98 return std::tie(lhs.namespaceUri, lhs.name, lhs.value) < in lessAttribute() 99 std::tie(rhs.namespaceUri, rhs.name, rhs.value); in lessAttribute() 107 splitName(name, &el->namespaceUri, &el->name); in startElementHandler() 111 splitName(*attrs++, &attribute.namespaceUri, &attribute.name); in startElementHandler() 212 attr.namespaceUri.assign(str16, len); in copyAttributes() 258 node->namespaceUri.assign(str16, len); in inflate() 269 node->namespaceUri.assign(str16, len); in inflate() 352 if (ns == attr.namespaceUri && name == attr.name) { in findAttribute() 376 if (ns == el->namespaceUri && name == el->name) { in findChildWithAttribute() [all …]
|
D | XmlDom.h | 67 std::u16string namespaceUri; member 79 std::u16string namespaceUri; member 91 std::u16string namespaceUri; member
|
D | XmlPullParser.cpp | 207 std::u16string namespaceUri = uri != nullptr ? util::utf8ToUtf16(uri) : std::u16string(); in startNamespaceHandler() local 208 parser->mNamespaceUris.push(namespaceUri); in startNamespaceHandler() 214 namespaceUri in startNamespaceHandler() 229 splitName(*attrs++, attribute.namespaceUri, attribute.name); in startElementHandler()
|
D | XmlUtil.h | 58 Maybe<ExtractedPackage> extractPackageFromNamespace(const std::u16string& namespaceUri);
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 41 if (!node->namespaceUri.empty()) { in visit() 43 node->namespaceUri); in visit() 81 if (node->namespaceUri.empty()) { in visit() 83 } else if (node->namespaceUri == xml::kSchemaAndroid) { in visit() 88 if (checkClass && attr.namespaceUri.empty() && attr.name == u"class" && in visit() 91 } else if (checkName && attr.namespaceUri == xml::kSchemaAndroid && in visit() 94 } else if (attr.namespaceUri == xml::kSchemaAndroid && attr.name == u"onClick") { in visit() 109 if (node->namespaceUri.empty()) { in visit() 129 bool checkClass = node->namespaceUri.empty() && in visit() 147 if (node->namespaceUri.empty()) { in visit()
|
D | ManifestClassGenerator.cpp | 90 if (el->name != u"manifest" && !el->namespaceUri.empty()) { in generateManifestClass() 104 if (childEl->namespaceUri.empty()) { in generateManifestClass()
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener.cpp | 83 addString(node->namespaceUri, kLowPriority, &flatNs->uri); in writeNamespace() 120 addString(node->namespaceUri, kLowPriority, &flatElem->ns); in visit() 140 addString(node->namespaceUri, kLowPriority, &flatEndElem->ns); in visit() 154 int diff = a->namespaceUri.compare(b->namespaceUri); in cmpXmlAttributeById() 198 } else if (xmlAttr->namespaceUri.empty()) { in writeAttributes() 208 addString(xmlAttr->namespaceUri, kLowPriority, &flatAttr->ns); in writeAttributes()
|
D | XmlFlattener_test.cpp | 141 namespaceUri = tree.getNamespaceUri(&len); in TEST_F() 142 ASSERT_EQ(StringPiece16(namespaceUri, len), u"http://com.test"); in TEST_F()
|
/frameworks/base/tools/aapt/ |
D | XMLNode.cpp | 70 String16 getNamespaceResourcePackage(String16 appPackage, String16 namespaceUri, bool* outIsPublic) in getNamespaceResourcePackage() argument 76 if(namespaceUri.startsWith(RESOURCES_PREFIX_AUTO_PACKAGE)) { in getNamespaceResourcePackage() 78 printf("Using default application package: %s -> %s\n", String8(namespaceUri).string(), in getNamespaceResourcePackage() 83 } else if (namespaceUri.startsWith(RESOURCES_PREFIX)) { in getNamespaceResourcePackage() 85 } else if (namespaceUri.startsWith(RESOURCES_PRV_PREFIX)) { in getNamespaceResourcePackage() 96 return String16(namespaceUri, namespaceUri.size()-prefixSize, prefixSize); in getNamespaceResourcePackage()
|
D | XMLNode.h | 22 String16 getNamespaceResourcePackage(String16 namespaceUri, bool* outIsPublic = NULL);
|
/frameworks/base/tools/aapt2/link/ |
D | XmlReferenceLinker.cpp | 81 xml::extractPackageFromNamespace(attr.namespaceUri); in visit()
|
D | ManifestFixer.cpp | 260 if (!root || !root->namespaceUri.empty() || root->name != u"manifest") { in consume()
|
D | Link.cpp | 375 if (el && el->namespaceUri.empty()) { in linkAndVersionXmlFile() 582 if (manifestEl->namespaceUri.empty() && manifestEl->name == u"manifest") { in extractAppInfoFromManifest()
|