Searched refs:otherUser (Results 1 – 5 of 5) sorted by relevance
80 public int compare(UserInfo userInfo, UserInfo otherUser) { in loadApps()81 return Integer.compare(userInfo.id, otherUser.id); in loadApps()
516 private static boolean isProfileOf(UserManager um, UserHandle otherUser) { in isProfileOf() argument517 if (um == null || otherUser == null) return false; in isProfileOf()518 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()519 || um.getUserProfiles().contains(otherUser); in isProfileOf()
521 private static boolean isProfileOf(UserManager um, UserHandle otherUser) { in isProfileOf() argument522 if (um == null || otherUser == null) return false; in isProfileOf()523 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()524 || um.getUserProfiles().contains(otherUser); in isProfileOf()
483 UserInfo otherUser = createUserInfoForId(mCurrentProcessUser.id + 2); in testNonAdminsCanNotRemoveOtherUsers() local492 assertThat(mCarUserManagerHelper.removeUser(otherUser, GUEST_USER_NAME)).isFalse(); in testNonAdminsCanNotRemoveOtherUsers()493 verify(mUserManager, never()).removeUser(otherUser.id); in testNonAdminsCanNotRemoveOtherUsers()