shusky: Add PixelDisplayServiceOverlay

Extracted from AP3A.241005.015

Change-Id: I533319a8d61cc67f9111f133f49cdc727eb27ece
This commit is contained in:
Alexander Koskovich 2024-09-05 04:04:47 -04:00 committed by Michael Bestas
parent 66a69bfdd5
commit a6c5e66724
No known key found for this signature in database
43 changed files with 240 additions and 0 deletions

View file

@ -8,4 +8,7 @@ $(call inherit-product, $(DEVICE_PATH)/device-lineage.mk)
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-lineage
PRODUCT_PACKAGES += \
PixelDisplayServiceOverlayHusky
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop

View file

@ -0,0 +1,9 @@
//
// Copyright (C) 2024 The Android Open Source Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "PixelDisplayServiceOverlayHusky",
product_specific: true,
}

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.pixeldisplayservice.overlay.husky">
<overlay
android:isStatic="true"
android:priority="1"
android:targetPackage="com.android.pixeldisplayservice" />
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 KiB

View file

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<array name="config_za_compensation_brightness_thresholds_list">
<item>@array/config_za_primary_display_brightness_thresholds_list</item>
</array>
<array name="config_za_compensation_images_list">
<item>@array/config_za_primary_display_compensation_images_list</item>
</array>
<array name="config_za_compensation_opr_thresholds">
<item>0.17</item>
<item>0.4</item>
</array>
<array name="config_za_primary_display_brightness_thresholds_list">
<item>@array/config_za_primary_display_condition1_brightness_thresholds</item>
<item>@array/config_za_primary_display_condition2_brightness_thresholds</item>
</array>
<array name="config_za_primary_display_compensation_images_list">
<item>@array/config_za_primary_display_condition1_compensation_images</item>
<item>@array/config_za_primary_display_condition2_compensation_images</item>
</array>
<array name="config_za_primary_display_condition1_brightness_thresholds">
<item>0.53125</item>
<item>0.546875</item>
<item>0.5625</item>
<item>0.578125</item>
<item>0.59375</item>
<item>0.671875</item>
<item>0.75</item>
<item>0.8125</item>
<item>0.875</item>
<item>0.9375</item>
<item>1.0</item>
</array>
<array name="config_za_primary_display_condition1_compensation_images">
<item>@drawable/ZACI_2_ZA9128</item>
<item>@drawable/ZACI_3_ZA8941</item>
<item>@drawable/ZACI_4_ZA8755</item>
<item>@drawable/ZACI_5_ZA8476</item>
<item>@drawable/ZACI_7_ZA8197</item>
<item>@drawable/ZACI_9_ZA8010</item>
<item>@drawable/ZACI_10_ZA7824</item>
<item>@drawable/ZACI_11_ZA7638</item>
<item>@drawable/ZACI_13_ZA7359</item>
<item>@drawable/ZACI_15_ZA7079</item>
<item>@drawable/ZACI_17_ZA6800</item>
</array>
<array name="config_za_primary_display_condition2_brightness_thresholds">
<item>0.53125</item>
<item>0.578125</item>
<item>0.625</item>
<item>0.65625</item>
<item>0.6875</item>
<item>0.71875</item>
<item>0.75</item>
<item>0.8125</item>
<item>0.828125</item>
<item>0.84375</item>
<item>0.859375</item>
<item>0.875</item>
<item>0.890625</item>
<item>0.90625</item>
<item>0.921875</item>
<item>0.9375</item>
<item>0.96875</item>
<item>1.0</item>
</array>
<array name="config_za_primary_display_condition2_compensation_images">
<item>@drawable/ZACI_0_ZA9595</item>
<item>@drawable/ZACI_1_ZA9314</item>
<item>@drawable/ZACI_2_ZA9128</item>
<item>@drawable/ZACI_3_ZA8941</item>
<item>@drawable/ZACI_4_ZA8755</item>
<item>@drawable/ZACI_5_ZA8476</item>
<item>@drawable/ZACI_6_ZA8383</item>
<item>@drawable/ZACI_7_ZA8197</item>
<item>@drawable/ZACI_8_ZA8103</item>
<item>@drawable/ZACI_9_ZA8010</item>
<item>@drawable/ZACI_10_ZA7824</item>
<item>@drawable/ZACI_11_ZA7638</item>
<item>@drawable/ZACI_12_ZA7452</item>
<item>@drawable/ZACI_13_ZA7359</item>
<item>@drawable/ZACI_14_ZA7266</item>
<item>@drawable/ZACI_15_ZA7079</item>
<item>@drawable/ZACI_16_ZA6893</item>
<item>@drawable/ZACI_17_ZA6800</item>
</array>
<bool name="config_compensation_animation_enabled">true</bool>
<item type="dimen" name="config_compensation_filter_intercept">10.0</item>
<item type="dimen" name="config_za_compensation_brightness_enter_threshold">0.5</item>
<integer name="config_ambient_brightness_changed_debounce_ms">500</integer>
<integer name="config_compensation_filter_horizon">1500</integer>
</resources>

View file

@ -8,4 +8,7 @@ $(call inherit-product, $(DEVICE_PATH)/device-lineage.mk)
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-lineage
PRODUCT_PACKAGES += \
PixelDisplayServiceOverlayShiba
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop

View file

@ -0,0 +1,9 @@
//
// Copyright (C) 2024 The Android Open Source Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "PixelDisplayServiceOverlayShiba",
product_specific: true,
}

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.pixeldisplayservice.overlay.shiba">
<overlay
android:isStatic="true"
android:priority="1"
android:targetPackage="com.android.pixeldisplayservice" />
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

View file

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The Android Open Source Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<array name="config_za_compensation_brightness_thresholds_list">
<item>@array/config_za_primary_display_brightness_thresholds_list</item>
</array>
<array name="config_za_compensation_images_list">
<item>@array/config_za_primary_display_compensation_images_list</item>
</array>
<array name="config_za_compensation_opr_thresholds">
<item>0.4</item>
</array>
<array name="config_za_compensation_with_shadow_compensation_images">
<item>@drawable/SCI_1_cal0</item>
<item>@drawable/SCI_2_cal0</item>
<item>@drawable/SCI_3_cal0</item>
<item>@drawable/SCI_4_cal0</item>
</array>
<integer-array name="config_za_compensation_with_shadow_compensation_thresholds">
<item>50000</item>
<item>65000</item>
<item>80000</item>
<item>95000</item>
</integer-array>
<array name="config_za_primary_display_brightness_thresholds_list">
<item>@array/config_za_primary_display_condition1_brightness_thresholds</item>
<item>@array/config_za_primary_display_condition2_brightness_thresholds</item>
</array>
<array name="config_za_primary_display_compensation_images_list">
<item>@array/config_za_primary_display_condition1_compensation_images</item>
<item>@array/config_za_primary_display_condition2_compensation_images</item>
</array>
<array name="config_za_primary_display_condition1_brightness_thresholds">
<item>0.60714287</item>
<item>0.625</item>
<item>0.64285713</item>
<item>0.66071427</item>
<item>0.6785714</item>
<item>0.76785713</item>
<item>0.85714287</item>
<item>0.9285714</item>
<item>1.0</item>
</array>
<array name="config_za_primary_display_condition1_compensation_images">
<item>@drawable/ZACI_2_ZA9128</item>
<item>@drawable/ZACI_3_ZA8941</item>
<item>@drawable/ZACI_4_ZA8755</item>
<item>@drawable/ZACI_5_ZA8476</item>
<item>@drawable/ZACI_7_ZA8197</item>
<item>@drawable/ZACI_9_ZA8010</item>
<item>@drawable/ZACI_7_ZA8197</item>
<item>@drawable/ZACI_10_ZA7824</item>
<item>@drawable/ZACI_12_ZA7266</item>
</array>
<array name="config_za_primary_display_condition2_brightness_thresholds">
<item>0.60714287</item>
<item>0.625</item>
<item>0.71428573</item>
<item>0.71428573</item>
<item>0.78571427</item>
<item>0.8214286</item>
<item>0.85714287</item>
<item>0.9285714</item>
<item>0.9464286</item>
<item>0.96428573</item>
<item>0.98214287</item>
<item>1.0</item>
</array>
<array name="config_za_primary_display_condition2_compensation_images">
<item>@drawable/ZACI_0_ZA9595</item>
<item>@drawable/ZACI_1_ZA9314</item>
<item>@drawable/ZACI_2_ZA9128</item>
<item>@drawable/ZACI_3_ZA8941</item>
<item>@drawable/ZACI_4_ZA8755</item>
<item>@drawable/ZACI_5_ZA8476</item>
<item>@drawable/ZACI_6_ZA8383</item>
<item>@drawable/ZACI_7_ZA8197</item>
<item>@drawable/ZACI_8_ZA8103</item>
<item>@drawable/ZACI_9_ZA8010</item>
<item>@drawable/ZACI_10_ZA7824</item>
<item>@drawable/ZACI_11_ZA7638</item>
</array>
<string-array name="config_za_shadow_comp_not_support_panels">
<item>SB3-0</item>
</string-array>
<bool name="config_compensation_animation_enabled">true</bool>
<item type="dimen" name="config_compensation_filter_intercept">10.0</item>
<item type="dimen" name="config_za_compensation_brightness_enter_threshold">0.5714286</item>
<integer name="config_ambient_brightness_changed_debounce_ms">500</integer>
<integer name="config_compensation_filter_horizon">1500</integer>
</resources>