Merge "Adds UserManagerInternal.isUserVisible(userId, displayId)."
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user