summaryrefslogtreecommitdiffstats
path: root/service.cpp
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2019-09-29 23:59:05 +0300
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit420f26552469aa8b98692c27de2320a9c1c5dbc2 (patch)
tree31388c8e259c3d606b033c8ec19d40a1a36fdeca /service.cpp
parent434acc2ab4bab9d2407e5167be1dc2c22bfead0f (diff)
downloadvendor_qcom_opensource_power-420f26552469aa8b98692c27de2320a9c1c5dbc2.tar.gz
vendor_qcom_opensource_power-420f26552469aa8b98692c27de2320a9c1c5dbc2.tar.bz2
vendor_qcom_opensource_power-420f26552469aa8b98692c27de2320a9c1c5dbc2.zip
power: clang-format
* Using AOSP interface .clang-format * Clean Android.mk while we are at it Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
Diffstat (limited to 'service.cpp')
-rw-r--r--service.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/service.cpp b/service.cpp
index f36141e..c8100b9 100644
--- a/service.cpp
+++ b/service.cpp
@@ -29,14 +29,14 @@
#define LOG_TAG "android.hardware.power@1.2-service-qti"
-#include <log/log.h>
-#include <hidl/HidlTransportSupport.h>
#include <hardware/power.h>
+#include <hidl/HidlTransportSupport.h>
+#include <log/log.h>
#include "Power.h"
+using android::OK;
using android::sp;
using android::status_t;
-using android::OK;
// libhwbinder:
using android::hardware::configureRpcThreadpool;
@@ -47,7 +47,6 @@ using android::hardware::power::V1_2::IPower;
using android::hardware::power::V1_2::implementation::Power;
int main() {
-
status_t status;
android::sp<IPower> service = nullptr;
@@ -70,7 +69,7 @@ int main() {
ALOGI("Power Service is ready");
joinRpcThreadpool();
- //Should not pass this line
+ // Should not pass this line
shutdown:
// In normal operation, we don't expect the thread pool to exit
@@ -78,4 +77,3 @@ shutdown:
ALOGE("Power Service is shutting down");
return 1;
}
-