Merge "Update rounded corner, cutout and display shape configs" into udc-qpr-dev
This commit is contained in:
commit
4ef9e8648e
5 changed files with 127 additions and 0 deletions
|
@ -240,6 +240,42 @@
|
|||
<integer name="config_stableDeviceDisplayWidth">1080</integer>
|
||||
<integer name="config_stableDeviceDisplayHeight">2400</integer>
|
||||
|
||||
<!-- Whether the display cutout region of the main built-in display should be forced to
|
||||
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
|
||||
-->
|
||||
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
||||
|
||||
<!-- Display cutout configuration -->
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||
m 570.91681,66.138527
|
||||
a 30.915905,27.49891 0 0 0 -61.83181,0 30.915905,27.49891 0 0 0 61.83181,0
|
||||
z
|
||||
@left
|
||||
</string>
|
||||
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
|
||||
m 485.5,0
|
||||
h 110
|
||||
v 121
|
||||
h -110
|
||||
Z
|
||||
@left
|
||||
</string>
|
||||
|
||||
<!-- A string config in svg path format for the main display shape.
|
||||
(@see https://www.w3.org/TR/SVG/paths.html#PathData).
|
||||
|
||||
This config must be set unless:
|
||||
1. {@link Configuration#isScreenRound} is true which means the display shape is circular
|
||||
and the system will auto-generate a circular shape.
|
||||
2. The display has no rounded corner and the system will auto-generate a rectangular shape.
|
||||
(@see DisplayShape#createDefaultDisplayShape)
|
||||
|
||||
Note: If the display supports multiple resolutions, please define the path config based on
|
||||
the highest resolution so that it can be scaled correctly in each resolution.
|
||||
-->
|
||||
<string name="config_mainDisplayShape" translatable="false">m 5.213797,147.09809 c 0,-2.44991 0.00407,-4.89978 0.016316,-7.34964 0.012237,-2.44987 0.032676,-4.89966 0.061384,-7.34946 0.028731,-2.44983 0.065712,-4.89966 0.1450247,-7.34819 0.079314,-2.44853 0.2009419,-4.89577 0.3710122,-7.34174 0.6802903,-9.78379 2.1356668,-19.546952 4.9111981,-29.066538 2.775531,-9.519623 6.871213,-18.795665 12.45007,-27.410748 5.578852,-8.615083 12.640875,-16.56921 20.92714,-23.499505 C 52.382206,30.802011 61.892708,24.895542 72.193606,20.229526 82.494507,15.563583 93.5858,12.138093 104.96833,9.8175248 116.35086,7.4969572 128.02462,6.281312 139.72281,5.7109779 c 2.92454,-0.1427594 5.85062,-0.2447294 8.77828,-0.3114768 2.92766,-0.066372 5.85689,-0.09715 8.78611,-0.1212535 2.92921,-0.02226 5.8584,-0.041161 8.78764,-0.051169 2.92925,-0.011112 5.85855,-0.014828 8.78784,-0.014828 m 730.27444,0.00148 c 2.92927,0 5.85858,0.00341 8.78781,0.014828 2.92926,0.011112 5.85845,0.025939 8.78767,0.051173 2.92918,0.02226 5.85844,0.054878 8.78611,0.1212535 2.92768,0.066376 5.85379,0.1679741 8.77837,0.3103618 11.69832,0.5689253 23.37198,1.7861276 34.75444,4.107437 11.38242,2.3212725 22.47368,5.7466525 32.77458,10.4124825 10.301,4.665831 19.8116,10.572077 28.098,17.502223 8.2864,6.93015 15.3487,14.884162 20.9278,23.499245 5.579,8.615045 9.6748,17.891163 12.4494,27.410859 2.7747,9.519661 4.2282,19.282898 4.9101,29.066608 0.1703,2.4459 0.2927,4.8931 0.3724,7.34164 0.08,2.44849 0.1162,4.89836 0.145,7.34819 0.027,2.44979 0.049,4.89958 0.061,7.34945 0.013,2.44983 0.018,4.89973 0.018,7.34964 M 905.13668,1993.053 H 174.86141 M 1074.7859,147.09627 V 1851.1685 z</string>
|
||||
|
||||
<!-- The max vibration strength allowed in audio haptic channels. -->
|
||||
<item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.32</item>
|
||||
|
||||
|
|
33
akita/overlay/frameworks/base/core/res/res/values/dimens.xml
Normal file
33
akita/overlay/frameworks/base/core/res/res/values/dimens.xml
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2022, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<!-- Radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">115px</dimen>
|
||||
<dimen name="rounded_corner_radius_top">118px</dimen>
|
||||
<dimen name="rounded_corner_radius_bottom">115px</dimen>
|
||||
|
||||
<!-- Height of the status bar.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
<dimen name="status_bar_height_default">28dp</dimen>
|
||||
<dimen name="status_bar_height_portrait">151px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,22 @@
|
|||
<!--
|
||||
Copyright (C) 2023 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="180px"
|
||||
android:height="162px"
|
||||
android:viewportWidth="180"
|
||||
android:viewportHeight="162">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="m 0,160.91275 c 0,-2.83202 0.00434187,-5.664 0.01727217,-8.49597 0.01295148,-2.83199 0.03459728,-5.66388 0.06499037,-8.49578 0.03041427,-2.83194 0.06956522,-5.66387 0.1535338,-8.49432 0.0839675,-2.83043 0.21273148,-5.65937 0.39278033,-8.48685 C 1.7461082,118.73349 3.2868756,107.44752 6.2252558,96.443145 9.1636308,85.438718 13.499618,74.715862 19.405802,64.75706 25.311982,54.798254 32.788355,45.603504 41.560799,37.592267 50.333244,29.581075 60.401754,22.753358 71.307036,17.359568 82.212321,11.965864 93.954372,8.00609 106.00475,5.323576 c 12.05037,-2.6825142 24.40907,-4.0877672 36.79363,-4.74705812 3.09613,-0.16502755 6.1939,-0.28290136 9.29333,-0.36005739 3.09943,-0.076726 6.20053,-0.11230558 9.30161,-0.14016393 3.10107,-0.02573625 6.20213,-0.04757907 9.30324,-0.05915392 C 173.79767,0.00429572 176.89885,0 180,0 H 0 V 162 z"/>
|
||||
</vector>
|
|
@ -0,0 +1,22 @@
|
|||
<!--
|
||||
Copyright (C) 2023 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="180px"
|
||||
android:height="162px"
|
||||
android:viewportWidth="180"
|
||||
android:viewportHeight="162">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="m 0,160.91275 c 0,-2.83202 0.00434187,-5.664 0.01727217,-8.49597 0.01295148,-2.83199 0.03459728,-5.66388 0.06499037,-8.49578 0.03041427,-2.83194 0.06956522,-5.66387 0.1535338,-8.49432 0.0839675,-2.83043 0.21273148,-5.65937 0.39278033,-8.48685 C 1.7461082,118.73349 3.2868756,107.44752 6.2252558,96.443145 9.1636308,85.438718 13.499618,74.715862 19.405802,64.75706 25.311982,54.798254 32.788355,45.603504 41.560799,37.592267 50.333244,29.581075 60.401754,22.753358 71.307036,17.359568 82.212321,11.965864 93.954372,8.00609 106.00475,5.323576 c 12.05037,-2.6825142 24.40907,-4.0877672 36.79363,-4.74705812 3.09613,-0.16502755 6.1939,-0.28290136 9.29333,-0.36005739 3.09943,-0.076726 6.20053,-0.11230558 9.30161,-0.14016393 3.10107,-0.02573625 6.20213,-0.04757907 9.30324,-0.05915392 C 173.79767,0.00429572 176.89885,0 180,0 H 0 V 162 z"/>
|
||||
</vector>
|
|
@ -20,6 +20,20 @@
|
|||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Configure 13px of extra protection around the front-facing camera -->
|
||||
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
|
||||
m 585.73821,68.395595 a 49.159131,60.602208 0 0 0 -91.47461,0 49.159131,60.602208 0 0 0 91.47461,0 Z
|
||||
</string>
|
||||
|
||||
<!-- Camera 0 is the front camera -->
|
||||
<string translatable="false" name="config_protectedCameraId">0</string>
|
||||
|
||||
<!-- Comma-separated list of packages to exclude from camera protection. In our case,
|
||||
ignore the gaze detection package -->
|
||||
<string translatable="false" name="config_cameraProtectionExcludedPackages">com.google.android.as</string>
|
||||
|
||||
<bool name="config_enableDisplayCutoutProtection">true</bool>
|
||||
|
||||
<!-- Type of a sensor that provides a low-power estimate of the desired display
|
||||
brightness, suitable to listen to while the device is asleep (e.g. during
|
||||
always-on display) -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue