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

This commit is contained in:
Dmitry Skiba 2024-12-09 19:01:12 +00:00 committed by Android (Google) Code Review
commit 769b383a3d
6 changed files with 99 additions and 24 deletions

View file

@ -535,3 +535,8 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/shusky/bluetooth/audio_set_configurations.json:$(TARGET_COPY_OUT_VENDOR)/etc/aidl/le_audio/aidl_audio_set_configurations.json device/google/shusky/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

@ -279,3 +279,8 @@ PRODUCT_VENDOR_PROPERTIES += \
# PKVM Memory Reclaim # PKVM Memory Reclaim
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
hypervisor.memory_reclaim.supported=1 hypervisor.memory_reclaim.supported=1
# Enable APF by default
PRODUCT_VENDOR_PROPERTIES += \
vendor.powerhal.apf_disabled=false \
vendor.powerhal.apf_enabled=true

View file

@ -504,3 +504,8 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/caimito/bluetooth/audio_set_configurations.json:$(TARGET_COPY_OUT_VENDOR)/etc/aidl/le_audio/aidl_audio_set_configurations.json device/google/caimito/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

@ -917,6 +917,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "0x1ff" "Value": "0x1ff"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid",
"Duration": 5000,
"Value": "0x1ff",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "ReducePreferIdle", "Node": "ReducePreferIdle",
@ -976,6 +983,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "615" "Value": "615"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1050,37 +1064,43 @@
"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",
"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": "570" "Value": "570",
"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",

View file

@ -945,6 +945,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "0x1ff" "Value": "0x1ff"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid",
"Duration": 5000,
"Value": "0x1ff",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "ReducePreferIdle", "Node": "ReducePreferIdle",
@ -1004,6 +1011,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "615" "Value": "615"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1078,37 +1092,43 @@
"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",
"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": "570" "Value": "570",
"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",

View file

@ -918,6 +918,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "0x1ff" "Value": "0x1ff"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAPreferredIdleMaskMid",
"Duration": 5000,
"Value": "0x1ff",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "ReducePreferIdle", "Node": "ReducePreferIdle",
@ -977,6 +984,13 @@
"Duration": 5000, "Duration": 5000,
"Value": "615" "Value": "615"
}, },
{
"PowerHint": "LAUNCH",
"Node": "TAUClampBoost",
"Duration": 5000,
"Value": "765",
"EnableProperty": "vendor.powerhal.apf_disabled"
},
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "FGUClampBoost", "Node": "FGUClampBoost",
@ -1051,37 +1065,43 @@
"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",
"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": "570" "Value": "570",
"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",