From 46546e2e2cc716ae52496354e897a9a29f7da02f Mon Sep 17 00:00:00 2001 From: linpeter Date: Thu, 28 Apr 2022 21:08:36 +0800 Subject: [PATCH 1/3] display: update the indoor auto-brightness curve Modified the indoor range mapping in the indoor auto-brightness curve. Bug: 200227638 Test: check the default curve Change-Id: I7b9219023fabdefe05cb910666c0e0ff998ed06c --- .../frameworks/base/core/res/res/values/config.xml | 14 ++++++++------ .../frameworks/base/core/res/res/values/config.xml | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml index 9913b4c..6119f7a 100644 --- a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml +++ b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml @@ -95,6 +95,7 @@ 4 8 12 + 15 20 33 55 @@ -132,12 +133,13 @@ 18.34822964 21.55068128 24.0167788 - 30.62162162 - 35.09486396 - 41.2249643 - 47.6760716 - 55.73002427 - 66.24126116 + 32.5 + 46 + 53.26923077 + 54.61538462 + 58.11538462 + 62.1394 + 67.13133333 79.67614115 98.04727274 125.1221991 diff --git a/panther/overlay/frameworks/base/core/res/res/values/config.xml b/panther/overlay/frameworks/base/core/res/res/values/config.xml index 02bb86c..339c260 100644 --- a/panther/overlay/frameworks/base/core/res/res/values/config.xml +++ b/panther/overlay/frameworks/base/core/res/res/values/config.xml @@ -113,6 +113,7 @@ 4 8 12 + 15 20 33 55 @@ -150,12 +151,13 @@ 18.34822964 21.55068128 24.0167788 - 30.62162162 - 35.09486396 - 41.2249643 - 47.6760716 - 55.73002427 - 66.24126116 + 32.5 + 46 + 53.26923077 + 54.61538462 + 58.11538462 + 62.1394 + 67.13133333 79.67614115 98.04727274 125.1221991 From 2a027324f2a19b437b511708cc0e6101c051d992 Mon Sep 17 00:00:00 2001 From: Jasmine Cha Date: Tue, 24 May 2022 13:39:21 +0800 Subject: [PATCH 2/3] audio: improve mute duration. - preview of notification will be cut off slightly becuase of mute duration in framework is 160ms (40*40) - set mute duration of primary output from 160 ms to 40 ms. Bug: 233176336 Test: preview notification/end call sound on voice/VoIP(Line) Signed-off-by: Jasmine Cha Change-Id: I7f5225372c265cb22e74311b0805d16b1c68fd3d --- audio/cheetah/config/audio_policy_configuration.xml | 3 ++- .../audio_policy_configuration_a2dp_offload_disabled.xml | 3 ++- .../config/audio_policy_configuration_bluetooth_legacy_hal.xml | 3 ++- .../config/audio_policy_configuration_le_offload_disabled.xml | 3 ++- audio/panther/config/audio_policy_configuration.xml | 3 ++- .../audio_policy_configuration_a2dp_offload_disabled.xml | 3 ++- .../config/audio_policy_configuration_bluetooth_legacy_hal.xml | 3 ++- .../config/audio_policy_configuration_le_offload_disabled.xml | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/audio/cheetah/config/audio_policy_configuration.xml b/audio/cheetah/config/audio_policy_configuration.xml index f9b419c..2e15f64 100644 --- a/audio/cheetah/config/audio_policy_configuration.xml +++ b/audio/cheetah/config/audio_policy_configuration.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/cheetah/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/cheetah/config/audio_policy_configuration_a2dp_offload_disabled.xml index f832eac..dc916ea 100644 --- a/audio/cheetah/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/cheetah/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/cheetah/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/cheetah/config/audio_policy_configuration_bluetooth_legacy_hal.xml index c3c66c4..484048f 100644 --- a/audio/cheetah/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/cheetah/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml b/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml index b2abc72..612295c 100644 --- a/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml +++ b/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/panther/config/audio_policy_configuration.xml b/audio/panther/config/audio_policy_configuration.xml index f9b419c..2e15f64 100644 --- a/audio/panther/config/audio_policy_configuration.xml +++ b/audio/panther/config/audio_policy_configuration.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/panther/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/panther/config/audio_policy_configuration_a2dp_offload_disabled.xml index f832eac..dc916ea 100644 --- a/audio/panther/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/panther/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/panther/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/panther/config/audio_policy_configuration_bluetooth_legacy_hal.xml index c3c66c4..484048f 100644 --- a/audio/panther/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/panther/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -27,7 +27,8 @@ Speaker - + diff --git a/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml b/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml index b2abc72..612295c 100644 --- a/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml +++ b/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml @@ -27,7 +27,8 @@ Speaker - + From 493be28f05b4c7dbcde1b8c8322682ca0cb4e277 Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Wed, 18 May 2022 03:06:27 +0800 Subject: [PATCH 3/3] RRS: Apply the default config from persist prop vendor_config plays as another role to control the display config during the boot time. To change the default configuration of the user selected mode, we use persist config to store the value. Bug: 232721840 Test: Boot w/ and w/o user selected configs and check the resolution Change-Id: I8e6f551817e9b7cb747a7f5351430dd2ac9b4624 --- device-cheetah.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device-cheetah.mk b/device-cheetah.mk index de3e9c6..e806bc8 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -86,7 +86,7 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.brightness.dimming.usage=1 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.primarydisplay.lhbm.frames_to_reach_peak_brightness=2 # Display RRS default Config -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.primary.default_boot_config=1080x2340@120 +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.vendor.display.primary.boot_config=1080x2340@120 # NFC PRODUCT_COPY_FILES += \