Home
last modified time | relevance | path

Searched refs:BinderCallType (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/libs/binderthreadstate/include/binderthreadstate/
DCallerUtils.h30 enum class BinderCallType { enum
38 inline static BinderCallType getCurrentServingCall() { in getCurrentServingCall()
46 if (hwbinderSp == nullptr && binderSp == nullptr) return BinderCallType::NONE; in getCurrentServingCall()
47 if (hwbinderSp == nullptr) return BinderCallType::BINDER; in getCurrentServingCall()
48 if (binderSp == nullptr) return BinderCallType::HWBINDER; in getCurrentServingCall()
50 if (hwbinderSp < binderSp) return BinderCallType::HWBINDER; in getCurrentServingCall()
51 return BinderCallType::BINDER; in getCurrentServingCall()
/frameworks/native/libs/binderthreadstate/
Dtest.cpp33 using android::BinderCallType;
93 static inline std::ostream& operator<<(std::ostream& o, const BinderCallType& s) { in operator <<()
94 return o << static_cast<std::underlying_type_t<BinderCallType>>(s); in operator <<()
104 CHECK_EQ(BinderCallType::NONE, getCurrentServingCall()); in callLocal()
112 CHECK_EQ(BinderCallType::HWBINDER, getCurrentServingCall()) in call()
121 CHECK_EQ(BinderCallType::HWBINDER, getCurrentServingCall()) in call()
133 CHECK_EQ(BinderCallType::NONE, getCurrentServingCall()); in callLocal()
140 CHECK_EQ(BinderCallType::BINDER, getCurrentServingCall()) in call()
149 CHECK_EQ(BinderCallType::BINDER, getCurrentServingCall()) in call()
/frameworks/native/libs/gui/
DBufferQueueThreadState.cpp29 if (getCurrentServingCall() == BinderCallType::HWBINDER) { in getCallingUid()
40 if (getCurrentServingCall() == BinderCallType::HWBINDER) { in getCallingPid()
/frameworks/av/services/camera/libcameraservice/utils/
DAttributionAndPermissionUtils.cpp54 if (getCurrentServingCall() == BinderCallType::HWBINDER) { in getCallingUid()
61 if (getCurrentServingCall() == BinderCallType::HWBINDER) { in getCallingPid()
68 if (getCurrentServingCall() == BinderCallType::HWBINDER) { in clearCallingIdentity()
75 if (getCurrentServingCall() == BinderCallType::HWBINDER) { in restoreCallingIdentity()
/frameworks/base/core/jni/
Dandroid_util_Binder.cpp1031 return getCurrentServingCall() == BinderCallType::BINDER; in android_os_Binder_isDirectlyHandlingTransactionNative()