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

Function build_namespace

tools/aapt/XMLNode.cpp:397–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static String8 build_namespace(const Vector<namespace_entry>& namespaces,
398 const uint16_t* ns)
399{
400 String8 str;
401 if (ns != NULL) {
402 str = String8(ns);
403 const size_t N = namespaces.size();
404 for (size_t i=0; i<N; i++) {
405 const namespace_entry& ne = namespaces.itemAt(i);
406 if (ne.uri == str) {
407 str = ne.prefix;
408 break;
409 }
410 }
411 str.append(":");
412 }
413 return str;
414}
415
416void printXMLBlock(ResXMLTree* block)
417{

Callers 1

printXMLBlockFunction · 0.85

Calls 2

sizeMethod · 0.65
appendMethod · 0.65

Tested by

no test coverage detected