Home
last modified time | relevance | path

Searched refs:guestInfo (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/users/
DRemoveGuestOnExitPreferenceController.java110 UserInfo guestInfo = mUserManager.findCurrentGuestUser(); in onPreferenceChange() local
114 if (guestInfo == null) { in onPreferenceChange()
119 if (!guestInfo.isInitialized()) { in onPreferenceChange()
120 boolean isSuccess = mUserManager.setUserEphemeral(guestInfo.id, enable); in onPreferenceChange()
124 Log.w(TAG, "Unused guest, id=" + guestInfo.id in onPreferenceChange()
132 if (guestInfo.isInitialized() && !guestInfo.isEphemeral() && enable) { in onPreferenceChange()
136 guestInfo.id, in onPreferenceChange()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerControllerTest.java227 UserInfo guestInfo = new UserInfo(USER_ID_GUEST, "G", UserInfo.FLAG_GUEST); in checkCreateGuest_pressGuestIcon_createdGuestUser() local
230 doReturn(guestInfo.getUserHandle()).when(mCreateResult).getUser(); in checkCreateGuest_pressGuestIcon_createdGuestUser()
231 doReturn(guestInfo).when(mMockUserEventManager).getUserInfo(USER_ID_GUEST); in checkCreateGuest_pressGuestIcon_createdGuestUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java476 UserInfo guestInfo = createGuestUser(21); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest() local
478 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestInfo); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest()
482 assertThat(guest).isEqualTo(guestInfo); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest()