diff options
Diffstat (limited to 'service.cpp')
-rw-r--r-- | service.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/service.cpp b/service.cpp index 85f84d1..ed9ada4 100644 --- a/service.cpp +++ b/service.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * Copyright (C) 2017-2019 The LineageOS Project * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -29,6 +30,8 @@ #define LOG_TAG "android.hardware.power@1.2-service-qti" +// #define LOG_NDEBUG 0 + #include <hardware/power.h> #include <hidl/HidlTransportSupport.h> #ifdef ARCH_ARM_32 @@ -46,7 +49,6 @@ using android::hardware::configureRpcThreadpool; using android::hardware::joinRpcThreadpool; // Generated HIDL files -using android::hardware::power::V1_2::IPower; using android::hardware::power::V1_2::implementation::Power; int main() { @@ -55,7 +57,7 @@ int main() { #endif status_t status; - android::sp<IPower> service = nullptr; + android::sp<Power> service = nullptr; ALOGI("Power HAL Service 1.2 is starting."); @@ -68,7 +70,7 @@ int main() { configureRpcThreadpool(1, true /*callerWillJoin*/); - status = service->registerAsService(); + status = service->registerAsSystemService(); if (status != OK) { ALOGE("Could not register service for Power HAL(%d).", status); goto shutdown; |