Home
last modified time | relevance | path

Searched refs:replaceGuestIfNeeded (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DInitialUserSetterTest.java311 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()
/packages/services/Car/service/src/com/android/car/user/
DInitialUserSetter.java400 UserHandle newUser = replaceGuestIfNeeded(currentUser); in replaceUser()
487 actualUser = replaceGuestIfNeeded(user); in switchUser()
550 UserHandle replaceGuestIfNeeded(@NonNull UserHandle user) { in replaceGuestIfNeeded() method in InitialUserSetter