diff options
author | 2021-09-10 14:05:31 -0700 | |
---|---|---|
committer | 2021-09-10 14:09:31 -0700 | |
commit | 826367f2240f2e64036b6be9a7cde93fdd79cba2 (patch) | |
tree | 38256864ba13c24ecb07b31d18b1d6421965a7a4 /libs/binder/RpcState.cpp | |
parent | 33e1d32ceb839c4f223830dccd22a0209522cf9d (diff) |
libbinder: Session ID implemented directly.
In preparation for removing RpcAddress.
Bug: 182940634
Test: binderRpcTest (w & w/o LOG_RPC_DETAIL)
Change-Id: I945e650bbab9f8df4f785b689983b62c59bb8674
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r-- | libs/binder/RpcState.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp index b58f1b38ff..f181a7bbd0 100644 --- a/libs/binder/RpcState.cpp +++ b/libs/binder/RpcState.cpp @@ -397,7 +397,7 @@ status_t RpcState::getMaxThreads(const sp<RpcSession::RpcConnection>& connection } status_t RpcState::getSessionId(const sp<RpcSession::RpcConnection>& connection, - const sp<RpcSession>& session, RpcAddress* sessionIdOut) { + const sp<RpcSession>& session, std::vector<uint8_t>* sessionIdOut) { Parcel data; data.markForRpc(session); Parcel reply; @@ -410,7 +410,7 @@ status_t RpcState::getSessionId(const sp<RpcSession::RpcConnection>& connection, return status; } - return sessionIdOut->readFromParcel(reply); + return reply.readByteVector(sessionIdOut); } status_t RpcState::transact(const sp<RpcSession::RpcConnection>& connection, @@ -792,7 +792,7 @@ processTransactInternalTailCall: // for client connections, this should always report the value // originally returned from the server, so this is asserting // that it exists - replyStatus = session->mId.value().writeToParcel(&reply); + replyStatus = reply.writeByteVector(session->mId); break; } default: { |