Home
last modified time | relevance | path

Searched refs:otherUser (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoader.java80 public int compare(UserInfo userInfo, UserInfo otherUser) { in loadApps()
81 return Integer.compare(userInfo.id, otherUser.id); in loadApps()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageAsyncLoader.java80 public int compare(UserInfo userInfo, UserInfo otherUser) { in loadApps()
81 return Integer.compare(userInfo.id, otherUser.id); in loadApps()
/packages/apps/Settings/src/com/android/settings/
DUtils.java516 private static boolean isProfileOf(UserManager um, UserHandle otherUser) { in isProfileOf() argument
517 if (um == null || otherUser == null) return false; in isProfileOf()
518 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()
519 || um.getUserProfiles().contains(otherUser); in isProfileOf()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java521 private static boolean isProfileOf(UserManager um, UserHandle otherUser) { in isProfileOf() argument
522 if (um == null || otherUser == null) return false; in isProfileOf()
523 return (UserHandle.myUserId() == otherUser.getIdentifier()) in isProfileOf()
524 || um.getUserProfiles().contains(otherUser); in isProfileOf()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java483 UserInfo otherUser = createUserInfoForId(mCurrentProcessUser.id + 2); in testNonAdminsCanNotRemoveOtherUsers() local
492 assertThat(mCarUserManagerHelper.removeUser(otherUser, GUEST_USER_NAME)).isFalse(); in testNonAdminsCanNotRemoveOtherUsers()
493 verify(mUserManager, never()).removeUser(otherUser.id); in testNonAdminsCanNotRemoveOtherUsers()