Adrian Roos | 30f5321 | 2018-01-05 16:14:34 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright (C) 2018 The Android Open Source Project |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> |
| 18 | |
| 19 | <!-- The bounding path of the cutout region of the main built-in display. |
| 20 | Must either be empty if there is no cutout region, or a string that is parsable by |
Adrian Roos | 16693f3 | 2018-01-18 17:45:52 +0100 | [diff] [blame] | 21 | {@link android.util.PathParser}. |
| 22 | |
| 23 | The path is assumed to be specified in display coordinates with pixel units and in |
| 24 | the display's native orientation, with the origin of the coordinate system at the |
| 25 | center top of the display. |
| 26 | |
| 27 | To facilitate writing device-independent emulation overlays, the marker `@dp` can be |
| 28 | appended after the path string to interpret coordinates in dp instead of px units. |
| 29 | Note that a physical cutout should be configured in pixels for the best results. |
| 30 | --> |
Adrian Roos | 30f5321 | 2018-01-05 16:14:34 +0100 | [diff] [blame] | 31 | <string translatable="false" name="config_mainBuiltInDisplayCutout"> |
Adrian Roos | 16693f3 | 2018-01-18 17:45:52 +0100 | [diff] [blame] | 32 | M 0,0 |
Adrian Roos | 88553e9 | 2018-01-19 19:44:14 +0100 | [diff] [blame] | 33 | L -48, 0 |
| 34 | L -44.3940446283, 36.0595537175 |
| 35 | C -43.5582133885, 44.4178661152 -39.6, 48.0 -31.2, 48.0 |
| 36 | L 31.2, 48.0 |
| 37 | C 39.6, 48.0 43.5582133885, 44.4178661152 44.3940446283, 36.0595537175 |
| 38 | L 48, 0 |
Adrian Roos | 16693f3 | 2018-01-18 17:45:52 +0100 | [diff] [blame] | 39 | Z |
| 40 | @dp |
Adrian Roos | 30f5321 | 2018-01-05 16:14:34 +0100 | [diff] [blame] | 41 | </string> |
| 42 | |
Jorim Jaggi | 6064051 | 2018-06-29 01:14:31 +0200 | [diff] [blame] | 43 | <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">@*android:string/config_mainBuiltInDisplayCutout</string> |
| 44 | |
Adrian Roos | 30f5321 | 2018-01-05 16:14:34 +0100 | [diff] [blame] | 45 | <!-- Whether the display cutout region of the main built-in display should be forced to |
Adrian Roos | 88553e9 | 2018-01-19 19:44:14 +0100 | [diff] [blame] | 46 | black in software (to avoid aliasing or emulate a cutout that is not physically existent). |
Adrian Roos | 30f5321 | 2018-01-05 16:14:34 +0100 | [diff] [blame] | 47 | --> |
| 48 | <bool name="config_fillMainBuiltInDisplayCutout">true</bool> |
| 49 | |
| 50 | <!-- Height of the status bar --> |
Adrian Roos | 22af650 | 2018-02-22 16:57:08 +0100 | [diff] [blame] | 51 | <dimen name="status_bar_height_portrait">48dp</dimen> |
| 52 | <dimen name="status_bar_height_landscape">28dp</dimen> |
Evan Laird | 4451fa2 | 2018-01-26 10:02:25 -0500 | [diff] [blame] | 53 | <!-- Height of area above QQS where battery/time go (equal to status bar height if > 48dp) --> |
| 54 | <dimen name="quick_qs_offset_height">48dp</dimen> |
| 55 | <!-- Total height of QQS (quick_qs_offset_height + 128) --> |
| 56 | <dimen name="quick_qs_total_height">176dp</dimen> |
Adrian Roos | 30f5321 | 2018-01-05 16:14:34 +0100 | [diff] [blame] | 57 | |
| 58 | </resources> |
| 59 | |
| 60 | |