diff options
Diffstat (limited to 'overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values')
-rw-r--r-- | overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/config.xml | 42 | ||||
-rw-r--r-- | overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/dimens.xml | 36 |
2 files changed, 78 insertions, 0 deletions
diff --git a/overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/config.xml b/overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/config.xml new file mode 100644 index 00000000..604b6350 --- /dev/null +++ b/overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/config.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2023, 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- 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 506,68 + a 34,34 0 1 0 68,0 34,34 0 1 0 -68,0 + Z + @left + </string> + + <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation"> + M 480,0 + h 145 + v 136 + h -145 + Z + @left + </string> +</resources> diff --git a/overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/dimens.xml b/overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/dimens.xml new file mode 100644 index 00000000..f038cd01 --- /dev/null +++ b/overlay/frameworks/base/packages/overlays/pixel_7/AndroidOverlay/res/values/dimens.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2023, 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">47px</dimen> + <dimen name="rounded_corner_radius_top">47px</dimen> + <dimen name="rounded_corner_radius_bottom">48px</dimen> + + <!-- for 20dp of padding at 3.5px/dp at default density --> + <dimen name="rounded_corner_content_padding">47px</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">136px</dimen> + <dimen name="status_bar_height_landscape">28dp</dimen> + + <!-- Adjustment for software rounded corners since corners aren't perfectly round. --> + <dimen name="rounded_corner_radius_adjustment">5px</dimen> +</resources> |