Package org.robolectric.shadows
Class ShadowBinder.CallingIdentity.Builder
java.lang.Object
org.robolectric.shadows.ShadowBinder.CallingIdentity.Builder
- Enclosing class:
ShadowBinder.CallingIdentity
Builder for
ShadowBinder.CallingIdentity.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theShadowBinder.CallingIdentity.setPid(int pid) Sets this caller's Linux PID.setUid(int uid) Sets this caller's Linux UID.setUserHandle(UserHandle userHandle) Sets this caller'sUserHandle.
-
Method Details
-
setUid
Sets this caller's Linux UID.If not set, defaults to
Process.myUid(). -
setPid
Sets this caller's Linux PID.If not set, defaults to
Process.myPid(). -
setUserHandle
@CanIgnoreReturnValue public ShadowBinder.CallingIdentity.Builder setUserHandle(UserHandle userHandle) Sets this caller'sUserHandle.If not set, defaults to
Process.myUserHandle(). -
build
Builds theShadowBinder.CallingIdentity.
-