From c821db2c4c06c9a7b9a3555ee3b40663b0655059 Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Wed, 2 Nov 2022 08:47:43 +0800 Subject: [PATCH] powerhint: relax the cap when camera exit Camera hints was canceled at activityStop and applied the rule for a while after LAUNCH hint, exten the LAUNCH HINT to fix it. Bug: 255927500 Test: build and launch/exit camera Change-Id: I86b19467f6038a7fde0935bf79f0a0e6bc76523b --- powerhint.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/powerhint.json b/powerhint.json index 49afd5e..9b9b658 100644 --- a/powerhint.json +++ b/powerhint.json @@ -645,6 +645,29 @@ "EnableProperty": "vendor.powerhal.camerarunning", "Value": "CDMIDHIGHCPUSETCPUS_RESTRICTED" }, + { + "PowerHint": "LAUNCH", + "Type": "DoHint", + "Value": "LAUNCH_EXTEND" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPUBigClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPUMidClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, + { + "PowerHint": "LAUNCH_EXTEND", + "Node": "CPULittleClusterMaxFreq", + "Duration": 2000, + "Value": "9999999" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq",