diff options
author | 2020-12-22 18:06:21 +0000 | |
---|---|---|
committer | 2020-12-22 18:06:21 +0000 | |
commit | e7539dd45792b92a3e24aff4af9f102055778db3 (patch) | |
tree | ffa7f3da7fbf6a265cf9a6f22c26e3a999dfa784 /libs/binder/ProcessState.cpp | |
parent | 84544748e928b319b0cb6f1039a24b5f18f252bc (diff) | |
parent | e839388aaf2aaf82d6a8a84aa4ffb673dc62287d (diff) |
Merge "BpBinder: hide 'handle' API"
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r-- | libs/binder/ProcessState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 9aedf28964..6f26450275 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -204,11 +204,11 @@ ssize_t ProcessState::getKernelReferences(size_t buf_count, uintptr_t* buf) // that the handle points to. Can only be used by the servicemanager. // // Returns -1 in case of failure, otherwise the strong reference count. -ssize_t ProcessState::getStrongRefCountForNodeByHandle(int32_t handle) { +ssize_t ProcessState::getStrongRefCountForNode(const sp<BpBinder>& binder) { binder_node_info_for_ref info; memset(&info, 0, sizeof(binder_node_info_for_ref)); - info.handle = handle; + info.handle = binder->getPrivateAccessorForHandle().handle(); status_t result = ioctl(mDriverFD, BINDER_GET_NODE_INFO_FOR_REF, &info); |