Searched refs:WORK_USER_ID (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | UserAdapterTest.java | 61 private static final int WORK_USER_ID = 1; field in UserAdapterTest 98 when(mUserManager.getUserInfo(WORK_USER_ID)).thenReturn(mWorkUserInfo); in setUp() 102 when(mUserManager.getUserProperties(UserHandle.of(WORK_USER_ID))) in setUp() 122 Lists.newArrayList(UserHandle.of(mPersonalUserId), UserHandle.of(WORK_USER_ID))); in createUserSpinnerAdapter_twoProfiles_succeed() 129 assertThat(userSpinnerAdapter.getUserHandle(1).getIdentifier()).isEqualTo(WORK_USER_ID); in createUserSpinnerAdapter_twoProfiles_succeed() 141 UserHandle.of(WORK_USER_ID), in createUserSpinnerAdapter_withWorkAndPrivateProfiles_shouldSucceed() 149 assertThat(userSpinnerAdapter.getUserHandle(1).getIdentifier()).isEqualTo(WORK_USER_ID); in createUserSpinnerAdapter_withWorkAndPrivateProfiles_shouldSucceed() 162 UserHandle.of(WORK_USER_ID), in createUserSpinnerAdapter_withWorkAndQuietPrivateProfile_shouldShowTwoProfiles() 171 assertThat(userSpinnerAdapter.getUserHandle(1).getIdentifier()).isEqualTo(WORK_USER_ID); in createUserSpinnerAdapter_withWorkAndQuietPrivateProfile_shouldShowTwoProfiles() 177 Lists.newArrayList(UserHandle.of(mPersonalUserId), UserHandle.of(WORK_USER_ID)); in createUserRecycleViewAdapter_canBindViewHolderCorrectly()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/ |
D | CrossProfileIntentsCheckerTest.kt | 33 private val WORK_USER_ID = 20 constant 46 eq(WORK_USER_ID) in testChecker_hasCrossProfileIntents() 52 assertThat(checker.hasCrossProfileIntents(intents, PERSONAL_USER_ID, WORK_USER_ID)).isTrue() in testChecker_hasCrossProfileIntents() 70 assertThat(checker.hasCrossProfileIntents(intents, PERSONAL_USER_ID, WORK_USER_ID)) in testChecker_noCrossProfileIntents() 79 assertThat(checker.hasCrossProfileIntents(intents, PERSONAL_USER_ID, WORK_USER_ID)) in testChecker_noIntents()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDevicesControllerTest.java | 88 private static final int WORK_USER_ID = 1; field in StylusDevicesControllerTest 403 when(mWorkUserInfo.getUserHandle()).thenReturn(UserHandle.of(WORK_USER_ID)); in defaultNotesPreferenceClick_multiUserManagedProfile_showsProfileSelectorDialog() 406 when(mUserManager.getUserInfo(WORK_USER_ID)).thenReturn(mWorkUserInfo); in defaultNotesPreferenceClick_multiUserManagedProfile_showsProfileSelectorDialog() 407 when(mUserManager.getProfileParent(WORK_USER_ID)).thenReturn(mPersonalUserInfo); in defaultNotesPreferenceClick_multiUserManagedProfile_showsProfileSelectorDialog() 409 when(mUserManager.getUserProperties(UserHandle.of(WORK_USER_ID))) in defaultNotesPreferenceClick_multiUserManagedProfile_showsProfileSelectorDialog() 447 when(mWorkUserInfo.getUserHandle()).thenReturn(UserHandle.of(WORK_USER_ID)); in defaultNotesPreferenceClick_multiUsers_showsProfileSelectorDialog() 452 when(mUserManager.getUserInfo(WORK_USER_ID)).thenReturn(mWorkUserInfo); in defaultNotesPreferenceClick_multiUsers_showsProfileSelectorDialog() 457 when(mUserManager.getUserProperties(UserHandle.of(WORK_USER_ID))) in defaultNotesPreferenceClick_multiUsers_showsProfileSelectorDialog()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 277 private static final int WORK_USER_ID = 10; field in EnterprisePolicyGuardTest 281 new UserInfo(WORK_USER_ID, "user10", UserInfo.FLAG_MANAGED_PROFILE); 307 when(mockUm.getProfileParent(WORK_USER_ID)).thenReturn(CURRENT_USER_INFO); in getMockContext() 308 when(mockUm.isQuietModeEnabled(UserHandle.of(WORK_USER_ID))) in getMockContext()
|