sm6375-common: power-libperfmgr: Adapt and rebrand to moto_sm6375

Change-Id: I6732e0076564ada7078c9334b62fb865d473accd
This commit is contained in:
Anand S 2024-07-18 20:16:00 +05:30
commit 544a50cef7
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
6 changed files with 10 additions and 10 deletions

View file

@ -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<Power> pw = ndk::SharedRefBase::make<Power>();
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
}