From b1fa4b7102ce467aa3e95c0354ba710c830c5eb3 Mon Sep 17 00:00:00 2001 From: David Chao Date: Fri, 4 Jun 2021 00:31:32 +0800 Subject: [PATCH 1/4] thermal: update number of State2Power for thermal-hal Bug: 189488358 Test: thermal-hal init and works properly. Change-Id: I10700fcd082df9b904f6f06eaedd536e8386633f --- thermal_info_config_oriole.json | 8 ++++---- thermal_info_config_raven.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/thermal_info_config_oriole.json b/thermal_info_config_oriole.json index 805613b..12f9a4f 100644 --- a/thermal_info_config_oriole.json +++ b/thermal_info_config_oriole.json @@ -762,28 +762,28 @@ "Name":"thermal-cpufreq-0", "Type":"CPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote", - "State2Power":["684", "568", "479", "359", "322", "265", "228", "171", "117", "86", "41"], + "State2Power":["428", "368", "320", "244", "220", "184", "156", "116", "80", "56", "24"], "PowerRail":"S4M_VDD_CPUCL0" }, { "Name":"thermal-cpufreq-1", "Type":"CPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote", - "State2Power":["926", "744", "590", "466", "365", "308", "232", "190", "156", "129", "93", "62"], + "State2Power":["904", "740", "594", "476", "374", "314", "236", "192", "156", "126", "90", "58"], "PowerRail":"S3M_VDD_CPUCL1" }, { "Name":"thermal-cpufreq-2", "Type":"CPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote", - "State2Power":["3326", "3300", "3215", "2986", "2563", "2215", "2036", "1702", "1341", "1191", "964", "791", "658", "519", "420", "344", "176"], + "State2Power":["4406", "3874", "3500", "3052", "2704", "2334", "2176", "1864", "1492", "1362", "1116", "908", "756", "594", "478", "388", "178"], "PowerRail":"S2M_VDD_CPUCL2" }, { "Name":"thermal-gpufreq-0", "Type":"GPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote", - "State2Power":["3950", "3368", "2933", "2278", "2075", "1807", "1508", "1305", "1100", "916", "737", "565"], + "State2Power":["4599", "3727", "3259", "2378", "2044", "1813", "1449", "1223", "1007", "804", "633", "452"], "PowerRail":"S2S_VDD_G3D" }, { diff --git a/thermal_info_config_raven.json b/thermal_info_config_raven.json index 4feded5..c2820bf 100644 --- a/thermal_info_config_raven.json +++ b/thermal_info_config_raven.json @@ -762,28 +762,28 @@ "Name":"thermal-cpufreq-0", "Type":"CPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote", - "State2Power":["684", "568", "479", "359", "322", "265", "228", "171", "117", "86", "41"], + "State2Power":["428", "368", "320", "244", "220", "184", "156", "116", "80", "56", "24"], "PowerRail":"S4M_VDD_CPUCL0" }, { "Name":"thermal-cpufreq-1", "Type":"CPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote", - "State2Power":["926", "744", "590", "466", "365", "308", "232", "190", "156", "129", "93", "62"], + "State2Power":["904", "740", "594", "476", "374", "314", "236", "192", "156", "126", "90", "58"], "PowerRail":"S3M_VDD_CPUCL1" }, { "Name":"thermal-cpufreq-2", "Type":"CPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote", - "State2Power":["3326", "3300", "3215", "2986", "2563", "2215", "2036", "1702", "1341", "1191", "964", "791", "658", "519", "420", "344", "176"], + "State2Power":["4406", "3874", "3500", "3052", "2704", "2334", "2176", "1864", "1492", "1362", "1116", "908", "756", "594", "478", "388", "178"], "PowerRail":"S2M_VDD_CPUCL2" }, { "Name":"thermal-gpufreq-0", "Type":"GPU", "WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote", - "State2Power":["3950", "3368", "2933", "2278", "2075", "1807", "1508", "1305", "1100", "916", "737", "565"], + "State2Power":["4599", "3727", "3259", "2378", "2044", "1813", "1449", "1223", "1007", "804", "633", "452"], "PowerRail":"S2S_VDD_G3D" }, { From 964bf23b742bd979938cfea0a08d96c0435804ce Mon Sep 17 00:00:00 2001 From: Bill Lin Date: Fri, 4 Jun 2021 08:48:58 +0800 Subject: [PATCH 2/4] Enable One handed mode feature for Oriole and Raven Test: check settings > system > gesture > one handed mode Test: make Bug: 189926639 Change-Id: Ia6e51f05541e1ab31a3a98159fa805e4bc0412e1 --- device-oriole.mk | 4 ++++ device-raven.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/device-oriole.mk b/device-oriole.mk index ced8e9d..99a9885 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -145,3 +145,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Trusty liboemcrypto.so PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts + +# Set support one-handed mode +PRODUCT_PRODUCT_PROPERTIES += \ + ro.support_one_handed_mode=true diff --git a/device-raven.mk b/device-raven.mk index eecef2a..4ea1f5a 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -148,3 +148,7 @@ PRODUCT_PACKAGES += \ # Trusty liboemcrypto.so PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts + +# Set support one-handed mode +PRODUCT_PRODUCT_PROPERTIES += \ + ro.support_one_handed_mode=true From 6facc05f477177f964180f76ef3d45c39f443c83 Mon Sep 17 00:00:00 2001 From: Joey Poomarin Date: Tue, 23 Mar 2021 16:21:00 +0800 Subject: [PATCH 3/4] USB Audio: Enable HIFI on the audio HAL part on Raviole. Kernel Change: pa/1887451 Test: N/A Bug: 182996456 Change-Id: Ia62f8a0b8b0c57270a3c8ed82cb64a79fbcbfe79 --- audio/oriole/config/audio_platform_configuration.xml | 1 + audio/oriole/config/audio_policy_configuration.xml | 2 ++ .../config/audio_policy_configuration_a2dp_offload_disabled.xml | 2 ++ .../config/audio_policy_configuration_bluetooth_legacy_hal.xml | 2 ++ audio/raven/config/audio_platform_configuration.xml | 1 + audio/raven/config/audio_policy_configuration.xml | 2 ++ .../config/audio_policy_configuration_a2dp_offload_disabled.xml | 2 ++ .../config/audio_policy_configuration_bluetooth_legacy_hal.xml | 2 ++ audio/slider/config/audio_platform_configuration.xml | 1 + audio/slider/config/audio_policy_configuration.xml | 2 ++ .../config/audio_policy_configuration_a2dp_offload_disabled.xml | 2 ++ .../config/audio_policy_configuration_bluetooth_legacy_hal.xml | 2 ++ audio/whitefin/config/audio_platform_configuration.xml | 1 + audio/whitefin/config/audio_policy_configuration.xml | 2 ++ .../config/audio_policy_configuration_a2dp_offload_disabled.xml | 2 ++ .../config/audio_policy_configuration_bluetooth_legacy_hal.xml | 2 ++ 16 files changed, 28 insertions(+) diff --git a/audio/oriole/config/audio_platform_configuration.xml b/audio/oriole/config/audio_platform_configuration.xml index 63bc56c..aab3850 100644 --- a/audio/oriole/config/audio_platform_configuration.xml +++ b/audio/oriole/config/audio_platform_configuration.xml @@ -137,6 +137,7 @@ + diff --git a/audio/oriole/config/audio_policy_configuration.xml b/audio/oriole/config/audio_policy_configuration.xml index 2252c11..658eb62 100644 --- a/audio/oriole/config/audio_policy_configuration.xml +++ b/audio/oriole/config/audio_policy_configuration.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -209,6 +210,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/oriole/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/oriole/config/audio_policy_configuration_a2dp_offload_disabled.xml index 25ba182..7814948 100644 --- a/audio/oriole/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/oriole/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -188,6 +189,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/oriole/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/oriole/config/audio_policy_configuration_bluetooth_legacy_hal.xml index f9eee3a..23e885d 100644 --- a/audio/oriole/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/oriole/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -188,6 +189,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/raven/config/audio_platform_configuration.xml b/audio/raven/config/audio_platform_configuration.xml index 63bc56c..aab3850 100644 --- a/audio/raven/config/audio_platform_configuration.xml +++ b/audio/raven/config/audio_platform_configuration.xml @@ -137,6 +137,7 @@ + diff --git a/audio/raven/config/audio_policy_configuration.xml b/audio/raven/config/audio_policy_configuration.xml index 2252c11..658eb62 100644 --- a/audio/raven/config/audio_policy_configuration.xml +++ b/audio/raven/config/audio_policy_configuration.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -209,6 +210,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/raven/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/raven/config/audio_policy_configuration_a2dp_offload_disabled.xml index 25ba182..7814948 100644 --- a/audio/raven/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/raven/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -188,6 +189,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/raven/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/raven/config/audio_policy_configuration_bluetooth_legacy_hal.xml index f9eee3a..23e885d 100644 --- a/audio/raven/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/raven/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -188,6 +189,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/slider/config/audio_platform_configuration.xml b/audio/slider/config/audio_platform_configuration.xml index 5ab950d..373c79b 100644 --- a/audio/slider/config/audio_platform_configuration.xml +++ b/audio/slider/config/audio_platform_configuration.xml @@ -137,6 +137,7 @@ + diff --git a/audio/slider/config/audio_policy_configuration.xml b/audio/slider/config/audio_policy_configuration.xml index 3569860..d7c2fb9 100644 --- a/audio/slider/config/audio_policy_configuration.xml +++ b/audio/slider/config/audio_policy_configuration.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -209,6 +210,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/slider/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/slider/config/audio_policy_configuration_a2dp_offload_disabled.xml index 25ba182..7814948 100644 --- a/audio/slider/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/slider/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -188,6 +189,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/slider/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/slider/config/audio_policy_configuration_bluetooth_legacy_hal.xml index f9eee3a..23e885d 100644 --- a/audio/slider/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/slider/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -113,6 +113,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -188,6 +189,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/whitefin/config/audio_platform_configuration.xml b/audio/whitefin/config/audio_platform_configuration.xml index 5ab950d..373c79b 100644 --- a/audio/whitefin/config/audio_platform_configuration.xml +++ b/audio/whitefin/config/audio_platform_configuration.xml @@ -137,6 +137,7 @@ + diff --git a/audio/whitefin/config/audio_policy_configuration.xml b/audio/whitefin/config/audio_policy_configuration.xml index 4ed9260..77d4b0e 100644 --- a/audio/whitefin/config/audio_policy_configuration.xml +++ b/audio/whitefin/config/audio_policy_configuration.xml @@ -108,6 +108,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -183,6 +184,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/whitefin/config/audio_policy_configuration_a2dp_offload_disabled.xml b/audio/whitefin/config/audio_policy_configuration_a2dp_offload_disabled.xml index aa879e4..766a550 100644 --- a/audio/whitefin/config/audio_policy_configuration_a2dp_offload_disabled.xml +++ b/audio/whitefin/config/audio_policy_configuration_a2dp_offload_disabled.xml @@ -108,6 +108,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -183,6 +184,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + diff --git a/audio/whitefin/config/audio_policy_configuration_bluetooth_legacy_hal.xml b/audio/whitefin/config/audio_policy_configuration_bluetooth_legacy_hal.xml index 2f92b0c..7a97772 100644 --- a/audio/whitefin/config/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/audio/whitefin/config/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -108,6 +108,7 @@ channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + @@ -183,6 +184,7 @@ sources="Built-In Mic,USB Device In,USB Headset In"/> + From 9d6c2d97aca889f18333a21c89976a87ba608cb3 Mon Sep 17 00:00:00 2001 From: Blake Kragten Date: Thu, 3 Jun 2021 17:18:39 -0700 Subject: [PATCH 4/4] Fixing Cellular-Emergency Hysteresis Bug: 190115475 Test: On Device Testing Change-Id: I9751d156c0edb14503748e2efd3ee5e8c9c6dad3 --- thermal_info_config_oriole.json | 2 +- thermal_info_config_raven.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thermal_info_config_oriole.json b/thermal_info_config_oriole.json index 12f9a4f..b763694 100644 --- a/thermal_info_config_oriole.json +++ b/thermal_info_config_oriole.json @@ -376,8 +376,8 @@ 0.0, 0.0, 0.0, - 1.9, 0.0, + 1.9, 0.0 ], "VrThreshold":"NAN", diff --git a/thermal_info_config_raven.json b/thermal_info_config_raven.json index c2820bf..ddb20cd 100644 --- a/thermal_info_config_raven.json +++ b/thermal_info_config_raven.json @@ -376,8 +376,8 @@ 0.0, 0.0, 0.0, - 1.9, 0.0, + 1.9, 0.0 ], "VrThreshold":"NAN",