Merge "Add a way to disable auto prefer fit for launch." into main

This commit is contained in:
Dmitry Skiba 2024-12-06 18:05:24 +00:00 committed by Android (Google) Code Review
commit fccce6564e
2 changed files with 33 additions and 8 deletions

View file

@ -543,3 +543,8 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/comet/bluetooth/audio_set_configurations.json:$(TARGET_COPY_OUT_VENDOR)/etc/aidl/le_audio/aidl_audio_set_configurations.json device/google/comet/bluetooth/audio_set_configurations.json:$(TARGET_COPY_OUT_VENDOR)/etc/aidl/le_audio/aidl_audio_set_configurations.json
# Enable APF by default
PRODUCT_VENDOR_PROPERTIES += \
vendor.powerhal.apf_disabled=false \
vendor.powerhal.apf_enabled=true

View file

@ -1097,6 +1097,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "512" "Value": "512"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1284,7 +1291,8 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAAutoPreferFit", "Node": "TAAutoPreferFit",
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1",
"EnableProperty": "vendor.powerhal.apf_enabled"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -1292,35 +1300,47 @@
"Duration": 5000, "Duration": 5000,
"Value": "0xff" "Value": "0xff"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid",
"Duration": 5000,
"Value": "0xff",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceEnable", "Node": "TAUclampMinOnNiceEnable",
"Duration": 5000, "Duration": 5000,
"Value": "1" "Value": "1",
"EnableProperty": "vendor.powerhal.apf_enabled"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighValue", "Node": "TAUclampMinOnNiceHighValue",
"Duration": 5000, "Duration": 5000,
"Value": "765" "Value": "765",
"EnableProperty": "vendor.powerhal.apf_enabled"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceHighPrio", "Node": "TAUclampMinOnNiceHighPrio",
"Duration": 5000, "Duration": 5000,
"Value": "110" "Value": "110",
"EnableProperty": "vendor.powerhal.apf_enabled"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidValue", "Node": "TAUclampMinOnNiceMidValue",
"Duration": 5000, "Duration": 5000,
"Value": "590" "Value": "590",
"EnableProperty": "vendor.powerhal.apf_enabled"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUclampMinOnNiceMidPrio", "Node": "TAUclampMinOnNiceMidPrio",
"Duration": 5000, "Duration": 5000,
"Value": "139" "Value": "139",
"EnableProperty": "vendor.powerhal.apf_enabled"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",