ADPF:shusky: use tagged ADPF profile for SYSTEM_UI.

- Add a event node for SYSTEM_UI;
- Add a separate SYSTEM_UI profile.

Bug: 393196667
Test: adb shell dumpsys android.hardware.power.IPower/default
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I53c5b2bb168b15ad965798a68f631c8a7b94a5e1
This commit is contained in:
guibing 2025-01-31 19:56:22 +00:00
parent 8017c3fcdb
commit 3ed4ea2bad
2 changed files with 96 additions and 0 deletions

View file

@ -982,6 +982,16 @@
],
"ResetOnInit": true,
"Type": "Property"
},
{
"Name": "SYSTEM_UI_ADPF_PROFILES",
"Path": "<AdpfConfig>:SYSTEM_UI",
"Values": [
"SYSTEM_UI_PROFILE"
],
"DefaultIndex": 0,
"ResetOnInit": true,
"Type": "Event"
}
],
"Actions": [
@ -3786,6 +3796,44 @@
"JankCheckTimeFactor": 1.2,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "SYSTEM_UI_PROFILE",
"PID_On": true,
"PID_Po": 2.0,
"PID_Pu": 0.5,
"PID_I": 0.0,
"PID_I_Init": 200,
"PID_I_High": 512,
"PID_I_Low": -30,
"PID_Do": 500.0,
"PID_Du": 0.0,
"UclampMin_On": true,
"UclampMin_Init": 231,
"UclampMin_LoadUp": 730,
"UclampMin_LoadReset": 730,
"UclampMin_High": 480,
"UclampMin_Low": 2,
"UclampMax_EfficientBase": 500,
"UclampMax_EfficientOffset": 200,
"SamplingWindow_P": 1,
"SamplingWindow_I": 0,
"SamplingWindow_D": 1,
"ReportingRateLimitNs": 166666660,
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 100000,
"HeuristicBoost_On": true,
"HBoostModerateJankThreshold": 2,
"HBoostOffMaxAvgDurRatio": 4.0,
"HBoostSevereJankPidPu": 0.3,
"HBoostSevereJankThreshold": 8,
"HBoostUclampMinCeilingRange": [480, 722],
"HBoostUclampMinFloorRange": [230, 410],
"JankCheckTimeFactor": 1.2,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
}
]
}

View file

@ -983,6 +983,16 @@
],
"ResetOnInit": true,
"Type": "Property"
},
{
"Name": "SYSTEM_UI_ADPF_PROFILES",
"Path": "<AdpfConfig>:SYSTEM_UI",
"Values": [
"SYSTEM_UI_PROFILE"
],
"DefaultIndex": 0,
"ResetOnInit": true,
"Type": "Event"
}
],
"Actions": [
@ -3691,6 +3701,44 @@
"JankCheckTimeFactor": 1.2,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
},
{
"Name": "SYSTEM_UI_PROFILE",
"PID_On": true,
"PID_Po": 2.0,
"PID_Pu": 0.5,
"PID_I": 0.0,
"PID_I_Init": 200,
"PID_I_High": 512,
"PID_I_Low": -30,
"PID_Do": 500.0,
"PID_Du": 0.0,
"UclampMin_On": true,
"UclampMin_Init": 231,
"UclampMin_LoadUp": 730,
"UclampMin_LoadReset": 730,
"UclampMin_High": 480,
"UclampMin_Low": 2,
"UclampMax_EfficientBase": 500,
"UclampMax_EfficientOffset": 200,
"SamplingWindow_P": 1,
"SamplingWindow_I": 0,
"SamplingWindow_D": 1,
"ReportingRateLimitNs": 166666660,
"TargetTimeFactor": 1.0,
"StaleTimeFactor": 15.0,
"GpuBoost": true,
"GpuCapacityBoostMax": 100000,
"HeuristicBoost_On": true,
"HBoostModerateJankThreshold": 2,
"HBoostOffMaxAvgDurRatio": 4.0,
"HBoostSevereJankPidPu": 0.3,
"HBoostSevereJankThreshold": 8,
"HBoostUclampMinCeilingRange": [480, 722],
"HBoostUclampMinFloorRange": [230, 410],
"JankCheckTimeFactor": 1.2,
"LowFrameRateThreshold": 25,
"MaxRecordsNum": 300
}
]
}