From 518a8d0e0c075dd9d348d1ef37c12c60b0307db8 Mon Sep 17 00:00:00 2001 From: Vini Vennapusa Date: Thu, 26 May 2022 12:02:49 +0530 Subject: [PATCH 1/5] Power: Replace ndk_platform to ndk for Android-T Replace library name from ndk_platform to ndk for Android-T version Change-Id: I0fa28b653e39cb5bda6a5e15217f87cc8cbd13c8 --- Android.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Android.mk b/Android.mk index 7327f25..0be5701 100644 --- a/Android.mk +++ b/Android.mk @@ -10,10 +10,10 @@ LOCAL_MODULE_RELATIVE_PATH := hw # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk -ifeq ( ,$(filter Tiramisu T 13, $(PLATFORM_VERSION))) - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform -else +ifeq (,$(filter Tiramisu T 13, $(PLATFORM_VERSION))) LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk +else + LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform endif LOCAL_HEADER_LIBRARIES += libutils_headers From 04373bf53ef3201bf4f6de50704234a263ac59ec Mon Sep 17 00:00:00 2001 From: Siddeswar Aluganti Date: Wed, 8 Jun 2022 23:01:37 -0700 Subject: [PATCH 2/5] Power: Replace library name from ndk_platform to ndk Replace library name from ndk_platform to ndk. Change-Id: I9b471d46ba114baec555f1ead8d73a7d382ba55c --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 0be5701..3b90046 100644 --- a/Android.mk +++ b/Android.mk @@ -10,7 +10,7 @@ LOCAL_MODULE_RELATIVE_PATH := hw # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk -ifeq (,$(filter Tiramisu T 13, $(PLATFORM_VERSION))) +ifeq ($(call math_gt_or_eq, 33, $(PLATFORM_SDK_VERSION)), true) LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk else LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform From abed3bb458b877b5d39cac64e47959cc5fd1a63e Mon Sep 17 00:00:00 2001 From: Sumit Gemini Date: Fri, 10 Jun 2022 19:25:01 +0530 Subject: [PATCH 3/5] power : add powerhint file for parrot target Add Powerhint tunings for Parrot Change-Id: Ifbd87e24ec4609f75124b965fe85375139a30f69 --- config/parrot/powerhint.xml | 333 ++++++++++++++++++++++++++++++++++++ power-vendor-product.mk | 4 +- 2 files changed, 336 insertions(+), 1 deletion(-) create mode 100644 config/parrot/powerhint.xml diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml new file mode 100644 index 0000000..6e24a52 --- /dev/null +++ b/config/parrot/powerhint.xml @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index 2a019cc..7b470ca 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -19,4 +19,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),taro) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),kalama) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/kalama/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml -endif +else ifeq ($(TARGET_BOARD_PLATFORM),parrot) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/parrot/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +endif \ No newline at end of file From f06cbda7af6c5e7d525d8206efd6a521a9d76e3d Mon Sep 17 00:00:00 2001 From: Vini Vennapusa Date: Mon, 27 Jun 2022 12:36:56 +0530 Subject: [PATCH 4/5] Revert "Power:Replace library name from ndk_platform to ndk" Replace library name to ndk_platform for Android-S targets. Change-Id: Ia27a33a0d78671b5087abe6a562a7513053981ac --- Android.mk | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Android.mk b/Android.mk index 3b90046..f2ef2b6 100644 --- a/Android.mk +++ b/Android.mk @@ -8,14 +8,7 @@ include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) -LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk - -ifeq ($(call math_gt_or_eq, 33, $(PLATFORM_SDK_VERSION)), true) - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk -else - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform -endif - +LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-V1-ndk_platform libbinder_ndk LOCAL_HEADER_LIBRARIES += libutils_headers LOCAL_HEADER_LIBRARIES += libhardware_headers LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c Power.cpp main.cpp From 0f893c2254af1011126b4bc660724b2ba339167b Mon Sep 17 00:00:00 2001 From: Om SIngh Date: Wed, 11 May 2022 15:48:31 +0530 Subject: [PATCH 5/5] power: added powerhint.xml for neo target Added powerhint for neo Change-Id: I833338abe6ef8ddfd6974c2e0b4347a8dd7c8399 --- config/neo/powerhint.xml | 415 +++++++++++++++++++++++++++++++++++++++ power-vendor-product.mk | 4 +- 2 files changed, 418 insertions(+), 1 deletion(-) create mode 100644 config/neo/powerhint.xml diff --git a/config/neo/powerhint.xml b/config/neo/powerhint.xml new file mode 100644 index 0000000..406f053 --- /dev/null +++ b/config/neo/powerhint.xml @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index 7b470ca..8d44b56 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -21,4 +21,6 @@ else ifeq ($(TARGET_BOARD_PLATFORM),kalama) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/kalama/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),parrot) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/parrot/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml -endif \ No newline at end of file +else ifeq ($(TARGET_BOARD_PLATFORM),neo) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/neo/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +endif