bootctrl: run clang-format

Bug: 156694052
Signed-off-by: Fernando Lugo <flugo@google.com>
Change-Id: I003fb99e96bcee2d745365992b3c8d4a3816f818
This commit is contained in:
Fernando Lugo 2021-03-08 15:36:55 -08:00
parent fa50bf6c7c
commit 2b75765719
5 changed files with 53 additions and 54 deletions

View file

@ -16,10 +16,11 @@
#define LOG_TAG "android.hardware.boot@1.2-service"
#include <log/log.h>
#include <android/hardware/boot/1.2/IBootControl.h>
#include <hidl/HidlTransportSupport.h>
#include <hidl/Status.h>
#include <android/hardware/boot/1.2/IBootControl.h>
#include <log/log.h>
#include "BootControl.h"
using ::android::status_t;
@ -27,9 +28,9 @@ using ::android::status_t;
using ::android::hardware::boot::V1_2::IBootControl;
using ::android::hardware::boot::V1_2::implementation::BootControl;
//using ::android::hardware::boot::implementation::BootControl;
// using ::android::hardware::boot::implementation::BootControl;
int main (int /* argc */, char * /* argv */ []) {
int main(int /* argc */, char * /* argv */[]) {
// This function must be called before you join to ensure the proper
// number of threads are created. The threadpool will never exceed
// size one because of this call.
@ -38,12 +39,12 @@ int main (int /* argc */, char * /* argv */ []) {
::android::sp bootctrl = new BootControl();
const status_t status = bootctrl->registerAsService();
if (status != ::android::OK) {
return 1; // or handle error
return 1; // or handle error
}
// Adds this thread to the threadpool, resulting in one total
// thread in the threadpool. We could also do other things, but
// would have to specify 'false' to willJoin in configureRpcThreadpool.
::android::hardware::joinRpcThreadpool();
return 1; // joinRpcThreadpool should never return
return 1; // joinRpcThreadpool should never return
}