summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2021-05-12 09:24:14 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-05-12 09:24:14 +0000
commitf5b2f41f9ea11711b20ff68d51a212e29bfc294b (patch)
tree158468889cf035ff217a238f8e238d3a1c08f052 /libs/binder/RpcSession.cpp
parent07e65d03205b9f66cd45d0e13839bb65014bda48 (diff)
parent5c58ebd71e79ec50bd7aee116cc329caf7586ce5 (diff)
Merge "libbinder: addClient->addClientConnection" am: 7e563f090b am: 5c58ebd71e
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1704012 Change-Id: Ic296ff5cb8b3ba05fbd3779f8be497cc0be3682b
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r--libs/binder/RpcSession.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp
index 3e83c99a29..f38135b2dc 100644
--- a/libs/binder/RpcSession.cpp
+++ b/libs/binder/RpcSession.cpp
@@ -84,7 +84,7 @@ bool RpcSession::addNullDebuggingClient() {
return false;
}
- addClient(std::move(serverFd));
+ addClientConnection(std::move(serverFd));
return true;
}
@@ -255,7 +255,7 @@ bool RpcSession::setupOneSocketClient(const RpcSocketAddress& addr, int32_t id)
LOG_RPC_DETAIL("Socket at %s client with fd %d", addr.toString().c_str(), serverFd.get());
- addClient(std::move(serverFd));
+ addClientConnection(std::move(serverFd));
return true;
}
@@ -263,7 +263,7 @@ bool RpcSession::setupOneSocketClient(const RpcSocketAddress& addr, int32_t id)
return false;
}
-void RpcSession::addClient(unique_fd fd) {
+void RpcSession::addClientConnection(unique_fd fd) {
std::lock_guard<std::mutex> _l(mMutex);
sp<RpcConnection> session = sp<RpcConnection>::make();
session->fd = std::move(fd);