IPCThreadState::hasExplicitIdentity()

This new method will track whether the caller is within a Binder.clearCallingIdentity/restoreCallingIdentity block based on packing this state information into the token returned by clearCallingIdentity.

Bug: b/252975769
Test: static_assert in IPCThreadState.cpp
Change-Id: Ifa71fcf2f31b607fec39a51e3a8d16eb2987440a
2 files changed