Make the rotation-lock QS tile available for display on phones. Devices < sw600dp are only allowed to lock rotation to their natural orientation (i.e. portrait on most phones), so tweak the QS tile label to make this clear. e.g. "Locked to Portrait" instead of "Rotation Locked" on portrait phones. Simplify RotationLockController now that the sw600 check is no longer hardcoded in RotationPolicy. Remove redundant sw600dp check in SystemUI, everything driven from the RotationPolicy helper, though SystemUI can still choose not to display the tile at all with a resource config. Clean up some of the docs in RotationPolicy to make clear the subtle distinction between the two ways of locking rotation: - From Accessibility (locks to natural orientation on all devices) - From System UI (locks to natural < sw600dp, else current rotation) Bug:11062710 Change-Id: I5caa4485c9501315da9fed964d6667d3012b43cb
112 lines
4.7 KiB
XML
112 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
** Copyright 2009, The Android Open Source Project
|
|
**
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
** you may not use this file except in compliance with the License.
|
|
** You may obtain a copy of the License at
|
|
**
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
**
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
** See the License for the specific language governing permissions and
|
|
** limitations under the License.
|
|
*/
|
|
-->
|
|
|
|
<!-- These resources are around just to allow their values to be customized
|
|
for different hardware and product builds. -->
|
|
<resources>
|
|
|
|
<!-- Whether we're using the tablet-optimized recents interface (we use this
|
|
value at runtime for some things) -->
|
|
<bool name="config_recents_interface_for_tablets">false</bool>
|
|
|
|
<!-- Whether recents thumbnails should stretch in both x and y to fill their
|
|
ImageView -->
|
|
<bool name="config_recents_thumbnail_image_fits_to_xy">false</bool>
|
|
|
|
<!-- Control whether status bar should distinguish HSPA data icon form UMTS
|
|
data icon on devices -->
|
|
<bool name="config_hspa_data_distinguishable">false</bool>
|
|
|
|
<!-- Component to be used as the status bar service. Must implement the IStatusBar
|
|
interface. This name is in the ComponentName flattened format (package/class) -->
|
|
<string name="config_statusBarComponent" translatable="false">com.android.systemui.statusbar.phone.PhoneStatusBar</string>
|
|
|
|
<!-- Whether or not we show the number in the bar. -->
|
|
<bool name="config_statusBarShowNumber">false</bool>
|
|
|
|
<!-- How many icons may be shown at once in the system bar. Includes any
|
|
slots that may be reused for things like IME control. -->
|
|
<integer name="config_maxNotificationIcons">5</integer>
|
|
|
|
<!-- Show phone (voice) signal strength instead of data in mobile RSSI. -->
|
|
<bool name="config_showPhoneRSSIForData">false</bool>
|
|
|
|
<!-- When true, show 1/2G networks as 3G. -->
|
|
<bool name="config_showMin3G">false</bool>
|
|
|
|
<!-- Show rotation lock toggle in System UI-->
|
|
<bool name="config_showRotationLock">true</bool>
|
|
|
|
<!-- Amount of time to hold off before showing the search panel when the user presses home -->
|
|
<integer name="config_show_search_delay">200</integer>
|
|
|
|
<!-- Vibration duration for MultiWaveView used in SearchPanelView -->
|
|
<integer translatable="false" name="config_vibration_duration">0</integer>
|
|
|
|
<!-- Vibration duration for MultiWaveView used in SearchPanelView -->
|
|
<integer translatable="false" name="config_search_panel_view_vibration_duration">20</integer>
|
|
|
|
<!-- The length of the vibration when the notification pops open. -->
|
|
<integer name="one_finger_pop_duration_ms">10</integer>
|
|
|
|
<!-- Whether we're using the tablet-optimized recents interface (we use this
|
|
value at runtime for some things) -->
|
|
<integer name="status_bar_recents_bg_gradient_degrees">90</integer>
|
|
|
|
<!-- decay duration (from size_max -> size), in ms -->
|
|
<integer name="navigation_bar_deadzone_hold">333</integer>
|
|
<integer name="navigation_bar_deadzone_decay">333</integer>
|
|
|
|
<bool name="config_dead_zone_flash">false</bool>
|
|
|
|
<!-- Min alpha % that recent items will fade to while being dismissed -->
|
|
<integer name="config_recent_item_min_alpha">3</integer>
|
|
|
|
<!-- The number of columns in the QuickSettings -->
|
|
<integer name="quick_settings_num_columns">3</integer>
|
|
|
|
<!-- The number of columns that the top level tiles span in the QuickSettings -->
|
|
<integer name="quick_settings_user_time_settings_tile_span">1</integer>
|
|
|
|
<!-- Whether or not the RSSI tile is capitalized or not. -->
|
|
<bool name="quick_settings_rssi_tile_capitalization">true</bool>
|
|
|
|
<!-- Timeouts for brightness dialog to disappear -->
|
|
<integer name="quick_settings_brightness_dialog_short_timeout">2000</integer>
|
|
<integer name="quick_settings_brightness_dialog_long_timeout">4000</integer>
|
|
|
|
<integer name="blinds_pop_duration_ms">10</integer>
|
|
|
|
<!-- Disable the separate quick settings panel -->
|
|
<bool name="config_hasSettingsPanel">true</bool>
|
|
|
|
<!-- Enable the "flip settings" panel -->
|
|
<bool name="config_hasFlipSettingsPanel">true</bool>
|
|
|
|
<!-- Should "4G" be shown instead of "LTE" when the network is NETWORK_TYPE_LTE? -->
|
|
<bool name="config_show4GForLTE">true</bool>
|
|
|
|
<!-- milliseconds before the heads up notification auto-dismisses. -->
|
|
<integer name="heads_up_notification_decay">3700</integer>
|
|
|
|
<!-- milliseconds before the heads up notification accepts touches. -->
|
|
<integer name="heads_up_sensitivity_delay">700</integer>
|
|
</resources>
|
|
|