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

Function getSymbolPackage

tools/aapt/Resource.cpp:1614–1620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612}
1613
1614static String8 getSymbolPackage(const String8& symbol, const sp<AaptAssets>& assets, bool pub) {
1615 ssize_t colon = symbol.find(":", 0);
1616 if (colon >= 0) {
1617 return String8(symbol.string(), colon);
1618 }
1619 return pub ? assets->getPackage() : assets->getSymbolsPrivatePackage();
1620}
1621
1622static String8 getSymbolName(const String8& symbol) {
1623 ssize_t colon = symbol.find(":", 0);

Callers 1

writeLayoutClassesFunction · 0.85

Calls 4

findMethod · 0.80
stringMethod · 0.80
getPackageMethod · 0.45

Tested by

no test coverage detected