devon: overlay: Convert overlays to Android.bp
Also run everything through beautify_rro.py Change-Id: Id5724d38ae2ad30aac64c4de7df98a64f33e6104
This commit is contained in:
@@ -38,8 +38,9 @@ PRODUCT_PACKAGES += \
|
||||
android.hardware.nfc@1.2-service.st
|
||||
|
||||
# Overlay
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay
|
||||
PRODUCT_PACKAGES += \
|
||||
FrameworksResDevice \
|
||||
SystemUIResDevice
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate. -->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Doze: does this device support STATE_DOZE? -->
|
||||
<bool name="doze_display_state_supported">true</bool>
|
||||
|
||||
<!-- 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.
|
||||
|
||||
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">
|
||||
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>
|
||||
|
||||
<!-- Flag to turn on the rendering of the above path or not -->
|
||||
<bool name="config_enableDisplayCutoutProtection">true</bool>
|
||||
|
||||
</resources>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, The Android Open Source Project
|
||||
* Copyright (C) 2023, The LineageOS 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>
|
||||
<!-- Height of the status bar header bar when on Keyguard -->
|
||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
<dimen name="keyguard_carrier_text_margin">4dp</dimen>
|
||||
|
||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
||||
<dimen name="ongoing_appops_dot_min_padding">14dp</dimen>
|
||||
</resources>
|
||||
9
resource-overlay/device/Frameworks/Android.bp
Normal file
9
resource-overlay/device/Frameworks/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "FrameworksResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
11
resource-overlay/device/Frameworks/AndroidManifest.xml
Normal file
11
resource-overlay/device/Frameworks/AndroidManifest.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="android.overlay.device">
|
||||
<overlay android:targetPackage="android"
|
||||
android:isStatic="true"
|
||||
android:priority="300" />
|
||||
</manifest>
|
||||
@@ -1,26 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, 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.
|
||||
*/
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||
<integer-array name="config_longPressVibePattern">
|
||||
<item>0</item>
|
||||
<item>60</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate. -->
|
||||
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
||||
<integer-array name="config_virtualKeyVibePattern">
|
||||
<item>0</item>
|
||||
<item>50</item>
|
||||
</integer-array>
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Minimum screen brightness setting allowed by power manager.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- Default screen brightness setting set.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.39763778</item>
|
||||
|
||||
<!-- Screen brightness used to dim the screen when the user activity
|
||||
timeout expires. May be less than the minimum allowed brightness setting
|
||||
that can be set by the user. -->
|
||||
<integer name="config_screenBrightnessDim">2</integer>
|
||||
<item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- Minimum allowable screen brightness to use in a very dark room.
|
||||
This value sets the floor for the darkest possible auto-brightness
|
||||
@@ -31,68 +42,6 @@
|
||||
in darkness (although they may not be visible in a bright room). -->
|
||||
<integer name="config_screenBrightnessDark">2</integer>
|
||||
|
||||
<!-- Screen brightness used to dim the screen when the user activity
|
||||
timeout expires. May be less than the minimum allowed brightness setting
|
||||
that can be set by the user. -->
|
||||
<integer name="config_screenBrightnessDim">2</integer>
|
||||
<item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- Default screen brightness setting set.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.39763778</item>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by power manager.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.003937008</item>
|
||||
|
||||
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
|
||||
the framework from using higher refresh rates, even if display modes with higher refresh
|
||||
rates are available from hardware composer. Only has an effect if the value is
|
||||
non-zero. -->
|
||||
<integer name="config_defaultPeakRefreshRate">90</integer>
|
||||
|
||||
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
||||
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
|
||||
brightness of an all-white image.
|
||||
|
||||
If this is defined then:
|
||||
- config_autoBrightnessLcdBacklightValues should not be defined
|
||||
- config_screenBrightnessNits must be defined
|
||||
- config_screenBrightnessBacklight must be defined
|
||||
|
||||
This array should have size one greater than the size of the config_autoBrightnessLevels
|
||||
array. The brightness values must be non-negative and non-decreasing. This must be
|
||||
overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessDisplayValuesNits">
|
||||
<item>3</item>
|
||||
<item>10</item>
|
||||
<item>20</item>
|
||||
<item>50</item>
|
||||
<item>70</item>
|
||||
<item>85</item>
|
||||
<item>110</item>
|
||||
<item>130</item>
|
||||
<item>150</item>
|
||||
<item>180</item>
|
||||
<item>180</item>
|
||||
<item>180</item>
|
||||
<item>180</item>
|
||||
<item>225</item>
|
||||
<item>270</item>
|
||||
<item>300</item>
|
||||
<item>315</item>
|
||||
<item>330</item>
|
||||
<item>350</item>
|
||||
<item>380</item>
|
||||
<item>420</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
|
||||
The N entries of this array define N + 1 control points as follows:
|
||||
(1-based arrays)
|
||||
@@ -139,6 +88,45 @@
|
||||
<item>8000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
||||
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
|
||||
brightness of an all-white image.
|
||||
|
||||
If this is defined then:
|
||||
- config_autoBrightnessLcdBacklightValues should not be defined
|
||||
- config_screenBrightnessNits must be defined
|
||||
- config_screenBrightnessBacklight must be defined
|
||||
|
||||
This array should have size one greater than the size of the config_autoBrightnessLevels
|
||||
array. The brightness values must be non-negative and non-decreasing. This must be
|
||||
overridden in platform specific overlays -->
|
||||
<array name="config_autoBrightnessDisplayValuesNits">
|
||||
<item>3</item>
|
||||
<item>10</item>
|
||||
<item>20</item>
|
||||
<item>50</item>
|
||||
<item>70</item>
|
||||
<item>85</item>
|
||||
<item>110</item>
|
||||
<item>130</item>
|
||||
<item>150</item>
|
||||
<item>180</item>
|
||||
<item>180</item>
|
||||
<item>180</item>
|
||||
<item>180</item>
|
||||
<item>225</item>
|
||||
<item>270</item>
|
||||
<item>300</item>
|
||||
<item>315</item>
|
||||
<item>330</item>
|
||||
<item>350</item>
|
||||
<item>380</item>
|
||||
<item>420</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
<item>450</item>
|
||||
</array>
|
||||
|
||||
<!-- An array describing the screen's backlight values corresponding to the brightness
|
||||
values in the config_screenBrightnessNits array.
|
||||
|
||||
@@ -173,7 +161,7 @@
|
||||
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
||||
|
||||
This array should be equal in size to config_screenBrightnessBacklight -->
|
||||
<integer-array name="config_screenBrightnessNits">
|
||||
<array name="config_screenBrightnessNits">
|
||||
<item>0</item>
|
||||
<item>3</item>
|
||||
<item>10</item>
|
||||
@@ -194,7 +182,7 @@
|
||||
<item>380</item>
|
||||
<item>420</item>
|
||||
<item>450</item>
|
||||
</integer-array>
|
||||
</array>
|
||||
|
||||
<!-- The bounding path of the cutout region of the main built-in display.
|
||||
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||
@@ -247,8 +235,11 @@
|
||||
-->
|
||||
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
||||
|
||||
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
||||
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
||||
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
|
||||
the framework from using higher refresh rates, even if display modes with higher refresh
|
||||
rates are available from hardware composer. Only has an effect if the value is
|
||||
non-zero. -->
|
||||
<integer name="config_defaultPeakRefreshRate">90</integer>
|
||||
|
||||
<!-- An array of arrays of side fingerprint sensor properties relative to each display.
|
||||
Note: this value is temporary and is expected to be queried directly
|
||||
@@ -264,15 +255,6 @@
|
||||
<item>200</item> <!--item>sensorRadius</item-->
|
||||
</array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||
<integer-array name="config_longPressVibePattern">
|
||||
<item>0</item>
|
||||
<item>60</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
||||
<integer-array name="config_virtualKeyVibePattern">
|
||||
<item>0</item>
|
||||
<item>50</item>
|
||||
</integer-array>
|
||||
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
||||
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
||||
</resources>
|
||||
@@ -1,33 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, 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.
|
||||
*/
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate. -->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Default radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">95.0px</dimen>
|
||||
|
||||
<!-- Default paddings for content around the corners. -->
|
||||
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
||||
|
||||
<resources>
|
||||
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
|
||||
calculate the status bar height. -->
|
||||
<dimen name="status_bar_height_default">28dp</dimen>
|
||||
@@ -41,4 +17,10 @@
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
|
||||
<!-- Default radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">95.0px</dimen>
|
||||
|
||||
<!-- Default paddings for content around the corners. -->
|
||||
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
||||
</resources>
|
||||
9
resource-overlay/device/SystemUI/Android.bp
Normal file
9
resource-overlay/device/SystemUI/Android.bp
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SystemUIResDevice",
|
||||
vendor: true,
|
||||
}
|
||||
10
resource-overlay/device/SystemUI/AndroidManifest.xml
Normal file
10
resource-overlay/device/SystemUI/AndroidManifest.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.systemui.overlay.device">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
||||
31
resource-overlay/device/SystemUI/res/values/config.xml
Normal file
31
resource-overlay/device/SystemUI/res/values/config.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- Doze: does this device support STATE_DOZE? -->
|
||||
<bool name="doze_display_state_supported">true</bool>
|
||||
|
||||
<!-- 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 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">
|
||||
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 of outer display that needs extra protection -->
|
||||
<string translatable="false" name="config_protectedCameraId">1</string>
|
||||
|
||||
<!-- Flag to turn on the rendering of the above path or not -->
|
||||
<bool name="config_enableDisplayCutoutProtection">true</bool>
|
||||
</resources>
|
||||
15
resource-overlay/device/SystemUI/res/values/dimens.xml
Normal file
15
resource-overlay/device/SystemUI/res/values/dimens.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- Height of the status bar header bar when on Keyguard -->
|
||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
<dimen name="keyguard_carrier_text_margin">4dp</dimen>
|
||||
|
||||
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
|
||||
<dimen name="ongoing_appops_dot_min_padding">14dp</dimen>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user