summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-03-07 10:43:52 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-07 10:43:52 +0000
commitc969450acd4924f0f5478274c345207bf2c57768 (patch)
tree16138988d695f302ed6b6ee70b9ef7d08fe2ecdf /core/res
parent1dade011d740c58510d3731be11491dbd028ebda (diff)
parent840c84749a6066b436db4dc94c3e3929a8440575 (diff)
downloadframeworks_base-c969450acd4924f0f5478274c345207bf2c57768.zip
frameworks_base-c969450acd4924f0f5478274c345207bf2c57768.tar.gz
frameworks_base-c969450acd4924f0f5478274c345207bf2c57768.tar.bz2
am 840c8474: Merge "Add config_supportAutoRotation." into klp-modular-dev
* commit '840c84749a6066b436db4dc94c3e3929a8440575': Add config_supportAutoRotation.
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/values/config.xml9
-rw-r--r--core/res/res/values/symbols.xml1
2 files changed, 10 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 38c43fa..932f000 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -372,6 +372,15 @@
<!-- Auto-rotation behavior -->
+ <!-- If true, enables auto-rotation features using the accelerometer.
+ Otherwise, auto-rotation is disabled. Applications may still request
+ to use specific orientations but the sensor is ignored and sensor-based
+ orientations are not available. Furthermore, all auto-rotation related
+ settings are omitted from the system UI. In certain situations we may
+ still use the accelerometer to determine the orientation, such as when
+ docked if the dock is configured to enable the accelerometer. -->
+ <bool name="config_supportAutoRotation">true</bool>
+
<!-- If true, the screen can be rotated via the accelerometer in all 4
rotations as the default behavior. -->
<bool name="config_allowAllRotations">false</bool>
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index f479806..bab2b44 100644
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -1306,6 +1306,7 @@
<java-symbol type="bool" name="config_lidControlsSleep" />
<java-symbol type="bool" name="config_reverseDefaultRotation" />
<java-symbol type="bool" name="config_showNavigationBar" />
+ <java-symbol type="bool" name="config_supportAutoRotation" />
<java-symbol type="bool" name="target_honeycomb_needs_options_menu" />
<java-symbol type="dimen" name="navigation_bar_height" />
<java-symbol type="dimen" name="navigation_bar_height_landscape" />