From 800979852e6c8eea9980174dc266871ac121f813 Mon Sep 17 00:00:00 2001 From: Anand S Date: Thu, 18 Jul 2024 12:56:42 +0530 Subject: [PATCH] sm6375-common: power-libperfmgr: Adapt and rebrand to moto_sm6375 Change-Id: I6732e0076564ada7078c9334b62fb865d473accd --- power-libperfmgr/Android.bp | 6 +++--- power-libperfmgr/InteractionHandler.cpp | 2 +- power-libperfmgr/Power.cpp | 2 +- ...roid.hardware.power-service.moto_sm6375-libperfmgr.rc} | 2 +- ...xml => android.hardware.power-service.moto_sm6375.xml} | 0 power-libperfmgr/service.cpp | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) rename power-libperfmgr/{android.hardware.power-service.pixel-libperfmgr.rc => android.hardware.power-service.moto_sm6375-libperfmgr.rc} (94%) rename power-libperfmgr/{android.hardware.power-service.pixel.xml => android.hardware.power-service.moto_sm6375.xml} (100%) diff --git a/power-libperfmgr/Android.bp b/power-libperfmgr/Android.bp index 5fae9cf..5a8c89c 100644 --- a/power-libperfmgr/Android.bp +++ b/power-libperfmgr/Android.bp @@ -14,10 +14,10 @@ // limitations under the License. cc_binary { - name: "android.hardware.power-service.pixel-libperfmgr", + name: "android.hardware.power-service.moto_sm6375-libperfmgr", relative_install_path: "hw", - init_rc: ["android.hardware.power-service.pixel-libperfmgr.rc"], - vintf_fragments: ["android.hardware.power-service.pixel.xml"], + init_rc: ["android.hardware.power-service.moto_sm6375-libperfmgr.rc"], + vintf_fragments: ["android.hardware.power-service.moto_sm6375.xml"], vendor: true, shared_libs: [ "android.hardware.power-ndk_platform", diff --git a/power-libperfmgr/InteractionHandler.cpp b/power-libperfmgr/InteractionHandler.cpp index b441d51..e0ddace 100644 --- a/power-libperfmgr/InteractionHandler.cpp +++ b/power-libperfmgr/InteractionHandler.cpp @@ -15,7 +15,7 @@ */ #define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL) -#define LOG_TAG "android.hardware.power-service.pixel-libperfmgr" +#define LOG_TAG "android.hardware.power-service.moto_sm6375-libperfmgr" #include #include diff --git a/power-libperfmgr/Power.cpp b/power-libperfmgr/Power.cpp index 15e5a08..951b9e1 100644 --- a/power-libperfmgr/Power.cpp +++ b/power-libperfmgr/Power.cpp @@ -15,7 +15,7 @@ */ #define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL) -#define LOG_TAG "android.hardware.power-service.pixel-libperfmgr" +#define LOG_TAG "android.hardware.power-service.moto_sm6375-libperfmgr" #include "Power.h" diff --git a/power-libperfmgr/android.hardware.power-service.pixel-libperfmgr.rc b/power-libperfmgr/android.hardware.power-service.moto_sm6375-libperfmgr.rc similarity index 94% rename from power-libperfmgr/android.hardware.power-service.pixel-libperfmgr.rc rename to power-libperfmgr/android.hardware.power-service.moto_sm6375-libperfmgr.rc index 6f9ae7e..2ee36e2 100644 --- a/power-libperfmgr/android.hardware.power-service.pixel-libperfmgr.rc +++ b/power-libperfmgr/android.hardware.power-service.moto_sm6375-libperfmgr.rc @@ -1,4 +1,4 @@ -service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.pixel-libperfmgr +service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.moto_sm6375-libperfmgr class hal user root group system diff --git a/power-libperfmgr/android.hardware.power-service.pixel.xml b/power-libperfmgr/android.hardware.power-service.moto_sm6375.xml similarity index 100% rename from power-libperfmgr/android.hardware.power-service.pixel.xml rename to power-libperfmgr/android.hardware.power-service.moto_sm6375.xml diff --git a/power-libperfmgr/service.cpp b/power-libperfmgr/service.cpp index add78bd..8c7d496 100644 --- a/power-libperfmgr/service.cpp +++ b/power-libperfmgr/service.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#define LOG_TAG "android.hardware.power-service.pixel-libperfmgr" +#define LOG_TAG "android.hardware.power-service.moto_sm6375-libperfmgr" #include "Power.h" @@ -25,16 +25,16 @@ using aidl::android::hardware::power::impl::pixel::Power; int main() { - LOG(INFO) << "Power HAL AIDL Service for Pixel is starting."; + LOG(INFO) << "Power HAL AIDL Service for moto_sm6375 is starting."; ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr pw = ndk::SharedRefBase::make(); const std::string instance = std::string() + Power::descriptor + "/default"; binder_status_t status = AServiceManager_addService(pw->asBinder().get(), instance.c_str()); CHECK(status == STATUS_OK); - LOG(INFO) << "Power HAL AIDL Service for Pixel is started."; + LOG(INFO) << "Power HAL AIDL Service for moto_sm6375 is started."; ABinderProcess_joinThreadPool(); - LOG(ERROR) << "Power HAL AIDL Service for Pixel died."; + LOG(ERROR) << "Power HAL AIDL Service for moto_sm6375 died."; return EXIT_FAILURE; // should not reach }