Merge "Use libbinderthreadstateutils." am: e1cebc7556
Change-Id: I2c746d852ed7e7bbd664da91a24cd6aa24b7092e
This commit is contained in:
@@ -233,6 +233,7 @@ cc_library_shared {
|
|||||||
|
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libasync_safe",
|
"libasync_safe",
|
||||||
|
"libbinderthreadstateutils",
|
||||||
"libdmabufinfo",
|
"libdmabufinfo",
|
||||||
"libgif",
|
"libgif",
|
||||||
"libseccomp_policy",
|
"libseccomp_policy",
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#include <binder/Parcel.h>
|
#include <binder/Parcel.h>
|
||||||
#include <binder/ProcessState.h>
|
#include <binder/ProcessState.h>
|
||||||
#include <binder/Stability.h>
|
#include <binder/Stability.h>
|
||||||
|
#include <binderthreadstate/CallerUtils.h>
|
||||||
#include <cutils/atomic.h>
|
#include <cutils/atomic.h>
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
#include <utils/KeyedVector.h>
|
#include <utils/KeyedVector.h>
|
||||||
@@ -946,7 +947,7 @@ static jint android_os_Binder_getCallingUid()
|
|||||||
|
|
||||||
static jboolean android_os_Binder_isHandlingTransaction()
|
static jboolean android_os_Binder_isHandlingTransaction()
|
||||||
{
|
{
|
||||||
return IPCThreadState::self()->isServingCall();
|
return getCurrentServingCall() == BinderCallType::BINDER;
|
||||||
}
|
}
|
||||||
|
|
||||||
static jlong android_os_Binder_clearCallingIdentity()
|
static jlong android_os_Binder_clearCallingIdentity()
|
||||||
|
|||||||
Reference in New Issue
Block a user