| 1628 | } |
| 1629 | |
| 1630 | static 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 | |
| 1650 | static status_t writeLayoutClasses( |
| 1651 | FILE* fp, const sp<AaptAssets>& assets, |
no test coverage detected