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

Method insertChildAt

tools/aapt/XMLNode.cpp:797–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797status_t XMLNode::insertChildAt(const sp<XMLNode>& child, size_t index)
798{
799 if (getType() == TYPE_CDATA) {
800 SourcePos(mFilename, child->getStartLineNumber()).error("Child to CDATA node.");
801 return UNKNOWN_ERROR;
802 }
803 //printf("Adding child %p to parent %p\n", child.get(), this);
804 mChildren.insertAt(child, index);
805 return NO_ERROR;
806}
807
808status_t XMLNode::addAttribute(const String16& ns, const String16& name,
809 const String16& value)

Callers 1

massageManifestFunction · 0.80

Calls 5

getTypeFunction · 0.85
SourcePosClass · 0.85
getStartLineNumberMethod · 0.80
errorMethod · 0.65
insertAtMethod · 0.45

Tested by

no test coverage detected