/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 129 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/ |
D | ProfileSwitcherTest.java | 149 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/ |
D | AndroidMockitoHelperTest.java | 302 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/ |
D | UserUtils.java | 116 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/ |
D | WifiConfigManagerTest.java | 3499 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/ |
D | ForceEnableNotesRolePreferenceControllerTest.java | 86 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/ |
D | TopicsDaoTest.java | 60 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/ |
D | CarUserServiceTest.java | 716 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/ |
D | async_manager_unittest.cc | 451 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/ |
D | StylusDevicesControllerTest.java | 502 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/ |
D | CarOccupantZoneServiceTest.java | 877 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/ |
D | MediaProvider.java | 2185 UserHandle user2 = UserHandle.of(userId2); in isAppCloneUserPair() local 2188 || mUserCache.userSharesMediaWithParent(user2)) { in isAppCloneUserPair()
|