dubai: Cleanup overlays

* Correct pixel_pitch
* Make AndroidManifest consistent
* Fix spacing and newlines
* Correct comments
* Sort as per AOSP order
* Correct array types
* Remove overlays that no longer exist:
  config_scrollBarrierVibePattern
  physical_volume_up_button_center_screen_location_y
  physical_volume_down_button_center_screen_location_y
  system_icons_keyguard_padding_end
* Remove overlays that are the same as defaults:
  config_deviceHardwareKeys
  config_deviceHardwareWakeKeys
  config_udfpsColor
* Remove overlays that shouldn't be overlaid anymore:
  quick_qs_offset_height
* Move config_showUsbPortAlarm to common

Change-Id: I504039ea2646b12a5af6f3c040236459ee7ac772
This commit is contained in:
Michael Bestas 2025-02-26 09:09:27 +02:00
parent 5ce27d005e
commit 7847b69d59
No known key found for this signature in database
GPG key ID: CC95044519BE6669
18 changed files with 204 additions and 252 deletions

View file

@ -5,5 +5,5 @@
runtime_resource_overlay {
name: "SystemUIResDubai",
vendor: true
vendor: true,
}

View file

@ -4,7 +4,9 @@
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
coreApp="true"
package="com.android.systemui.overlay.dubai">
<overlay android:targetPackage="com.android.systemui" android:isStatic="true" />
<overlay
android:isStatic="true"
android:targetPackage="com.android.systemui" />
</manifest>

View file

@ -1,34 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
SPDX-FileCopyrightText: 2022-2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<resources>
<!-- A path similar to frameworks/base/core/res/res/values/config.xml
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a display
cutout. If present as well as config_enableDisplayCutoutProtection is set to true, then
SystemUI will draw this "protection path" instead of the display cutout path that is normally
used for anti-aliasing.
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a outer
display cutout. If present as well as config_enableDisplayCutoutProtection is set to true,
then SystemUI will draw this "protection path" instead of the display cutout path that is
normally used for anti-aliasing.
This path will only be drawn when the front-facing camera turns on, otherwise the main
DisplayCutout path will be rendered
-->
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
<string name="config_frontBuiltInDisplayCutoutProtection" translatable="false">
M 498.5,65
a 41.5,41.5 0 1 0 83,0
a 41.5,41.5 0 1 0 -83,0
Z
</string>
<!-- ID for the camera that needs extra protection -->
<string translatable="false" name="config_protectedCameraId">1</string>
<!-- ID for the camera of outer display that needs extra protection -->
<string name="config_protectedCameraId" translatable="false">1</string>
<!-- Flag to turn on the rendering of the above path or not -->
<bool name="config_enableDisplayCutoutProtection">true</bool>
<!-- Microns/ums (1000 um = 1mm) per pixel for the given device. If unspecified, UI that
relies on this value will not be sized correctly. -->
<item name="pixel_pitch" format="float" type="dimen">48.3</item>
</resources>

View file

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
SPDX-FileCopyrightText: 2022-2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- the padding on the start of the statusbar -->
<dimen name="status_bar_padding_start">20.0dip</dimen>
<!-- The padding on the end of the statusbar -->
<!-- the padding on the end of the statusbar -->
<dimen name="status_bar_padding_end">7.0dip</dimen>
<!-- The padding on the top of the statusbar (usually 0) -->
<!-- the padding on the top of the statusbar (usually 0) -->
<dimen name="status_bar_padding_top">20.0px</dimen>
<!-- Height of the status bar header bar when on Keyguard -->
@ -19,19 +19,17 @@
<!-- Margin on the left side of the carrier text on Keyguard -->
<dimen name="keyguard_carrier_text_margin">4dp</dimen>
<!-- Margin on the right side of the system icon group on Keyguard. -->
<dimen name="system_icons_keyguard_padding_end">10.0px</dimen>
<!-- Bottom margin size when fingerprint in display is active -->
<dimen name="keyguard_indication_margin_bottom">15dp</dimen>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">1000.0px</dimen>
<!-- Location on the screen of the center of the physical volume up/down buttons. -->
<dimen name="physical_volume_up_button_center_screen_location_y">600.0px</dimen>
<dimen name="physical_volume_down_button_center_screen_location_y">760.0px</dimen>
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
<dimen name="ongoing_appops_dot_min_padding">14dp</dimen>
<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">1000.0px</dimen>
<!-- Microns/ums (1000 um = 1mm) per pixel for the given device. If unspecified, UI that
relies on this value will not be sized correctly. -->
<item format="float" name="pixel_pitch" type="dimen">62.73</item>
</resources>

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<integer name="config_showUsbPortAlarm">1</integer>
</resources>