/frameworks/base/tools/aapt2/xml/ |
D | XmlUtil.cpp | 38 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()
|
D | XmlPullParser.h | 104 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()
|
D | XmlActionExecutor.cpp | 45 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()
|
D | XmlDom.cpp | 102 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 …]
|
D | XmlPullParser.cpp | 88 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()
|
D | XmlUtil.h | 56 Maybe<ExtractedPackage> ExtractPackageFromNamespace(const std::string& namespace_uri);
|
D | XmlDom.h | 78 std::string namespace_uri; member 92 std::string namespace_uri; variable
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.cpp | 50 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 …]
|
D | ManifestClassGenerator.cpp | 90 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/ |
D | XmlFlattener.cpp | 52 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/ |
D | XmlNamespaceRemover.cpp | 37 attr.namespace_uri.clear(); in Visit() 39 el->namespace_uri.clear(); in Visit()
|
D | XmlNamespaceRemover_test.cpp | 35 EXPECT_THAT(attr.namespace_uri, StrEq("")); in Visit() 37 EXPECT_THAT(el->namespace_uri, StrEq("")); in Visit()
|
D | XmlCompatVersioner.cpp | 26 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()
|
D | XmlReferenceLinker.cpp | 94 xml::ExtractPackageFromNamespace(attr.namespace_uri)) { in Visit()
|
D | ManifestFixer.cpp | 459 if (child_el->namespace_uri.empty()) { in RenameManifestPackage() 478 if (!root || !root->namespace_uri.empty() || root->name != "manifest") { in Consume()
|
/frameworks/base/tools/aapt2/ |
D | Debug.cpp | 467 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()
|
D | Resources.proto | 541 string namespace_uri = 2; field 564 string namespace_uri = 1; field
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 182 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()
|
D | ProtoDeserialize.cpp | 958 out_el->namespace_uri = pb_el.namespace_uri(); in DeserializeXmlFromPb() 974 attr.namespace_uri = pb_attr.namespace_uri(); in DeserializeXmlFromPb()
|
D | ProtoSerialize.cpp | 665 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/ |
D | InlineXmlFormatParser.cpp | 45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
|
/frameworks/base/tools/aapt2/optimize/ |
D | MultiApkGenerator.cpp | 275 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in UpdateManifest()
|
/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser.cpp | 131 node->namespace_uri.clear(); in Visit() 306 std::string& xml_ns = root->namespace_uri; in ExtractConfiguration()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util.cpp | 343 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromBinaryManifest()
|
D | Link.cpp | 463 if (el && el->namespace_uri.empty()) { in LinkAndVersionXmlFile() 909 if (!manifest_el->namespace_uri.empty() || manifest_el->name != "manifest") { in ExtractAppInfoFromManifest()
|