• Home
  • Raw
  • Download

Lines Matching refs:ns

247             const char16_t* ns = inXml->getElementNamespace(&nslen);  in parseStyledString()  local
248 if (ns == NULL) { in parseStyledString()
249 ns = (const char16_t*)"\0\0"; in parseStyledString()
252 const String8 nspace(String16(ns, nslen)); in parseStyledString()
304 const char16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
305 if (ns == NULL) { in parseStyledString()
306 ns = (const char16_t*)"\0\0"; in parseStyledString()
309 const String8 nspace(String16(ns, nslen)); in parseStyledString()
418 const char16_t* ns) in build_namespace() argument
421 if (ns != NULL) { in build_namespace()
422 str = String8(ns); in build_namespace()
464 String8 ns = build_namespace(namespaces, ns16); in printXMLBlock() local
468 printf("%s%s(0x%08x)", ns.string(), name.string(), res); in printXMLBlock()
470 printf("%s%s", ns.string(), name.string()); in printXMLBlock()
502 namespace_entry ns; in printXMLBlock() local
506 ns.prefix = String8(prefix16); in printXMLBlock()
508 ns.prefix = "<DEF>"; in printXMLBlock()
510 ns.uri = String8(block->getNamespaceUri(&len)); in printXMLBlock()
511 namespaces.push(ns); in printXMLBlock()
512 printf("%sN: %s=%s\n", prefix.string(), ns.prefix.string(), in printXMLBlock()
513 ns.uri.string()); in printXMLBlock()
520 const namespace_entry& ns = namespaces.top(); in printXMLBlock() local
529 if (ns.prefix != pr) { in printXMLBlock()
532 prefix.string(), pr.string(), ns.prefix.string()); in printXMLBlock()
535 if (ns.uri != uri) { in printXMLBlock()
538 prefix.string(), uri.string(), ns.uri.string()); in printXMLBlock()
710 const XMLNode::attribute_entry* XMLNode::getAttribute(const String16& ns, in getAttribute() argument
715 if (ae.ns == ns && ae.name == name) { in getAttribute()
723 bool XMLNode::removeAttribute(const String16& ns, const String16& name) in removeAttribute() argument
727 if (ae.ns == ns && ae.name == name) { in removeAttribute()
735 XMLNode::attribute_entry* XMLNode::editAttribute(const String16& ns, in editAttribute() argument
740 if (ae->ns == ns && ae->name == name) { in editAttribute()
822 status_t XMLNode::addAttribute(const String16& ns, const String16& name, in addAttribute() argument
830 if (ns != RESOURCES_TOOLS_NAMESPACE) { in addAttribute()
833 e.ns = ns; in addAttribute()
1021 if (e.ns.size() <= 0) continue; in assignResourceIds()
1023 … String16 pkg(getNamespaceResourcePackage(String16(assets->getPackage()), e.ns, &nsIsPublic)); in assignResourceIds()
1029 String8(e.ns).string(), in assignResourceIds()
1169 String8 attrNs(attr.ns); in print()
1361 if (ae.ns.size() > 0) { in collect_strings()
1362 dest->add(ae.ns, true); in collect_strings()
1502 attrExt.ns.index = htodl(strings.offsetForString(mNamespaceUri)); in flatten_node()
1504 attrExt.ns.index = htodl((uint32_t)-1); in flatten_node()
1516 if (ae.ns.size() == 0) { in flatten_node()
1568 if (ae.ns.size() > 0) { in flatten_node()
1569 attr.ns.index = htodl(strings.offsetForString(ae.ns)); in flatten_node()
1571 attr.ns.index = htodl((uint32_t)-1); in flatten_node()
1609 endElementExt.ns.index = attrExt.ns.index; in flatten_node()