Package org.robolectric.shadows
Class ShadowBinder.CallingIdentity
java.lang.Object
org.robolectric.shadows.ShadowBinder.CallingIdentity
- Enclosing class:
ShadowBinder
Represents the faked calling identity (UID, PID, UserHandle) of a remote Binder IPC caller.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetPid()Returns the caller's PID.intgetUid()Returns the caller's UID.Returns the caller's UserHandle.inthashCode()Creates a newShadowBinder.CallingIdentity.Builderpre-populated with the current process defaults:Process.myUid(),Process.myPid(), andProcess.myUserHandle().Creates a newShadowBinder.CallingIdentity.Builderinitialized with the values of this Binder identity.toString()
-
Method Details
-
getUid
public int getUid()Returns the caller's UID. -
getPid
public int getPid()Returns the caller's PID. -
getUserHandle
Returns the caller's UserHandle. -
newBuilder
Creates a newShadowBinder.CallingIdentity.Builderpre-populated with the current process defaults:Process.myUid(),Process.myPid(), andProcess.myUserHandle(). -
toBuilder
Creates a newShadowBinder.CallingIdentity.Builderinitialized with the values of this Binder identity. -
equals
-
hashCode
public int hashCode() -
toString
-