MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / searchElement

Method searchElement

tools/aapt/XMLNode.cpp:754–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754sp<XMLNode> XMLNode::searchElement(const String16& tagNamespace, const String16& tagName)
755{
756 if (getType() == XMLNode::TYPE_ELEMENT
757 && mNamespaceUri == tagNamespace
758 && mElementName == tagName) {
759 return this;
760 }
761
762 for (size_t i=0; i<mChildren.size(); i++) {
763 sp<XMLNode> found = mChildren.itemAt(i)->searchElement(tagNamespace, tagName);
764 if (found != NULL) {
765 return found;
766 }
767 }
768
769 return NULL;
770}
771
772sp<XMLNode> XMLNode::getChildElement(const String16& tagNamespace, const String16& tagName)
773{

Callers 1

massageManifestFunction · 0.80

Calls 2

getTypeFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected