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

Function getAttributeComment

tools/aapt/Resource.cpp:1630–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1628}
1629
1630static String16 getAttributeComment(const sp<AaptAssets>& assets,
1631 const String8& name,
1632 String16* outTypeComment = NULL)
1633{
1634 sp<AaptSymbols> asym = assets->getSymbolsFor(String8("R"));
1635 if (asym != NULL) {
1636 //printf("Got R symbols!\n");
1637 asym = asym->getNestedSymbols().valueFor(String8("attr"));
1638 if (asym != NULL) {
1639 //printf("Got attrs symbols! comment %s=%s\n",
1640 // name.string(), String8(asym->getComment(name)).string());
1641 if (outTypeComment != NULL) {
1642 *outTypeComment = asym->getTypeComment(name);
1643 }
1644 return asym->getComment(name);
1645 }
1646 }
1647 return String16();
1648}
1649
1650static status_t writeLayoutClasses(
1651 FILE* fp, const sp<AaptAssets>& assets,

Callers 2

writeLayoutClassesFunction · 0.85
writeTextLayoutClassesFunction · 0.85

Calls 3

getSymbolsForMethod · 0.80
String16Class · 0.70
getCommentMethod · 0.45

Tested by

no test coverage detected