power: clang-format
* Using AOSP interface .clang-format * Clean Android.mk while we are at it Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada Signed-off-by: Arian <arian.kulmer@web.de>
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -40,14 +40,15 @@ int main() {
|
||||
std::shared_ptr<Power> vib = ndk::SharedRefBase::make<Power>();
|
||||
const std::string instance = std::string() + Power::descriptor + "/default";
|
||||
LOG(INFO) << "Instance " << instance;
|
||||
if(vib){
|
||||
binder_status_t status = AServiceManager_addService(vib->asBinder().get(), instance.c_str());
|
||||
if (vib) {
|
||||
binder_status_t status =
|
||||
AServiceManager_addService(vib->asBinder().get(), instance.c_str());
|
||||
LOG(INFO) << "Status " << status;
|
||||
if(status != STATUS_OK){
|
||||
if (status != STATUS_OK) {
|
||||
LOG(ERROR) << "Could not register" << instance;
|
||||
}
|
||||
}
|
||||
|
||||
ABinderProcess_joinThreadPool();
|
||||
return 1; // should not reach
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user