summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Li Li <dualli@google.com> 2021-09-16 22:28:04 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-09-16 22:28:04 +0000
commitbf90a44985f8ed9a41b6d65acd44886d1f43ef26 (patch)
tree74645a49dba2f25c179e142e456d1efa59332cda /libs/binder/IPCThreadState.cpp
parent00e163d9dcca9ae3928c611ce9f3611f942386e5 (diff)
parent631e2e1900c4ca6ee3e4244930dbab5ebbdc9a7d (diff)
Remove the redundant getProcessFreezeInfo() am: 4e678b9830 am: 631e2e1900
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15842844 Change-Id: Ie6a327b6456bb543937dc54bda8f91b83cb99e59
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r--libs/binder/IPCThreadState.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 9e04ffeb11..55d3d70bd4 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -1410,23 +1410,6 @@ void IPCThreadState::threadDestructor(void *st)
}
}
-status_t IPCThreadState::getProcessFreezeInfo(pid_t pid, bool *sync_received, bool *async_received)
-{
- int ret = 0;
- binder_frozen_status_info info;
- info.pid = pid;
-
-#if defined(__ANDROID__)
- if (ioctl(self()->mProcess->mDriverFD, BINDER_GET_FROZEN_INFO, &info) < 0)
- ret = -errno;
-#endif
- *sync_received = info.sync_recv;
- *async_received = info.async_recv;
-
- return ret;
-}
-
-#ifndef __ANDROID_VNDK__
status_t IPCThreadState::getProcessFreezeInfo(pid_t pid, uint32_t *sync_received,
uint32_t *async_received)
{
@@ -1443,7 +1426,6 @@ status_t IPCThreadState::getProcessFreezeInfo(pid_t pid, uint32_t *sync_received
return ret;
}
-#endif
status_t IPCThreadState::freeze(pid_t pid, bool enable, uint32_t timeout_ms) {
struct binder_freeze_info info;