Home
last modified time | relevance | path

Searched refs:user1 (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java148 UserInfo user1 = generateUser(1000, "User1"); in setUpLogout() local
150 mAliveUsers.add(user1); in setUpLogout()
205 UserInfo user1 = generateUser(1000, "User1"); in switchAllowed_usersSwitchable_returnsAllRows() local
207 mAliveUsers.add(user1); in switchAllowed_usersSwitchable_returnsAllRows()
222 UserInfo user1 = generateUser(1001, "User2"); in switchAllowed_orderUsersByCreationTime() local
224 mAliveUsers.add(user1); in switchAllowed_orderUsersByCreationTime()
239 UserInfo user1 = generateUser(1000, "User1"); in switchAllowed_userNotSwitchable_returnsValidRows() local
242 mAliveUsers.add(user1); in switchAllowed_userNotSwitchable_returnsValidRows()
256 UserInfo user1 = generateUser(1000, "User1"); in switchAllowed_userGuest_returnsValidRows() local
259 mAliveUsers.add(user1); in switchAllowed_userGuest_returnsValidRows()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/data/topics/
DTopicsDaoTest.java59 final int user1 = 1; in testRecordBlockedTopicAndRetrieveBlockedTopics() local
71 assertThat(mTopicsDao.retrieveAllBlockedTopics(user1)).isEmpty(); in testRecordBlockedTopicAndRetrieveBlockedTopics()
97 final int user1 = 1; in testRecordBlockedTopicAndRemoveBlockedTopic() local
100 mTopicsDao.recordBlockedTopic(List.of(topicToBlock), user1); in testRecordBlockedTopicAndRemoveBlockedTopic() local
103 Set<Topic> blockedTopics1 = mTopicsDao.retrieveAllBlockedTopics(user1); in testRecordBlockedTopicAndRemoveBlockedTopic()
160 final int user1 = 1; in testClearAllBlockedTopicsOfUser() local
165 mTopicsDao.recordBlockedTopic(List.of(topicToBlock1), user1); in testClearAllBlockedTopicsOfUser() local
168 Set<Topic> blockedTopics1 = mTopicsDao.retrieveAllBlockedTopics(user1); in testClearAllBlockedTopicsOfUser()
/packages/modules/Bluetooth/tools/rootcanal/test/
Dasync_manager_unittest.cc418 AsyncUserId user1 = async_manager_.GetNextUserId(); in TEST_F() local
422 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F()
429 AsyncUserId user1 = async_manager_.GetNextUserId(); in TEST_F() local
433 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F()
438 async_manager_.ExecAsync(user1, std::chrono::seconds(2), in TEST_F()
450 AsyncUserId user1 = async_manager_.GetNextUserId(); in TEST_F() local
463 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F()
466 async_manager_.ExecAsync(user1, std::chrono::seconds(2), in TEST_F()
469 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F()
472 async_manager_.ExecAsync(user1, std::chrono::seconds(2), in TEST_F()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java168 UserInfo user1 = createAdminUser(fgUserId + 1); in testGetAllSwitchableUsers() local
171 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers()
174 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(user1, user2); in testGetAllSwitchableUsers()
187 UserInfo user1 = createAdminUser(fgUserId + 1); in testGetAllSwitchableUsers_notHeadless() local
190 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers_notHeadless()
193 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(systemUser, user1, in testGetAllSwitchableUsers_notHeadless()
422 UserInfo user1 = createNonAdminUser(10); in testGetMaxSupportedRealUsers_isHeadless() local
427 mockGetUsers(user0, user1, user2, user3, user4); in testGetMaxSupportedRealUsers_isHeadless()
440 UserInfo user1 = createNonAdminUser(10); in testGetMaxSupportedRealUsers_isNotHeadless() local
445 mockGetUsers(user0, user1, user2, user3, user4); in testGetMaxSupportedRealUsers_isNotHeadless()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DUserInstanceManagerTest.java138 final int user1 = 1; in testGetOrCreateUserBlockedTopicsManagerInstance() local
143 mUserInstanceManager.getOrCreateUserBlockedTopicsManagerInstance(user1); in testGetOrCreateUserBlockedTopicsManagerInstance()
151 assertThat(mUserInstanceManager.getOrCreateUserBlockedTopicsManagerInstance(user1)) in testGetOrCreateUserBlockedTopicsManagerInstance()
158 final int user1 = 1; in testRecordRemoveBlockedTopicsMultipleUsers() local
169 mUserInstanceManager.getOrCreateUserBlockedTopicsManagerInstance(user1); in testRecordRemoveBlockedTopicsMultipleUsers()
212 final int user1 = 1; in testDeleteAllDataWhenDeletingUserInstance() local
219 mTopicsDao.recordBlockedTopic(List.of(topicToBlock1), user1); in testDeleteAllDataWhenDeletingUserInstance() local
222 Set<Topic> blockedTopics1 = mTopicsDao.retrieveAllBlockedTopics(user1); in testDeleteAllDataWhenDeletingUserInstance()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java300 UserInfo user1 = mMockedUserManager.createUser("test1", in testMockUmGetAliveUsers() local
305 mockUmGetAliveUsers(mMockedUserManager, user1, user2); in testMockUmGetAliveUsers()
307 assertThat(mMockedUserManager.getAliveUsers()).containsExactly(user1, user2); in testMockUmGetAliveUsers()
312 UserHandle user1 = UserHandle.of(100); in testMockUmGetUserHandles() local
317 assertThat(mMockedUserManager.getUserHandles(true)).containsExactly(user1, user2).inOrder(); in testMockUmGetUserHandles()
344 UserHandle user1 = UserHandle.of(100); 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()
122 && parentUserInfo.getUserHandle().equals(user1); in isParentUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DIoStatsTrackerTest.java58 UserActivity user1 = new UserActivity(1); in testNewUsersAppear() local
59 user1.foreground_rchar = 30; in testNewUsersAppear()
60 user1.background_wchar = 50; in testNewUsersAppear()
63 UidIoRecord process1 = user1.updateSystemState(mockSystemStateInterface); in testNewUsersAppear()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DForceEnableNotesRolePreferenceControllerTest.java84 UserInfo user1 = new UserInfo(1, "Name", "Path", 0x0ff0ff, in setEnabled_updatesForAllFullAndProfileUsers() local
91 when(mUserManager.getUsers()).thenReturn(Arrays.asList(user1, user2, user3)); in setEnabled_updatesForAllFullAndProfileUsers()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java3498 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
3509 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
3588 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchRemovesOldUserPrivateNetworks() local
3597 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3637 when(mWifiPermissionsUtil.doesUidBelongToUser(user1Network.creatorUid, user1)) in testHandleUserSwitchRemovesOldUserPrivateNetworks()
3663 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchRemovesOldUserEphemeralNetworks() local
3730 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchWithNoOldUserPrivateNetworks() local
3777 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() local
3779 setupUserProfiles(user1); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
3786 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java715 int user1 = TEST_USER_ID; in testBackgroundUserList() local
721 expectRegularUserExists(mMockedUserHandleHelper, user1); in testBackgroundUserList()
727 mockGetCurrentUser(user1); in testBackgroundUserList()
732 sendUserUnlockedEvent(user1); in testBackgroundUserList()
733 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1); in testBackgroundUserList()
737 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1); in testBackgroundUserList()
741 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1, user3); in testBackgroundUserList()
745 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1, user3); in testBackgroundUserList()
757 int user1 = TEST_USER_ID; in testBackgroundUsersStartStopKeepBackgroundUserList() local
761 mockGetCurrentUser(user1); in testBackgroundUsersStartStopKeepBackgroundUserList()
[all …]
DExperimentalCarUserServiceTest.java244 UserHandle user1 = expectRegularUserExists(mMockedUserHandleHelper, user1Id); in testStopPassenger() local
247 associateParentChild(user1, passenger1); in testStopPassenger()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesControllerTest.java501 UserHandle user1 = mock(UserHandle.class); in profileSelectDialogClickCallback_onClick_sendsIntent() local
503 List<UserHandle> users = Arrays.asList(user1, user2); in profileSelectDialogClickCallback_onClick_sendsIntent()
/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
884 assertOccupantConfig(configs.get(1), user1, new Display[]{mDisplay2}, in assertUserForThreeZones()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2184 UserHandle user1 = UserHandle.of(userId1); in isAppCloneUserPair() local
2187 if (mUserCache.userSharesMediaWithParent(user1) in isAppCloneUserPair()