From 41c17d2bb46027f16ec9df49fbf823b95e443c19 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 26 Feb 2025 09:09:27 +0200 Subject: [PATCH] tundra: 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 --- resource-overlay/device/Frameworks/Android.bp | 2 +- .../device/Frameworks/AndroidManifest.xml | 6 +- .../device/Frameworks/res/values/config.xml | 261 +++++++++--------- .../device/Frameworks/res/values/dimens.xml | 28 +- .../LineageSystemUI/res/values/config.xml | 37 --- .../res/values/lineage_config.xml | 12 + resource-overlay/device/Settings/Android.bp | 2 +- .../device/Settings/AndroidManifest.xml | 7 +- .../device/Settings/res/values/config.xml | 6 +- .../SettingsProvider/AndroidManifest.xml | 6 +- .../res/values/{config.xml => defaults.xml} | 2 +- resource-overlay/device/SystemUI/Android.bp | 2 +- .../device/SystemUI/AndroidManifest.xml | 6 +- .../device/SystemUI/res/values/config.xml | 12 - .../device/SystemUI/res/values/dimens.xml | 21 +- .../device/SystemUI/res/values/integers.xml | 8 - .../device/Wifi/res/values/config.xml | 6 +- 17 files changed, 192 insertions(+), 232 deletions(-) delete mode 100644 resource-overlay/device/LineageSystemUI/res/values/config.xml create mode 100644 resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml rename resource-overlay/device/SettingsProvider/res/values/{config.xml => defaults.xml} (80%) delete mode 100644 resource-overlay/device/SystemUI/res/values/config.xml delete mode 100644 resource-overlay/device/SystemUI/res/values/integers.xml diff --git a/resource-overlay/device/Frameworks/Android.bp b/resource-overlay/device/Frameworks/Android.bp index 6401448..d7e92bf 100644 --- a/resource-overlay/device/Frameworks/Android.bp +++ b/resource-overlay/device/Frameworks/Android.bp @@ -5,5 +5,5 @@ runtime_resource_overlay { name: "FrameworksResTundra", - vendor: true + vendor: true, } diff --git a/resource-overlay/device/Frameworks/AndroidManifest.xml b/resource-overlay/device/Frameworks/AndroidManifest.xml index d1a3adb..1ac55e3 100644 --- a/resource-overlay/device/Frameworks/AndroidManifest.xml +++ b/resource-overlay/device/Frameworks/AndroidManifest.xml @@ -5,5 +5,9 @@ --> - + + diff --git a/resource-overlay/device/Frameworks/res/values/config.xml b/resource-overlay/device/Frameworks/res/values/config.xml index 550500a..75bafc9 100644 --- a/resource-overlay/device/Frameworks/res/values/config.xml +++ b/resource-overlay/device/Frameworks/res/values/config.xml @@ -1,10 +1,53 @@ - + true + + + + 0 + 67 + + + + + 0 + 67 + + + + + 0 + 0 + 94 + + + + 2 + + + 500 + 500 + + + 2 + + - + 2 4 5 @@ -35,11 +78,10 @@ 1250 3500 5500 - + - + 2 7 10 @@ -62,13 +104,13 @@ 192 252 500 - + - + 0 1 6 @@ -89,7 +131,7 @@ 215 238 255 - + - + 0 2 10 @@ -119,45 +161,43 @@ 380 420 450 - + - - 500 - 500 + + motorolaedge30fusion - + http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf - The path is assumed to be specified in display coordinates with pixel units and in - the display's native orientation, with the origin of the coordinate system at the - center top of the display. Optionally, you can append either `@left` or `@right` to the - end of the path string, in order to change the path origin to either the top left, - or top right of the display. + + com.android.systemui/com.android.systemui.doze.DozeService - Example for a 10px x 10px square top-center cutout: - M -5,0 L -5,10 L 5,10 L 5,0 Z - Example for a 10dp x 10dp square top-center cutout: - M -5,0 L -5,10 L 5,10 L 5,0 Z @dp + + true - @see https://www.w3.org/TR/SVG/paths.html#PathData - --> - M -31,0 L -31,95 L 31,95 L 31,0 Z + + org.lineageos.sensor.double_tap - - true + + org.lineageos.sensor.udfps + + + true + + + false true - - - 0:2:15 - - true + + + M -31,0 + L -31,95 + L 31,95 + L 31,0 + Z + + + + + 0:2:15 + + - + 540 2164 91 - - 2 - - - 2 - - - - 0 - 67 - - - - - 0 - 67 - - - - - 0 - 0 - 94 - - - - - 0 - 15 - 30 - 15 - - - - com.android.systemui/com.android.systemui.doze.DozeService - - - true - - - true - - - false - - - Android-Mms/2.0 - - http://www.google.com/oha/rdf/ua-profile-kila.xml - - - org.lineageos.sensor.double_tap - - - org.lineageos.sensor.udfps + + 120 true true - - - 48 - - - 120 diff --git a/resource-overlay/device/Frameworks/res/values/dimens.xml b/resource-overlay/device/Frameworks/res/values/dimens.xml index 657f026..05bfbbe 100644 --- a/resource-overlay/device/Frameworks/res/values/dimens.xml +++ b/resource-overlay/device/Frameworks/res/values/dimens.xml @@ -1,30 +1,26 @@ - - 85.0px - - - 4px - - 126px + 28dp - - @dimen/status_bar_height_default + + 126px - 14dip + 28dp - - @dimen/status_bar_height_default + + 85.0px + + + 4px diff --git a/resource-overlay/device/LineageSystemUI/res/values/config.xml b/resource-overlay/device/LineageSystemUI/res/values/config.xml deleted file mode 100644 index 8cdb9a9..0000000 --- a/resource-overlay/device/LineageSystemUI/res/values/config.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - 64 - - - 64 - - - #ffffff - diff --git a/resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml b/resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml new file mode 100644 index 0000000..d169418 --- /dev/null +++ b/resource-overlay/device/LineageSystemUI/res/values/lineage_config.xml @@ -0,0 +1,12 @@ + + + + + true + + + true + diff --git a/resource-overlay/device/Settings/Android.bp b/resource-overlay/device/Settings/Android.bp index 9cc8e10..c937247 100644 --- a/resource-overlay/device/Settings/Android.bp +++ b/resource-overlay/device/Settings/Android.bp @@ -5,5 +5,5 @@ runtime_resource_overlay { name: "SettingsResTundra", - vendor: true + vendor: true, } diff --git a/resource-overlay/device/Settings/AndroidManifest.xml b/resource-overlay/device/Settings/AndroidManifest.xml index 3324d2e..a29bf72 100644 --- a/resource-overlay/device/Settings/AndroidManifest.xml +++ b/resource-overlay/device/Settings/AndroidManifest.xml @@ -4,7 +4,10 @@ SPDX-License-Identifier: Apache-2.0 --> - + + diff --git a/resource-overlay/device/Settings/res/values/config.xml b/resource-overlay/device/Settings/res/values/config.xml index fbf4375..a911f6d 100644 --- a/resource-overlay/device/Settings/res/values/config.xml +++ b/resource-overlay/device/Settings/res/values/config.xml @@ -1,14 +1,12 @@ - - + true 144 - diff --git a/resource-overlay/device/SettingsProvider/AndroidManifest.xml b/resource-overlay/device/SettingsProvider/AndroidManifest.xml index 9376dfa..4419879 100644 --- a/resource-overlay/device/SettingsProvider/AndroidManifest.xml +++ b/resource-overlay/device/SettingsProvider/AndroidManifest.xml @@ -4,7 +4,9 @@ SPDX-License-Identifier: Apache-2.0 --> - + + diff --git a/resource-overlay/device/SettingsProvider/res/values/config.xml b/resource-overlay/device/SettingsProvider/res/values/defaults.xml similarity index 80% rename from resource-overlay/device/SettingsProvider/res/values/config.xml rename to resource-overlay/device/SettingsProvider/res/values/defaults.xml index 6839c3f..c182241 100644 --- a/resource-overlay/device/SettingsProvider/res/values/config.xml +++ b/resource-overlay/device/SettingsProvider/res/values/defaults.xml @@ -1,6 +1,6 @@ diff --git a/resource-overlay/device/SystemUI/Android.bp b/resource-overlay/device/SystemUI/Android.bp index d4b9c86..6557504 100644 --- a/resource-overlay/device/SystemUI/Android.bp +++ b/resource-overlay/device/SystemUI/Android.bp @@ -5,5 +5,5 @@ runtime_resource_overlay { name: "SystemUIResTundra", - vendor: true + vendor: true, } diff --git a/resource-overlay/device/SystemUI/AndroidManifest.xml b/resource-overlay/device/SystemUI/AndroidManifest.xml index c9971a1..3851424 100644 --- a/resource-overlay/device/SystemUI/AndroidManifest.xml +++ b/resource-overlay/device/SystemUI/AndroidManifest.xml @@ -4,7 +4,9 @@ SPDX-License-Identifier: Apache-2.0 --> - + + diff --git a/resource-overlay/device/SystemUI/res/values/config.xml b/resource-overlay/device/SystemUI/res/values/config.xml deleted file mode 100644 index 580307e..0000000 --- a/resource-overlay/device/SystemUI/res/values/config.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - 48.3 - - diff --git a/resource-overlay/device/SystemUI/res/values/dimens.xml b/resource-overlay/device/SystemUI/res/values/dimens.xml index e9582f0..0049fd6 100644 --- a/resource-overlay/device/SystemUI/res/values/dimens.xml +++ b/resource-overlay/device/SystemUI/res/values/dimens.xml @@ -1,16 +1,16 @@ 20.0dip - + 7.0dip - + 20.0px @@ -19,16 +19,17 @@ 16.0dip - - 10.0px - 15dp - + + 14dp + + 760.0px - - 360.0px - 520.0px + + 48.3 diff --git a/resource-overlay/device/SystemUI/res/values/integers.xml b/resource-overlay/device/SystemUI/res/values/integers.xml deleted file mode 100644 index e4ae05c..0000000 --- a/resource-overlay/device/SystemUI/res/values/integers.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 1 - diff --git a/resource-overlay/device/Wifi/res/values/config.xml b/resource-overlay/device/Wifi/res/values/config.xml index e00de6d..7105737 100644 --- a/resource-overlay/device/Wifi/res/values/config.xml +++ b/resource-overlay/device/Wifi/res/values/config.xml @@ -1,11 +1,9 @@ - - + motorola edge 30 fusion -