summaryrefslogtreecommitdiff
path: root/gsi_tool.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-04-16 14:34:27 -0700
committerDavid Anderson <dvander@google.com>2019-04-16 14:39:16 -0700
commit5cc440c232ea7e6cc42feb9c1216ecb7152cb7f4 (patch)
tree28a5e34fd4b9108f2da06173e3df4986a99d4e59 /gsi_tool.cpp
parent24b1c2d57dcca0d898242ad87a7c18a130e6aa69 (diff)
downloadgsid-5cc440c232ea7e6cc42feb9c1216ecb7152cb7f4.tar.gz
Enable clang-format on preupload.
Bug: N/A Test: gsid builds Change-Id: Ica52e0c7cc7cba214df274df85bfaf7d533b446e
Diffstat (limited to 'gsi_tool.cpp')
-rw-r--r--gsi_tool.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gsi_tool.cpp b/gsi_tool.cpp
index a9a6920..f0c5d50 100644
--- a/gsi_tool.cpp
+++ b/gsi_tool.cpp
@@ -49,12 +49,14 @@ static int Status(sp<IGsiService> gsid, int argc, char** argv);
static int Cancel(sp<IGsiService> gsid, int argc, char** argv);
static const std::map<std::string, CommandCallback> kCommandMap = {
+ // clang-format off
{"disable", Disable},
{"enable", Enable},
{"install", Install},
{"wipe", Wipe},
{"status", Status},
{"cancel", Cancel},
+ // clang-format on
};
static sp<IGsiService> GetGsiService() {
@@ -80,7 +82,8 @@ static sp<IGsiService> GetGsiService() {
return nullptr;
}
-static std::string ErrorMessage(const android::binder::Status& status, int error_code = IGsiService::INSTALL_ERROR_GENERIC) {
+static std::string ErrorMessage(const android::binder::Status& status,
+ int error_code = IGsiService::INSTALL_ERROR_GENERIC) {
if (!status.isOk()) {
return status.exceptionMessage().string();
}