| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2020 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <resources> |
| 18 | <!-- Determines whether the shell features all run on another thread. This is to be overrided |
| 19 | by the resources of the app using the Shell library. --> |
| 20 | <bool name="config_enableShellMainThread">false</bool> |
| 21 | |
| 22 | <!-- Determines whether to register the shell task organizer on init. |
| 23 | TODO(b/238217847): This config is temporary until we refactor the base WMComponent. --> |
| 24 | <bool name="config_registerShellTaskOrganizerOnInit">true</bool> |
| 25 | |
| 26 | <!-- Determines whether to register the shell transitions on init. |
| 27 | TODO(b/238217847): This config is temporary until we refactor the base WMComponent. --> |
| 28 | <bool name="config_registerShellTransitionsOnInit">true</bool> |
| 29 | |
| 30 | <!-- Animation duration for PIP when entering. --> |
| 31 | <integer name="config_pipEnterAnimationDuration">425</integer> |
| 32 | |
| 33 | <!-- Animation duration for PIP when exiting. --> |
| 34 | <integer name="config_pipExitAnimationDuration">250</integer> |
| 35 | |
| 36 | <!-- Animation duration for resizing of PIP. --> |
| 37 | <integer name="config_pipResizeAnimationDuration">425</integer> |
| 38 | |
| 39 | <!-- Animation duration for crossfading of PIP (specifically to fade out the layer on top). --> |
| 40 | <integer name="config_pipCrossfadeAnimationDuration">150</integer> |
| 41 | |
| 42 | <!-- Allow dragging the PIP to a location to close it --> |
| 43 | <bool name="config_pipEnableDismissDragToEdge">true</bool> |
| 44 | |
| 45 | <!-- Allow PIP to resize to a slightly bigger state upon touch/showing the menu --> |
| 46 | <bool name="config_pipEnableResizeForMenu">true</bool> |
| 47 | |
| 48 | <!-- Allow PIP to resize via dragging the corner of PiP. --> |
| 49 | <bool name="config_pipEnableDragCornerResize">false</bool> |
| 50 | |
| 51 | <!-- PiP minimum size, which is a % based off the shorter side of display width and height --> |
| 52 | <fraction name="config_pipShortestEdgePercent">40%</fraction> |
| 53 | |
| 54 | <!-- Show PiP enter split icon, which allows apps to directly enter splitscreen from PiP. --> |
| 55 | <bool name="config_pipEnableEnterSplitButton">false</bool> |
| 56 | |
| 57 | <!-- Time (duration in milliseconds) that the shell waits for an app to close the PiP by itself |
| 58 | if a custom action is present before closing it. --> |
| 59 | <integer name="config_pipForceCloseDelay">1000</integer> |
| 60 | |
| 61 | <!-- Animation duration when using long press on recents to dock --> |
| 62 | <integer name="long_press_dock_anim_duration">250</integer> |
| 63 | |
| 64 | <!-- Animation duration for translating of one handed when trigger / dismiss. --> |
| 65 | <integer name="config_one_handed_translate_animation_duration">600</integer> |
| 66 | |
| 67 | <!-- One handed mode default offset % of display size --> |
| 68 | <fraction name="config_one_handed_offset">40%</fraction> |
| 69 | |
| 70 | <!-- Allow one handed to enable round corner --> |
| 71 | <bool name="config_one_handed_enable_round_corner">true</bool> |
| 72 | |
| 73 | <!-- Bounds [left top right bottom] on screen for picture-in-picture (PIP) windows, |
| 74 | when the PIP menu is shown in center. --> |
| 75 | <string translatable="false" name="pip_menu_bounds">"596 280 1324 690"</string> |
| 76 | |
| 77 | <!-- Animation duration when exit starting window: fade out icon --> |
| 78 | <integer name="starting_window_app_reveal_icon_fade_out_duration">133</integer> |
| 79 | |
| 80 | <!-- Animation duration when exit starting window: reveal app --> |
| 81 | <integer name="starting_window_app_reveal_anim_delay">83</integer> |
| 82 | |
| 83 | <!-- Animation duration when exit starting window: reveal app --> |
| 84 | <integer name="starting_window_app_reveal_anim_duration">266</integer> |
| 85 | |
| 86 | <!-- Default insets [LEFT/RIGHTxTOP/BOTTOM] from the screen edge for picture-in-picture windows. |
| 87 | These values are in DPs and will be converted to pixel sizes internally. --> |
| 88 | <string translatable="false" name="config_defaultPictureInPictureScreenEdgeInsets"> |
| 89 | 16x16 |
| 90 | </string> |
| 91 | |
| 92 | <!-- The percentage of the screen width to use for the default width or height of |
| 93 | picture-in-picture windows. Regardless of the percent set here, calculated size will never |
| 94 | be smaller than @dimen/default_minimal_size_pip_resizable_task. --> |
| 95 | <item name="config_pictureInPictureDefaultSizePercent" format="float" type="dimen">0.23</item> |
| 96 | |
| 97 | <!-- The default aspect ratio for picture-in-picture windows. --> |
| 98 | <item name="config_pictureInPictureDefaultAspectRatio" format="float" type="dimen"> |
| 99 | 1.777778 |
| 100 | </item> |
| 101 | |
| 102 | <!-- This is the limit for the max and min aspect ratio (1 / this value) at which the min size |
| 103 | will be used instead of an adaptive size based loosely on area. --> |
| 104 | <item name="config_pictureInPictureAspectRatioLimitForMinSize" format="float" type="dimen"> |
| 105 | 1.777778 |
| 106 | </item> |
| 107 | |
| 108 | <!-- The default gravity for the picture-in-picture window. |
| 109 | Currently, this maps to Gravity.BOTTOM | Gravity.RIGHT --> |
| 110 | <integer name="config_defaultPictureInPictureGravity">0x55</integer> |
| 111 | |
| 112 | <!-- Whether to dim a split-screen task when the other is the IME target --> |
| 113 | <bool name="config_dimNonImeAttachedSide">true</bool> |
| 114 | |
| 115 | <!-- Components support to launch multiple instances into split-screen --> |
| 116 | <string-array name="config_appsSupportMultiInstancesSplit"> |
| 117 | </string-array> |
| 118 | |
| 119 | <!-- Whether the extended restart dialog is enabled --> |
| 120 | <bool name="config_letterboxIsRestartDialogEnabled">false</bool> |
| 121 | |
| 122 | <!-- Whether the additional education about reachability is enabled --> |
| 123 | <bool name="config_letterboxIsReachabilityEducationEnabled">false</bool> |
| 124 | </resources> |