diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-05-14 14:25:36 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-05-15 15:10:58 -0700 |
commit | 2738c96d998dedfae5b4670d588d0cd299c4ca0f (patch) | |
tree | 76b8571676d42a9c0b3bfa00f1937eebf2c05698 /include | |
parent | 038959e851603500eb39b52fef33cbe75dbd73e3 (diff) | |
download | frameworks_base-2738c96d998dedfae5b4670d588d0cd299c4ca0f.zip frameworks_base-2738c96d998dedfae5b4670d588d0cd299c4ca0f.tar.gz frameworks_base-2738c96d998dedfae5b4670d588d0cd299c4ca0f.tar.bz2 |
Add -round and -notround qualifier to android runtime/aapt
The round qualifier denotes a device with a screen shape that
is round. The qualifier shows up after the 'long/notlong' qualifier
and before the orientation 'port/land/square' qualifiers.
Change-Id: I3044258b2703a9165694b79725bade770fa6cea1
Diffstat (limited to 'include')
-rw-r--r-- | include/androidfw/ResourceTypes.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/androidfw/ResourceTypes.h b/include/androidfw/ResourceTypes.h index b15caeb..5130e6c 100644 --- a/include/androidfw/ResourceTypes.h +++ b/include/androidfw/ResourceTypes.h @@ -1132,6 +1132,24 @@ struct ResTable_config // chars. Interpreted in conjunction with the locale field. char localeVariant[8]; + enum { + // screenLayout2 bits for round/notround. + MASK_SCREENROUND = 0x03, + SCREENROUND_ANY = ACONFIGURATION_SCREENROUND_ANY, + SCREENROUND_NO = ACONFIGURATION_SCREENROUND_NO, + SCREENROUND_YES = ACONFIGURATION_SCREENROUND_YES, + }; + + // An extension of screenConfig. + union { + struct { + uint8_t screenLayout2; // Contains round/notround qualifier. + uint8_t screenConfigPad1; // Reserved padding. + uint16_t screenConfigPad2; // Reserved padding. + }; + uint32_t screenConfig2; + }; + void copyFromDeviceNoSwap(const ResTable_config& o); void copyFromDtoH(const ResTable_config& o); @@ -1160,6 +1178,7 @@ struct ResTable_config CONFIG_SCREEN_LAYOUT = ACONFIGURATION_SCREEN_LAYOUT, CONFIG_UI_MODE = ACONFIGURATION_UI_MODE, CONFIG_LAYOUTDIR = ACONFIGURATION_LAYOUTDIR, + CONFIG_SCREEN_ROUND = ACONFIGURATION_SCREEN_ROUND, }; // Compare two configuration, returning CONFIG_* flags set for each value |