summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2020-12-22 18:17:33 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-12-22 18:17:33 +0000
commit536bf4c8003f65f3a1fa3f82cbf49f77903f44d8 (patch)
treeffa7f3da7fbf6a265cf9a6f22c26e3a999dfa784 /libs/binder/ProcessState.cpp
parent57b18d547560c055ed055287228eea23f5cffb62 (diff)
parente7539dd45792b92a3e24aff4af9f102055778db3 (diff)
Merge "BpBinder: hide 'handle' API" am: e7539dd457
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1533425 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I333a065624653a1143f4d679633d0221b3eff081
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp4
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);