summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2011-12-14 20:59:30 -0800
committerJoe Onorato <joeo@google.com>2011-12-15 16:16:14 -0800
commit44fcb83b38b062a650ddf556fe7f5e34905df9ea (patch)
treef5726b3011934023b43a46eb3ce3be6742a274ba /tools
parent3766a7a27535101e62af958b1d2d710daa166d7d (diff)
downloadframeworks_base-44fcb83b38b062a650ddf556fe7f5e34905df9ea.zip
frameworks_base-44fcb83b38b062a650ddf556fe7f5e34905df9ea.tar.gz
frameworks_base-44fcb83b38b062a650ddf556fe7f5e34905df9ea.tar.bz2
Add a new ui mode for "appliance"
The idea is that this is a device which is more-or-less headless. It might have some limited interaction capabilities, but it's not something that you want to rely on having. Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
Diffstat (limited to 'tools')
-rw-r--r--tools/aapt/AaptAssets.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index 3d6537a..f0c215e 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -1019,6 +1019,11 @@ bool AaptGroupEntry::getUiModeTypeName(const char* name,
(out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
| ResTable_config::UI_MODE_TYPE_TELEVISION;
return true;
+ } else if (strcmp(name, "appliance") == 0) {
+ if (out) out->uiMode =
+ (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE)
+ | ResTable_config::UI_MODE_TYPE_APPLIANCE;
+ return true;
}
return false;