Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2911e8ef authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android (Google) Code Review
Browse files

Merge "Clarify some Binder docs regarding things that are thread-local."

parents d7c1c006 a0527f20
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ public class Binder implements IBinder {
    public static final native int getCallingUid();
    
    /**
     * Reset the identity of the incoming IPC to the local process.  This can
     * Reset the identity of the incoming IPC on the current thread.  This can
     * be useful if, while handling an incoming call, you will be calling
     * on interfaces of other objects that may be local to your process and
     * need to do permission checks on the calls coming into them (so they
@@ -91,8 +91,9 @@ public class Binder implements IBinder {
    public static final native long clearCallingIdentity();

    /**
     * Restore the identity of the incoming IPC back to a previously identity
     * that was returned by {@link #clearCallingIdentity}.
     * Restore the identity of the incoming IPC on the current thread
     * back to a previously identity that was returned by {@link
     * #clearCallingIdentity}.
     *
     * @param token The opaque token that was previously returned by
     * {@link #clearCallingIdentity}.