Home
last modified time | relevance | path

Searched refs:user2 (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java129 UserInfo user2 = createAdminUser(fgUserId + 1); in testGetAllsers() local
133 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllsers()
136 assertThat(mProfileHelper.getAllProfiles()).containsExactly(fgUser, user2, user3, user4); in testGetAllsers()
149 UserInfo user2 = createAdminUser(fgUserId + 1); in testGetAllUsers_notHeadless() local
153 mockGetUsers(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless()
157 .containsExactly(systemUser, fgUser, user2, user3, user4); in testGetAllUsers_notHeadless()
169 UserInfo user2 = createAdminUser(fgUserId + 2); in testGetAllSwitchableUsers() local
171 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers()
174 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(user1, user2); in testGetAllSwitchableUsers()
188 UserInfo user2 = createAdminUser(fgUserId + 2); in testGetAllSwitchableUsers_notHeadless() local
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java149 UserInfo user2 = generateUser(1001, "User2"); in setUpLogout() local
151 mAliveUsers.add(user2); in setUpLogout()
206 UserInfo user2 = generateUser(1001, "User2"); in switchAllowed_usersSwitchable_returnsAllRows() local
208 mAliveUsers.add(user2); in switchAllowed_usersSwitchable_returnsAllRows()
223 UserInfo user2 = generateUser(1000, "User1"); in switchAllowed_orderUsersByCreationTime() local
225 mAliveUsers.add(user2); in switchAllowed_orderUsersByCreationTime()
240 UserInfo user2 = generateUser(1001, "User2", /* supportsSwitch= */ false, in switchAllowed_userNotSwitchable_returnsValidRows() local
243 mAliveUsers.add(user2); in switchAllowed_userNotSwitchable_returnsValidRows()
257 UserInfo user2 = generateUser(1001, "User2", /* supportsSwitch= */ true, in switchAllowed_userGuest_returnsValidRows() local
260 mAliveUsers.add(user2); in switchAllowed_userGuest_returnsValidRows()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java302 UserInfo user2 = mMockedUserManager.createUser("test2", UserManager.USER_TYPE_FULL_GUEST, in testMockUmGetAliveUsers() local
305 mockUmGetAliveUsers(mMockedUserManager, user1, user2); in testMockUmGetAliveUsers()
307 assertThat(mMockedUserManager.getAliveUsers()).containsExactly(user1, user2); in testMockUmGetAliveUsers()
313 UserHandle user2 = UserHandle.of(200); in testMockUmGetUserHandles() local
317 assertThat(mMockedUserManager.getUserHandles(true)).containsExactly(user1, user2).inOrder(); in testMockUmGetUserHandles()
345 UserHandle user2 = UserHandle.of(200); in testMockUmGetVisibleUsers() local
349 assertThat(mMockedUserManager.getVisibleUsers()).containsExactly(user1, user2); in testMockUmGetVisibleUsers()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUserUtils.java116 public static boolean isParentUser(Context context, UserHandle user1, UserHandle user2) { in isParentUser() argument
117 if (user1 == null || user2 == null) return false; in isParentUser()
119 UserInfo parentUserInfo = userManager.getProfileParent(user2.getIdentifier()); in isParentUser()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java3499 int user2 = TEST_DEFAULT_USER + 1; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
3500 setupUserProfiles(user2); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3512 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3557 when(mUserManager.isUserUnlockingOrUnlocked(UserHandle.of(user2))).thenReturn(true); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3558 mWifiConfigManager.handleUserSwitch(user2); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3589 int user2 = TEST_DEFAULT_USER + 1; in testHandleUserSwitchRemovesOldUserPrivateNetworks() local
3590 setupUserProfiles(user2); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3600 user2Network.creatorUid = UserHandle.getUid(user2, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3636 when(mUserManager.isUserUnlockingOrUnlocked(UserHandle.of(user2))).thenReturn(true); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3639 Set<Integer> removedNetworks = mWifiConfigManager.handleUserSwitch(user2); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DForceEnableNotesRolePreferenceControllerTest.java86 UserInfo user2 = new UserInfo(2, "Name", "Path", 0x0ff0ff, in setEnabled_updatesForAllFullAndProfileUsers() local
91 when(mUserManager.getUsers()).thenReturn(Arrays.asList(user1, user2, user3)); in setEnabled_updatesForAllFullAndProfileUsers()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/data/topics/
DTopicsDaoTest.java60 final int user2 = 2; in testRecordBlockedTopicAndRetrieveBlockedTopics() local
74 assertThat(mTopicsDao.retrieveAllBlockedTopics(user2)).isEmpty(); in testRecordBlockedTopicAndRetrieveBlockedTopics()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java716 int user2 = TEST_USER_ID + 1; in testBackgroundUserList() local
722 expectRegularUserExists(mMockedUserHandleHelper, user2); in testBackgroundUserList()
736 sendUserUnlockedEvent(user2); in testBackgroundUserList()
758 int user2 = TEST_USER_ID + 1; in testBackgroundUsersStartStopKeepBackgroundUserList() local
764 mockGetCurrentUser(user2); in testBackgroundUsersStartStopKeepBackgroundUserList()
765 sendUserUnlockedEvent(user2); in testBackgroundUsersStartStopKeepBackgroundUserList()
771 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user2, user3); in testBackgroundUsersStartStopKeepBackgroundUserList()
773 doReturn(true).when(() -> ActivityManagerHelper.startUserInBackground(user2)); in testBackgroundUsersStartStopKeepBackgroundUserList()
774 doReturn(true).when(() -> ActivityManagerHelper.unlockUser(user2)); in testBackgroundUsersStartStopKeepBackgroundUserList()
775 assertThat(mCarUserService.startAllBackgroundUsersInGarageMode()).containsExactly(user2); in testBackgroundUsersStartStopKeepBackgroundUserList()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/
Dasync_manager_unittest.cc451 AsyncUserId user2 = async_manager_.GetNextUserId(); in TEST_F() local
475 async_manager_.ExecAsync(user2, std::chrono::milliseconds(2), in TEST_F()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesControllerTest.java502 UserHandle user2 = mock(UserHandle.class); in profileSelectDialogClickCallback_onClick_sendsIntent() local
503 List<UserHandle> users = Arrays.asList(user1, user2); in profileSelectDialogClickCallback_onClick_sendsIntent()
510 assertEquals(intent.getExtra(Intent.EXTRA_USER), user2); in profileSelectDialogClickCallback_onClick_sendsIntent() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java877 private void assertUserForThreeZones(int user0, int user1, int user2) { in assertUserForThreeZones() argument
886 assertOccupantConfig(configs.get(3), user2, new Display[]{mDisplay4}, in assertUserForThreeZones()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2185 UserHandle user2 = UserHandle.of(userId2); in isAppCloneUserPair() local
2188 || mUserCache.userSharesMediaWithParent(user2)) { in isAppCloneUserPair()