mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: Switch to AIDL libperfmgr power HAL
Change-Id: I56928037bf543accb3175ea50c674f80a3f60b99 Signed-off-by: SamarV-121 <samarvispute121@pm.me> Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
0522bd9d3d
commit
5fc20541b8
13 changed files with 191 additions and 514 deletions
179
universal7885-common/configs/power/powerhint.json
Normal file
179
universal7885-common/configs/power/powerhint.json
Normal file
|
|
@ -0,0 +1,179 @@
|
|||
{
|
||||
"Nodes": [
|
||||
{
|
||||
"Name": "CPULittleClusterIOIsBusy",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy",
|
||||
"Values": [
|
||||
"0",
|
||||
"1"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBoostPulse",
|
||||
"Path": "/sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse",
|
||||
"Values": [
|
||||
"0",
|
||||
"1"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "CPUBigClusterIOIsBusy",
|
||||
"Path": "/sys/devices/system/cpu/cpu6/cpufreq/interactive/io_is_busy",
|
||||
"Values": [
|
||||
"0",
|
||||
"1"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "TouchscreenEnable",
|
||||
"Path": "/sys/class/sec/tsp/input/enabled",
|
||||
"Values": [
|
||||
"1",
|
||||
"0"
|
||||
],
|
||||
"ResetOnInit": true
|
||||
},
|
||||
{
|
||||
"Name": "DoubleTapToWakeEnable",
|
||||
"Path": "/sys/class/sec/tsp/cmd",
|
||||
"Values": [
|
||||
"aot_enable,0",
|
||||
"aot_enable,1"
|
||||
],
|
||||
"DefaultIndex": 0,
|
||||
"ResetOnInit": false
|
||||
},
|
||||
{
|
||||
"Name": "PowerHALMainState",
|
||||
"Path": "vendor.powerhal.state",
|
||||
"Values": [
|
||||
"SUSTAINED_PERFORMANCE",
|
||||
"VR_MODE",
|
||||
"VR_SUSTAINED_PERFORMANCE",
|
||||
""
|
||||
],
|
||||
"Type": "Property"
|
||||
},
|
||||
{
|
||||
"Name": "PowerHALAudioState",
|
||||
"Path": "vendor.powerhal.audio",
|
||||
"Values": [
|
||||
"AUDIO_STREAMING_LOW_LATENCY",
|
||||
""
|
||||
],
|
||||
"Type": "Property"
|
||||
},
|
||||
{
|
||||
"Name": "PowerHALRenderingState",
|
||||
"Path": "vendor.powerhal.rendering",
|
||||
"Values": [
|
||||
"EXPENSIVE_RENDERING",
|
||||
""
|
||||
],
|
||||
"Type": "Property"
|
||||
},
|
||||
{
|
||||
"Name": "PowerHALPerfProfileState",
|
||||
"Path": "vendor.powerhal.perf_profile",
|
||||
"Values": [
|
||||
"POWER_SAVE",
|
||||
"BIAS_POWER_SAVE",
|
||||
"BIAS_PERFORMANCE",
|
||||
"HIGH_PERFORMANCE"
|
||||
],
|
||||
"Type": "Property"
|
||||
}
|
||||
],
|
||||
"Actions": [
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPULittleClusterIOIsBusy",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBoostPulse",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTION",
|
||||
"Node": "CPUBigClusterIOIsBusy",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "DOUBLE_TAP_TO_WAKE",
|
||||
"Node": "DoubleTapToWakeEnable",
|
||||
"Duration": 0,
|
||||
"Value": "aot_enable,1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "AUDIO_STREAMING_LOW_LATENCY",
|
||||
"Node": "PowerHALAudioState",
|
||||
"Duration": 0,
|
||||
"Value": "AUDIO_STREAMING_LOW_LATENCY"
|
||||
},
|
||||
{
|
||||
"PowerHint": "SUSTAINED_PERFORMANCE",
|
||||
"Node": "PowerHALMainState",
|
||||
"Duration": 0,
|
||||
"Value": "SUSTAINED_PERFORMANCE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "VR_MODE",
|
||||
"Node": "PowerHALMainState",
|
||||
"Duration": 0,
|
||||
"Value": "VR_MODE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "VR_SUSTAINED_PERFORMANCE",
|
||||
"Node": "PowerHALMainState",
|
||||
"Duration": 0,
|
||||
"Value": "VR_SUSTAINED_PERFORMANCE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "EXPENSIVE_RENDERING",
|
||||
"Node": "PowerHALRenderingState",
|
||||
"Duration": 0,
|
||||
"Value": "EXPENSIVE_RENDERING"
|
||||
},
|
||||
{
|
||||
"PowerHint": "INTERACTIVE",
|
||||
"Node": "TouchscreenEnable",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "PROFILE_POWER_SAVE",
|
||||
"Node": "PowerHALPerfProfileState",
|
||||
"Duration": 0,
|
||||
"Value": "POWER_SAVE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "PROFILE_BIAS_POWER_SAVE",
|
||||
"Node": "PowerHALPerfProfileState",
|
||||
"Duration": 0,
|
||||
"Value": "BIAS_POWER_SAVE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "PROFILE_BIAS_PERFORMANCE",
|
||||
"Node": "PowerHALPerfProfileState",
|
||||
"Duration": 0,
|
||||
"Value": "BIAS_PERFORMANCE"
|
||||
},
|
||||
{
|
||||
"PowerHint": "PROFILE_HIGH_PERFORMANCE",
|
||||
"Node": "PowerHALPerfProfileState",
|
||||
"Duration": 0,
|
||||
"Value": "HIGH_PERFORMANCE"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue