Home
last modified time | relevance | path

Searched refs:getPrimaryUser (Results 1 – 6 of 6) sorted by relevance

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt58 assertTrue(userInfoAreEqual.apply(personalUser, state.getPrimaryUser())) in <lambda>()
83 .containsExactly(state.getPrimaryUser(), state.getUser(work), state.getUser(private)) in <lambda>()
96 .containsExactly(state.getPrimaryUser(), state.getUser(clone)) in <lambda>()
101 val personal = state.getPrimaryUser() in <lambda>()
112 val primaryUser = state.getPrimaryUser() in <lambda>()
121 val personal = state.getPrimaryUser() in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DNonCurrentUserControllerTest.java126 when(mUserManager.getPrimaryUser()).thenReturn(mPrimaryUser); in noNonCurrentUserAddedIfNoneExist()
142 when(mUserManager.getPrimaryUser()).thenReturn(mPrimaryUser); in getNonCurrentUserControllers_notWorkProfile_addNonCurrentUserController()
160 when(mUserManager.getPrimaryUser()).thenReturn(mPrimaryUser); in getNonCurrentUserControllers_workProfileOfNonCurrentUser()
177 when(mUserManager.getPrimaryUser()).thenReturn(mPrimaryUser); in profilesOfCurrentUserAreIgnored()
275 when(mUserManager.getPrimaryUser()).thenReturn(mPrimaryUser); in getNonCurrentUserControllers_switchUsers()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowUserManager.java247 addProfile(getPrimaryUser()); in addPrimaryUser()
307 protected UserInfo getPrimaryUser() { in getPrimaryUser() method in ShadowUserManager
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/platform/
DFakeUserManager.kt121 fun getPrimaryUser(): UserInfo = getUser(primaryUserHandle) in <lambda>() method
/packages/apps/Settings/src/com/android/settings/inputmethod/
DNewKeyboardLayoutEnabledLocalesFragment.java91 final UserHandle primaryUser = userManager.getPrimaryUser().getUserHandle(); in onAttach()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java2494 UserInfo primaryUserInfo = userManager.getPrimaryUser();