Searched refs:guestInfo (Results 1 – 3 of 3) sorted by relevance
110 UserInfo guestInfo = mUserManager.findCurrentGuestUser(); in onPreferenceChange() local114 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()
227 UserInfo guestInfo = new UserInfo(USER_ID_GUEST, "G", UserInfo.FLAG_GUEST); in checkCreateGuest_pressGuestIcon_createdGuestUser() local230 doReturn(guestInfo.getUserHandle()).when(mCreateResult).getUser(); in checkCreateGuest_pressGuestIcon_createdGuestUser()231 doReturn(guestInfo).when(mMockUserEventManager).getUserInfo(USER_ID_GUEST); in checkCreateGuest_pressGuestIcon_createdGuestUser()
476 UserInfo guestInfo = createGuestUser(21); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest() local478 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestInfo); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest()482 assertThat(guest).isEqualTo(guestInfo); in testCreateNewOrFindExistingGuest_ifNoGuest_createsNewGuest()