From 605228a63cf30c776fe8b167c62dacb50fdf8e9e Mon Sep 17 00:00:00 2001 From: William Tai Date: Sat, 12 Feb 2022 10:57:22 +0800 Subject: [PATCH 1/7] display : update color data file Update disply color data for LHBM. Bug: 199469421 Test: adb shell displaycolor_service 653 Change-Id: I608f4bab5a7c7d9210c6401bae44270cbab8241b --- panther/display_colordata_dev_cal0.pb | Bin 988 -> 1426 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/panther/display_colordata_dev_cal0.pb b/panther/display_colordata_dev_cal0.pb index a1600ae31d490f4e00e135ca9399597545751334..7f2691455fca694d668937c2464fc338e2b5bebe 100644 GIT binary patch literal 1426 zcmd7RJC4&}6oz4J$JfNMgtLTy2N1#t4H>92-B-TSqtAJ4DZY{@skfQG+`L|$j5m2PUA~xR^}F-Q z;wa0Gvt^bqihI#Xu_|88&x=L!{7tf6F3(O^MRLAgpFPx`+1UFt$e zp$sX4m}2Nr5Bk)H0S#bCLm1JhOoHna6JMv8om!UX*%qEKKt0<1_m5plbhJ$7Ph&K9qwS4yBKna z5l0wvj6LpQpZhrA0S4nl%NYSMx2o2b<3 zEHEEfSihz(sX6Fa|>(>5 Date: Sun, 13 Feb 2022 23:40:47 +0800 Subject: [PATCH 2/7] display : add color data file Add disply color data file. Bug: 199468488 Test: adb shell displaycolor_service 653 Change-Id: I2d67a763c546d77cb7b4887f3af88ad25fbe2031 --- cheetah/display_colordata_sdc-s6e3hc4_cal0.pb | Bin 0 -> 1385 bytes device-cheetah.mk | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 cheetah/display_colordata_sdc-s6e3hc4_cal0.pb diff --git a/cheetah/display_colordata_sdc-s6e3hc4_cal0.pb b/cheetah/display_colordata_sdc-s6e3hc4_cal0.pb new file mode 100644 index 0000000000000000000000000000000000000000..c9fc154ddabe0f6738fe5ca31ff37c143899c11b GIT binary patch literal 1385 zcmd7RJC4&(6o6rDCvoD~j^p_Kit8v6v1cX-Dxjfb4*@&_(vV1GDCllYb(U~D+Kbr0 zUBX$yS;Acc284tr^qC#}(x=~gHP$?>)>gCQ?&I1GFnx%VA z&FU4?9zAC|*HKrxFwlSj4q!+_HKY-kXu=rBFu@5}Xu%YxV51EVI^d!UGn#RaJU*v6 z_tA$1EqFiy4=LmkMLedMCzSA%Ql3%9bIN%^1uv=O6;*smOIG_2DJFYJF~8N?wpm|o zn^QH?K$kk{(5tb5?A1iCCPr!`Ol69(8jFdV2uoRFs;0tLws4dqT;+ Date: Sun, 13 Feb 2022 23:43:36 +0800 Subject: [PATCH 3/7] display : update color data file Update disply color data for LHBM. Bug: 203594609 Test: adb shell displaycolor_service 653 Change-Id: Ifda684838351babe226dfe763a2d60298c60e274 --- cheetah/display_colordata_boe-nt37290_cal0.pb | Bin 947 -> 1367 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/cheetah/display_colordata_boe-nt37290_cal0.pb b/cheetah/display_colordata_boe-nt37290_cal0.pb index 082bf72f68403a51fe437adcc1bdae732a65f48c..52df64dfd2d1dfe6944b219154d837fe6ce5523b 100644 GIT binary patch literal 1367 zcmd7ROHRU26o6rGOKG{#2j$uFXvc)awkSqN=){?E38EG>QAh*_jyyw$EJ4S{0{ zX*x?E#>@0NynG7hlgZufEDe|Q`Q3?nwtL+BP^F$EaesdpyKky|5mIr?5W?Q`PBa3s z5w8j>sIrPV&`5(kq%ER4r(NkN_^+&Dzy}gznsq@d7=< ze}p;09KeOfC2mdN24C{&Hx*)%fP}_2ecryT7NhMfOCIl&aWjqMG@2z*JdLCC$%V7X zR@o-qWe>sKYp|ZrmrtuK*sa&gYkGTn6@F5^98Z(c>}+DaQ~izTirENQ5HfOd$%!Pn zf(oOYN}8)e%{8IrB~gMhmZ5?bsA3g#)S-qosAC-(*kH|~$qa5tgPYRiEz!y?VL=<) z&?!2sTXbcY_hgUvML)NN4GucsqRYI(V?OtV4+9*04Xk6rxW|MEKd7!nqj)<0dnO52 ugaWkq8RIIdOe-|`k7u&aZE15yIJqla@X!Mvf5%{m!@aY^V)o7si}?l`OHp$G From ba2ac351b515fc45f489e95a26ec690cdd61390c Mon Sep 17 00:00:00 2001 From: Midas Chien Date: Tue, 15 Feb 2022 14:39:03 +0800 Subject: [PATCH 4/7] display: enable smooth display by default Turn on Smooth Display in Settings App by default. Users can disable it in Settings App. Bug: 219650450 Test: Smooth Display is enabled by default after factory reset Change-Id: I3acc5d548bad8a5068a75140673512ba793890e8 --- .../overlay/frameworks/base/core/res/res/values/config.xml | 7 +++++++ .../overlay/frameworks/base/core/res/res/values/config.xml | 7 +++++++ 2 files changed, 14 insertions(+) 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 faad22c..11670d0 100644 --- a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml +++ b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml @@ -143,6 +143,13 @@ 2000 4000 + + 0 + + + 120 + ge2ae 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 dc57f3e..b64ae87 100644 --- a/panther/overlay/frameworks/base/core/res/res/values/config.xml +++ b/panther/overlay/frameworks/base/core/res/res/values/config.xml @@ -142,6 +142,13 @@ 2000 4000 + + 0 + + + 90 + gqml3 From a34fbb728403f4c1b101e4440afd71ab9c0bc964 Mon Sep 17 00:00:00 2001 From: Roger Wang Date: Wed, 16 Feb 2022 22:38:33 +0800 Subject: [PATCH 5/7] wifi: configuration update Align configuration as following. 1. Dual AP interface 2. verbose logging always on 3. hotspot MFP Bug: 219927253 Test: dual hotspot can be turned ON and client can connect to hotspot Change-Id: I0885b55c37135fe632b597bc605a8f281c0448b2 --- rro_overlays/WifiOverlay/res/values/config.xml | 6 ++++++ wifi/BoardConfig-wifi.mk | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml index 0c8bf62..d900cef 100644 --- a/rro_overlays/WifiOverlay/res/values/config.xml +++ b/rro_overlays/WifiOverlay/res/values/config.xml @@ -136,4 +136,10 @@ false + + + + 1 diff --git a/wifi/BoardConfig-wifi.mk b/wifi/BoardConfig-wifi.mk index ed491ad..64a6fb5 100644 --- a/wifi/BoardConfig-wifi.mk +++ b/wifi/BoardConfig-wifi.mk @@ -14,19 +14,22 @@ # limitations under the License. # +# WiFi BOARD_WLAN_DEVICE := bcmdhd BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_HOSTAPD_DRIVER := NL80211 -# Wifi interface combination - {1 STA + 1 AP (bridged or single)} or {2 STA + 1 of (P2P or NAN)} -WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{AP}, 1}}, {{{STA}, 2}, {{P2P, NAN}, 1}} +# Wifi interface combination - {1 STA + 1 AP} or {1 STA + 1 AP_BRIDGED} or {1 STA + 1 P2P} +# or {1 STA + 1 NAN} or {2 STA} +WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{P2P, NAN, AP, AP_BRIDGED}, 1}}, {{{STA}, 2}} WIFI_FEATURE_WIFI_EXT_HAL := true WIFI_FEATURE_IMU_DETECTION := true # Avoid Wifi reset on MAC Address change WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true WIFI_FEATURE_HOSTAPD_11AX := true +BOARD_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL := true PRODUCT_COPY_FILES += \ device/google/pantah/wifi/p2p_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant.conf \ From d321e3f11277d865c4d0367bcf088055f3408a63 Mon Sep 17 00:00:00 2001 From: samou Date: Wed, 16 Feb 2022 09:21:43 +0000 Subject: [PATCH 6/7] Create initial power_profile.xml Bug: 219368899 Change-Id: I38c0c65e5be0b4ae3fb22637f3273d039b1fd685 --- .../base/core/res/res/xml/power_profile.xml | 218 ++++++++++++++++++ .../base/core/res/res/xml/power_profile.xml | 218 ++++++++++++++++++ 2 files changed, 436 insertions(+) create mode 100644 cheetah/overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 panther/overlay/frameworks/base/core/res/res/xml/power_profile.xml diff --git a/cheetah/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/cheetah/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..476ba4e --- /dev/null +++ b/cheetah/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,218 @@ + + + + 5000 + + + 4 + 2 + 2 + + + + 10 + 28.6 + 12.37 + 0.24 + 3.23 + 5.94 + + + + 300000 + 574000 + 738000 + 930000 + 1098000 + 1197000 + 1328000 + 1401000 + 1598000 + 1704000 + 1803000 + 1950000 + 2024000 + + + + + 400000 + 553000 + 696000 + 799000 + 910000 + 1024000 + 1197000 + 1328000 + 1491000 + 1663000 + 1836000 + 1999000 + 2130000 + 2253000 + 2348000 + + + + + 500000 + 851000 + 984000 + 1106000 + 1277000 + 1426000 + 1582000 + 1745000 + 1826000 + 2048000 + 2188000 + 2252000 + 2401000 + 2507000 + 2630000 + 2704000 + 2802000 + 2850000 + + + + + 1.89 + 6.15 + 9.34 + 14.22 + 18.94 + 21.98 + 26.83 + 30.17 + 41.55 + 48.36 + 58.45 + 73 + 80 + + + + + 3.71 + 6.16 + 8 + 10.94 + 12.73 + 14.4 + 21.39 + 24.1 + 30.42 + 42.49 + 49.37 + 58.09 + 67.54 + 79.04 + 87 + + + + + 8.36 + 16.33 + 19.44 + 36.71 + 41.42 + 48.24 + 54.77 + 65.32 + 69.58 + 128.49 + 142.15 + 149.74 + 164.78 + 188.68 + 193.15 + 227.98 + 254.25 + 267 + + + + 32 + + + 98 + + 470 + + + 240.47 + + 900 + + + 25 + + 75 + + + 0 + 156 + 145 + + 153 + 212 + 292 + 359 + 471 + + 3700 + + + + 14.33 + 12.79 + + 3700 + + + 38 + + 98 + + 470 + + 3700 + + + 2.2 + + 5.8 + + 20 + + 3850 + + diff --git a/panther/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/panther/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..3322606 --- /dev/null +++ b/panther/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,218 @@ + + + + 4315 + + + 4 + 2 + 2 + + + + 10 + 28.6 + 12.37 + 0.24 + 3.23 + 5.94 + + + + 300000 + 574000 + 738000 + 930000 + 1098000 + 1197000 + 1328000 + 1401000 + 1598000 + 1704000 + 1803000 + 1950000 + 2024000 + + + + + 400000 + 553000 + 696000 + 799000 + 910000 + 1024000 + 1197000 + 1328000 + 1491000 + 1663000 + 1836000 + 1999000 + 2130000 + 2253000 + 2348000 + + + + + 500000 + 851000 + 984000 + 1106000 + 1277000 + 1426000 + 1582000 + 1745000 + 1826000 + 2048000 + 2188000 + 2252000 + 2401000 + 2507000 + 2630000 + 2704000 + 2802000 + 2850000 + + + + + 1.89 + 6.15 + 9.34 + 14.22 + 18.94 + 21.98 + 26.83 + 30.17 + 41.55 + 48.36 + 58.45 + 73 + 80 + + + + + 3.71 + 6.16 + 8 + 10.94 + 12.73 + 14.4 + 21.39 + 24.1 + 30.42 + 42.49 + 49.37 + 58.09 + 67.54 + 79.04 + 87 + + + + + 8.36 + 16.33 + 19.44 + 36.71 + 41.42 + 48.24 + 54.77 + 65.32 + 69.58 + 128.49 + 142.15 + 149.74 + 164.78 + 188.68 + 193.15 + 227.98 + 254.25 + 267 + + + + 32 + + + 98 + + 470 + + + 240.47 + + 900 + + + 25 + + 75 + + + 0 + 156 + 145 + + 153 + 212 + 292 + 359 + 471 + + 3700 + + + + 14.33 + 12.79 + + 3700 + + + 38 + + 98 + + 470 + + 3700 + + + 2.2 + + 5.8 + + 20 + + 3850 + + From cdc1dc5379faf6bb60cf4f8b4b967ae87992b2ed Mon Sep 17 00:00:00 2001 From: Chris Kuiper Date: Wed, 16 Feb 2022 11:37:36 -0800 Subject: [PATCH 7/7] Config: Fine-tune ambient thresholds for brightness stability. Porting to C10/P10. Bug: 215655995 Test: adb shell dumpsys display and check the log. Change-Id: I68d2121bb8694aab0e23ab67b5cc2cc5d5b1fdb4 --- .../base/core/res/res/values/config.xml | 68 +++++++++++++++++++ .../base/core/res/res/values/config.xml | 68 +++++++++++++++++++ 2 files changed, 136 insertions(+) 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 11670d0..04e2cb3 100644 --- a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml +++ b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml @@ -160,4 +160,72 @@ 64 + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 20 + 30 + 40 + 50 + 60 + 70 + 80 + 90 + 100 + + + + 11373 + 5000 + 4333 + 3666 + 3000 + 2760 + 2520 + 2280 + 2040 + 1800 + 800 + 527 + 500 + 470 + 396 + 322 + 248 + 174 + 99 + 99 + + + + 853 + 700 + 683 + 666 + 650 + 640 + 630 + 620 + 610 + 600 + 500 + 500 + 440 + 385 + 348 + 311 + 274 + 237 + 200 + 200 + 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 b64ae87..7da20bf 100644 --- a/panther/overlay/frameworks/base/core/res/res/values/config.xml +++ b/panther/overlay/frameworks/base/core/res/res/values/config.xml @@ -159,4 +159,72 @@ 64 + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 20 + 30 + 40 + 50 + 60 + 70 + 80 + 90 + 100 + + + + 11373 + 5000 + 4333 + 3666 + 3000 + 2760 + 2520 + 2280 + 2040 + 1800 + 800 + 527 + 500 + 470 + 396 + 322 + 248 + 174 + 99 + 99 + + + + 853 + 700 + 683 + 666 + 650 + 640 + 630 + 620 + 610 + 600 + 500 + 500 + 440 + 385 + 348 + 311 + 274 + 237 + 200 + 200 +