Searched refs:replaceGuestIfNeeded (Results 1 – 2 of 2) sorted by relevance
311 assertThrows(IllegalArgumentException.class, () -> mSetter.replaceGuestIfNeeded(null)); in testReplaceGuestIfNeeded_null()318 assertThat(mSetter.replaceGuestIfNeeded(user)).isSameInstanceAs(user); in testReplaceGuestIfNeeded_nonGuest()332 assertThat(mSetter.replaceGuestIfNeeded(user)).isSameInstanceAs(newGuest); in testReplaceGuestIfNeeded_ok_nonEphemeralGuest()342 assertThat(mSetter.replaceGuestIfNeeded(user)).isSameInstanceAs(user); in testReplaceGuestIfNeeded_ok_hasCredentials()356 assertThat(mSetter.replaceGuestIfNeeded(user)).isSameInstanceAs(newGuest); in testReplaceGuestIfNeeded_ok_ephemeralGuest()367 assertThat(mSetter.replaceGuestIfNeeded(user)).isEqualTo(null); in testReplaceGuestIfNeeded_fail_ephemeralGuest_createFailed()1114 doReturn(newGuest).when(mSetter).replaceGuestIfNeeded(isUserHandle(existingGuestId)); in expectGuestReplaced()
400 UserHandle newUser = replaceGuestIfNeeded(currentUser); in replaceUser()487 actualUser = replaceGuestIfNeeded(user); in switchUser()550 UserHandle replaceGuestIfNeeded(@NonNull UserHandle user) { in replaceGuestIfNeeded() method in InitialUserSetter