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

Method makeConfigsString

tools/aapt/StringPool.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60String8 StringPool::entry::makeConfigsString() const {
61 String8 configStr(configTypeName);
62 if (configStr.size() > 0) configStr.append(" ");
63 if (configs.size() > 0) {
64 for (size_t j=0; j<configs.size(); j++) {
65 if (j > 0) configStr.append(", ");
66 configStr.append(configs[j].toString());
67 }
68 } else {
69 configStr = "(none)";
70 }
71 return configStr;
72}
73
74int StringPool::entry::compare(const entry& o) const {
75 // Strings with styles go first, to reduce the size of the styles array.

Callers 1

sortByConfigMethod · 0.80

Calls 3

sizeMethod · 0.65
appendMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected