diff options
| author | 2021-05-12 09:24:14 +0000 | |
|---|---|---|
| committer | 2021-05-12 09:24:14 +0000 | |
| commit | f5b2f41f9ea11711b20ff68d51a212e29bfc294b (patch) | |
| tree | 158468889cf035ff217a238f8e238d3a1c08f052 | |
| parent | 07e65d03205b9f66cd45d0e13839bb65014bda48 (diff) | |
| parent | 5c58ebd71e79ec50bd7aee116cc329caf7586ce5 (diff) | |
Merge "libbinder: addClient->addClientConnection" am: 7e563f090b am: 5c58ebd71e
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1704012
Change-Id: Ic296ff5cb8b3ba05fbd3779f8be497cc0be3682b
| -rw-r--r-- | libs/binder/RpcSession.cpp | 6 | ||||
| -rw-r--r-- | libs/binder/include/binder/RpcSession.h | 2 |
2 files changed, 4 insertions, 4 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); diff --git a/libs/binder/include/binder/RpcSession.h b/libs/binder/include/binder/RpcSession.h index 1657167066..c8ab9e4ba1 100644 --- a/libs/binder/include/binder/RpcSession.h +++ b/libs/binder/include/binder/RpcSession.h @@ -128,7 +128,7 @@ private: bool setupSocketClient(const RpcSocketAddress& address); bool setupOneSocketClient(const RpcSocketAddress& address, int32_t sessionId); - void addClient(base::unique_fd fd); + void addClientConnection(base::unique_fd fd); void setForServer(const wp<RpcServer>& server, int32_t sessionId); sp<RpcConnection> assignServerToThisThread(base::unique_fd fd); bool removeServerConnection(const sp<RpcConnection>& connection); |