From 8c4dea2fa880f14489a7c4b63f25524497673e50 Mon Sep 17 00:00:00 2001 From: guibing Date: Thu, 16 May 2024 20:42:28 +0000 Subject: [PATCH 1/2] Adpf:tangorpro: enable heuristic boost. Heuristic boost will adjust the ADPF boost profile when the powerhal detects the power session is very janky, providing more boost for deadline sensitive threads managered in the session. Bug: 341111433 Test: adb shell dumpsys android.hardware.power.IPower/default; Check the device adpf sessions' traces. Change-Id: I4f4d79ed9e169fba6de0eea0e5356fef0bf7e388 --- powerhint.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/powerhint.json b/powerhint.json index bdd91f3..79e1c35 100644 --- a/powerhint.json +++ b/powerhint.json @@ -1892,7 +1892,16 @@ "SamplingWindow_D": 1, "ReportingRateLimitNs": 166666660, "TargetTimeFactor": 1.0, - "StaleTimeFactor": 15.0 + "StaleTimeFactor": 15.0, + "HeuristicBoost_On": true, + "HBoostOnMissedCycles": 8, + "HBoostOffMaxAvgRatio": 4.0, + "HBoostOffMissedCycles": 5, + "HBoostPidPuFactor": 0.5, + "HBoostUclampMin": 722, + "JankCheckTimeFactor": 1.2, + "LowFrameRateThreshold": 25, + "MaxRecordsNum": 300 }, { "Name": "UiHighBoostWithoutPid", From 6602d509b394e1ef13c3405e0a3c400834d0d3ed Mon Sep 17 00:00:00 2001 From: Hyungwoo Yang Date: Thu, 16 May 2024 08:52:16 +0000 Subject: [PATCH 2/2] Add USI stylus input configuration file This is to support the Google USI Subsystem. Bug: 337984471 Change-Id: If2f935239047028ac70cc2451ec8369248659b95 --- USI_Stylus.idc | 4 ++++ device-tangorpro.mk | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 USI_Stylus.idc diff --git a/USI_Stylus.idc b/USI_Stylus.idc new file mode 100644 index 0000000..58d8d2c --- /dev/null +++ b/USI_Stylus.idc @@ -0,0 +1,4 @@ +touch.orientationAware = 1 +touch.orientation = ORIENTATION_0 +touch.usiVersionMajor = 2 +touch.usiVersionMinor = 0 diff --git a/device-tangorpro.mk b/device-tangorpro.mk index 57dd148..3e95329 100644 --- a/device-tangorpro.mk +++ b/device-tangorpro.mk @@ -71,7 +71,8 @@ PRODUCT_DEXPREOPT_SPEED_APPS += SystemUITitan # For tablet # Touch files PRODUCT_COPY_FILES += \ device/google/tangorpro/NVTCapacitiveTouchScreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/NVTCapacitiveTouchScreen.idc \ - device/google/tangorpro/NVTCapacitivePen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/NVTCapacitivePen.idc + device/google/tangorpro/NVTCapacitivePen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/NVTCapacitivePen.idc \ + device/google/tangorpro/USI_Stylus.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/USI_Stylus.idc # Init files PRODUCT_COPY_FILES += \