summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-05-11 22:59:09 +0000
committer Steven Moreland <smoreland@google.com> 2021-05-11 22:59:09 +0000
commitc8c256b623789fdb6eadb4a6821f09dd4bb9c60b (patch)
tree5d14c3e24deb5b9084c009f2e3bda2489c01e4eb /libs/binder/RpcSession.cpp
parent1be9135083d7a5797fb1f84a11969bb4d4aaad41 (diff)
libbinder: addClient->addClientConnection
To match previous s/mServers|mClients/\0Connections/g change. Bug: N/A Test: N/A Change-Id: Id47410ad27ba78e57b5677dbeaa0435e25343b8b
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);