From 0a844f74bea307e57f35bbb7790202a3fae96fb4 Mon Sep 17 00:00:00 2001 From: Kimi Hsu Date: Mon, 21 Aug 2023 03:12:05 +0000 Subject: [PATCH 1/3] Update camera cutout and cutout protection Bug: 296322078 Test: Setup faceunlock and turn on/off screen Change-Id: I7f153b56314436c0dd7dc9fa424093a445066738 --- shiba/overlay/frameworks/base/core/res/res/values/config.xml | 5 +---- .../frameworks/base/packages/SystemUI/res/values/config.xml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/shiba/overlay/frameworks/base/core/res/res/values/config.xml b/shiba/overlay/frameworks/base/core/res/res/values/config.xml index 1a9b6b6..a83fa35 100644 --- a/shiba/overlay/frameworks/base/core/res/res/values/config.xml +++ b/shiba/overlay/frameworks/base/core/res/res/values/config.xml @@ -245,10 +245,7 @@ - M 504,66.5 - a 36,36 0 0 1 72,0 - a 36,36 0 0 1 -72,0 - Z + m 576,65.75 a 36.25,36.25 0 0 0 -72.5,0 36.25,36.25 0 0 0 72.5,0 z @left diff --git a/shiba/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/shiba/overlay/frameworks/base/packages/SystemUI/res/values/config.xml index a67e26b..2927e27 100644 --- a/shiba/overlay/frameworks/base/packages/SystemUI/res/values/config.xml +++ b/shiba/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -49,10 +49,7 @@ - M 489.5,66 - a 50,50 0 0 1 100,0 - a 50,50 0 0 1 -100,0 - Z + m 589,65.75 a 49.25,49.25 0 0 0 -98.5,0 49.25,49.25 0 0 0 98.5,0 z From aecb9d8989472bc4f3edadacb57dbc26cdbe09cc Mon Sep 17 00:00:00 2001 From: paulsu Date: Mon, 25 Sep 2023 08:18:30 +0000 Subject: [PATCH 2/3] Enable tapered dvfs headroom in battery saver and thermal Bug: 295992028 Test: Boot to home Change-Id: I04e5b286e2fb5853bd0206f8024807fe7bcd11a4 Signed-off-by: paulsu --- perf/powerhint-husky.json | 12 ++++++++++++ perf/powerhint-ripcurrent.json | 12 ++++++++++++ perf/powerhint-shiba.json | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index 0b01fca..8843d70 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -2271,6 +2271,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "DISPLAY_IDLE", "Node": "FGPreferIdle", @@ -2450,6 +2456,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE", "Node": "Dex2oatThreads", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index 87404ac..41ddbf1 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -2060,6 +2060,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "DISPLAY_IDLE", "Node": "FGPreferIdle", @@ -2245,6 +2251,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE", "Node": "Dex2oatThreads", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index efc8552..767d903 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -2175,6 +2175,12 @@ "Duration": 0, "Value": "1" }, + { + "PowerHint": "LOW_POWER", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "DISPLAY_IDLE", "Node": "FGPreferIdle", @@ -2354,6 +2360,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", + "Node": "CPUTaperedDVFSHeadroomEnable", + "Duration": 0, + "Value": "1" + }, { "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE", "Node": "Dex2oatThreads", From 2ce3ab61b88f04c5bc8056edba764ca3eefc9187 Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Mon, 18 Sep 2023 14:56:21 +0000 Subject: [PATCH 3/3] powerhint.json: Reset bg_uclamp_max on LAUNCH And disable uclamp_max_filter so that we don't accidentally impact LAUNCH time. Bug: 301807825 Signed-off-by: Qais Yousef Change-Id: I913b50fb6e2896de96873e550e6299b7294f6bec --- perf/powerhint-husky.json | 32 ++++++++++++++++++++++++++++++++ perf/powerhint-ripcurrent.json | 32 ++++++++++++++++++++++++++++++++ perf/powerhint-shiba.json | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/perf/powerhint-husky.json b/perf/powerhint-husky.json index 0b01fca..00de893 100644 --- a/perf/powerhint-husky.json +++ b/perf/powerhint-husky.json @@ -261,6 +261,26 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "CPUUClampMaxFilterEnable", + "Path": "/proc/vendor_sched/uclamp_max_filter_enable", + "Values": [ + "1", + "0" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "BGUClampMaxBoost", + "Path": "/proc/vendor_sched/bg_uclamp_max", + "Values": [ + "130", + "512" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CAMUClampBoost", "Path": "/proc/vendor_sched/cam_uclamp_min", @@ -808,6 +828,18 @@ "Duration": 5000, "Value": "9999999" }, + { + "PowerHint": "LAUNCH", + "Node": "CPUUClampMaxFilterEnable", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "BGUClampMaxBoost", + "Duration": 5000, + "Value": "512" + }, { "PowerHint": "LAUNCH", "Node": "TAUClampBoost", diff --git a/perf/powerhint-ripcurrent.json b/perf/powerhint-ripcurrent.json index 87404ac..1fd56a1 100644 --- a/perf/powerhint-ripcurrent.json +++ b/perf/powerhint-ripcurrent.json @@ -247,6 +247,26 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "CPUUClampMaxFilterEnable", + "Path": "/proc/vendor_sched/uclamp_max_filter_enable", + "Values": [ + "1", + "0" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "BGUClampMaxBoost", + "Path": "/proc/vendor_sched/bg_uclamp_max", + "Values": [ + "130", + "512" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CAMUClampBoost", "Path": "/proc/vendor_sched/cam_uclamp_min", @@ -830,6 +850,18 @@ "Duration": 5000, "Value": "9999999" }, + { + "PowerHint": "LAUNCH", + "Node": "CPUUClampMaxFilterEnable", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "BGUClampMaxBoost", + "Duration": 5000, + "Value": "512" + }, { "PowerHint": "LAUNCH", "Node": "TAUClampBoost", diff --git a/perf/powerhint-shiba.json b/perf/powerhint-shiba.json index efc8552..7f5017b 100644 --- a/perf/powerhint-shiba.json +++ b/perf/powerhint-shiba.json @@ -261,6 +261,26 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "CPUUClampMaxFilterEnable", + "Path": "/proc/vendor_sched/uclamp_max_filter_enable", + "Values": [ + "1", + "0" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, + { + "Name": "BGUClampMaxBoost", + "Path": "/proc/vendor_sched/bg_uclamp_max", + "Values": [ + "130", + "512" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "CAMUClampBoost", "Path": "/proc/vendor_sched/cam_uclamp_min", @@ -808,6 +828,18 @@ "Duration": 5000, "Value": "9999999" }, + { + "PowerHint": "LAUNCH", + "Node": "CPUUClampMaxFilterEnable", + "Duration": 5000, + "Value": "0" + }, + { + "PowerHint": "LAUNCH", + "Node": "BGUClampMaxBoost", + "Duration": 5000, + "Value": "512" + }, { "PowerHint": "LAUNCH", "Node": "TAUClampBoost",