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

Method getChildElement

tools/aapt/XMLNode.cpp:772–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772sp<XMLNode> XMLNode::getChildElement(const String16& tagNamespace, const String16& tagName)
773{
774 for (size_t i=0; i<mChildren.size(); i++) {
775 sp<XMLNode> child = mChildren.itemAt(i);
776 if (child->getType() == XMLNode::TYPE_ELEMENT
777 && child->mNamespaceUri == tagNamespace
778 && child->mElementName == tagName) {
779 return child;
780 }
781 }
782
783 return NULL;
784}
785
786status_t XMLNode::addChild(const sp<XMLNode>& child)
787{

Callers 1

massageManifestFunction · 0.80

Calls 2

sizeMethod · 0.65
getTypeMethod · 0.65

Tested by

no test coverage detected