akita: 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 eff056c3fa
commit e3c5d49055
No known key found for this signature in database
24 changed files with 122 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 DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-lineage
PRODUCT_PACKAGES += \
PixelDisplayServiceOverlayAkita
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop 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: "PixelDisplayServiceOverlayAkita",
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.akita">
<overlay
android:isStatic="true"
android:priority="1"
android:targetPackage="com.android.pixeldisplayservice" />
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

View file

@ -0,0 +1,97 @@
<?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_0_cal0</item>
<item>@drawable/SCI_1_cal0</item>
<item>@drawable/SCI_2_cal0</item>
<item>@drawable/SCI_3_cal0</item>
<item>@drawable/SCI_4_cal0</item>
<item>@drawable/SCI_5_cal0</item>
</array>
<integer-array name="config_za_compensation_with_shadow_compensation_thresholds">
<item>7000</item>
<item>10000</item>
<item>35000</item>
<item>50000</item>
<item>80000</item>
<item>100000</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.71428573</item>
<item>0.75</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_condition1_compensation_images">
<item>@drawable/ZACI_0_ZA9162</item>
<item>@drawable/ZACI_1_ZA8938</item>
<item>@drawable/ZACI_2_ZA8712</item>
<item>@drawable/ZACI_3_ZA8488</item>
<item>@drawable/ZACI_5_ZA8262</item>
<item>@drawable/ZACI_6_ZA8150</item>
<item>@drawable/ZACI_7_ZA8038</item>
<item>@drawable/ZACI_8_ZA7812</item>
<item>@drawable/ZACI_9_ZA7700</item>
<item>@drawable/ZACI_10_ZA7588</item>
<item>@drawable/ZACI_11_ZA7475</item>
<item>@drawable/ZACI_12_ZA7362</item>
<item>@drawable/ZACI_13_ZA7250</item>
</array>
<array name="config_za_primary_display_condition2_brightness_thresholds">
<item>0.57214284</item>
<item>0.75</item>
<item>0.78571427</item>
<item>0.8214286</item>
<item>0.85714287</item>
<item>0.9285714</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_ZA9162</item>
<item>@drawable/ZACI_1_ZA8938</item>
<item>@drawable/ZACI_2_ZA8712</item>
<item>@drawable/ZACI_3_ZA8488</item>
<item>@drawable/ZACI_4_ZA8375</item>
<item>@drawable/ZACI_6_ZA8150</item>
<item>@drawable/ZACI_7_ZA8038</item>
<item>@drawable/ZACI_8_ZA7812</item>
<item>@drawable/ZACI_10_ZA7588</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>