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

Commit c0f0828e authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Adds UserManagerInternal.isUserVisible(userId, displayId)."

parents ac9f8b4b 4e19ce21
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -315,4 +315,10 @@ public abstract class UserManagerInternal {

    /** TODO(b/239982558): add javadoc / mention invalid_id is used to unassing */
    public abstract void assignUserToDisplay(@UserIdInt int userId, int displayId);

    /**
     * Returns {@code true} if the user is visible (as defined by
     * {@link UserManager#isUserVisible()} in the given display.
     */
    public abstract boolean isUserVisible(@UserIdInt int userId, int displayId);
}
+6 −1
Original line number Diff line number Diff line
@@ -7005,7 +7005,12 @@ public class UserManagerService extends IUserManager.Stub {
                mUsersOnSecondaryDisplays.put(userId, displayId);
            }
        }

        @Override
        public boolean isUserVisible(int userId, int displayId) {
            return isUserVisibleOnDisplay(userId, displayId);
        }
    } // class LocalService

    /**
     * Check if user has restrictions