summaryrefslogtreecommitdiff
path: root/tools/aapt2/Debug.cpp
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2015-10-22 20:34:36 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-10-22 20:34:36 +0000
commit3b7acbb86207df78eccfeb40aabcc8543703a58f (patch)
tree83f34be40fa67c390d4edbbec8d7b85e450cc879 /tools/aapt2/Debug.cpp
parent1b433617675c58e6878e5eccf1635a43b5377135 (diff)
parent9e10ac70155c993e7053323ad36beaea7bf7d54f (diff)
Merge "AAPT2: Process <java-symbols> and private symbol package"
Diffstat (limited to 'tools/aapt2/Debug.cpp')
-rw-r--r--tools/aapt2/Debug.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/aapt2/Debug.cpp b/tools/aapt2/Debug.cpp
index 84f438520e90..d864f664f9db 100644
--- a/tools/aapt2/Debug.cpp
+++ b/tools/aapt2/Debug.cpp
@@ -124,17 +124,18 @@ void Debug::printTable(ResourceTable* table) {
}
for (const ResourceEntry* entry : sortedEntries) {
- ResourceId id = {
- package->id ? package->id.value() : uint8_t(0),
- type->id ? type->id.value() : uint8_t(0),
- entry->id ? entry->id.value() : uint16_t(0)
- };
+ ResourceId id(package->id ? package->id.value() : uint8_t(0),
+ type->id ? type->id.value() : uint8_t(0),
+ entry->id ? entry->id.value() : uint16_t(0));
+ ResourceName name(package->name, type->type, entry->name);
- ResourceName name = { package->name, type->type, entry->name };
std::cout << " spec resource " << id << " " << name;
- if (entry->publicStatus.isPublic) {
- std::cout << " PUBLIC";
+ switch (entry->symbolStatus.state) {
+ case SymbolState::kPublic: std::cout << " PUBLIC"; break;
+ case SymbolState::kPrivate: std::cout << " _PRIVATE_"; break;
+ default: break;
}
+
std::cout << std::endl;
PrintVisitor visitor;