/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/ |
D | ProfileSwitcherTest.java | 101 UserInfo user1 = generateUser(1000, "User1", /* supportsSwitch= */ true, in setUpLogout() local 105 mAliveUsers.add(user1); in setUpLogout() 162 UserInfo user1 = generateUser(1000, "User1", /* supportsSwitch= */ true, in switchAllowed_usersSwitchable_returnsAllRows() local 166 mAliveUsers.add(user1); in switchAllowed_usersSwitchable_returnsAllRows() 181 UserInfo user1 = generateUser(1001, "User2", /* supportsSwitch= */ true, in switchAllowed_orderUsersByCreationTime() local 185 mAliveUsers.add(user1); in switchAllowed_orderUsersByCreationTime() 200 UserInfo user1 = generateUser(1000, "User1", /* supportsSwitch= */ true, in switchAllowed_userNotSwitchable_returnsValidRows() local 204 mAliveUsers.add(user1); in switchAllowed_userNotSwitchable_returnsValidRows() 218 UserInfo user1 = generateUser(1000, "User1", /* supportsSwitch= */ true, in switchAllowed_userGuest_returnsValidRows() local 222 mAliveUsers.add(user1); in switchAllowed_userGuest_returnsValidRows() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/test/ |
D | async_manager_unittest.cc | 417 AsyncUserId user1 = async_manager_.GetNextUserId(); in TEST_F() local 421 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F() 428 AsyncUserId user1 = async_manager_.GetNextUserId(); in TEST_F() local 432 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F() 437 async_manager_.ExecAsync(user1, std::chrono::seconds(2), in TEST_F() 449 AsyncUserId user1 = async_manager_.GetNextUserId(); in TEST_F() local 462 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F() 465 async_manager_.ExecAsync(user1, std::chrono::seconds(2), in TEST_F() 468 async_manager_.ExecAsync(user1, std::chrono::milliseconds(2), in TEST_F() 471 async_manager_.ExecAsync(user1, std::chrono::seconds(2), in TEST_F() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 169 UserInfo user1 = createAdminUser(fgUserId + 1); in testGetAllSwitchableUsers() local 172 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers() 175 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(user1, user2); in testGetAllSwitchableUsers() 188 UserInfo user1 = createAdminUser(fgUserId + 1); in testGetAllSwitchableUsers_notHeadless() local 191 mockGetUsers(systemUser, fgUser, user1, user2); in testGetAllSwitchableUsers_notHeadless() 194 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(systemUser, user1, in testGetAllSwitchableUsers_notHeadless() 423 UserInfo user1 = createNonAdminUser(10); in testGetMaxSupportedRealUsers_isHeadless() local 428 mockGetUsers(user0, user1, user2, user3, user4); in testGetMaxSupportedRealUsers_isHeadless() 441 UserInfo user1 = createNonAdminUser(10); in testGetMaxSupportedRealUsers_isNotHeadless() local 446 mockGetUsers(user0, user1, user2, user3, user4); in testGetMaxSupportedRealUsers_isNotHeadless() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | AndroidMockitoHelperTest.java | 160 UserInfo user1 = mMockedUserManager.createUser("test1", in testMockUmGetAliveUsers() local 165 mockUmGetAliveUsers(mMockedUserManager, user1, user2); in testMockUmGetAliveUsers() 167 assertThat(mMockedUserManager.getAliveUsers()).containsExactly(user1, user2); in testMockUmGetAliveUsers() 172 UserHandle user1 = UserHandle.of(100); in testMockUmGetUserHandles() local 177 assertThat(mMockedUserManager.getUserHandles(true)).containsExactly(user1, user2).inOrder(); in testMockUmGetUserHandles()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | IoStatsTrackerTest.java | 56 UserActivity user1 = new UserActivity(1); in testNewUsersAppear() local 57 user1.foreground_rchar = 30; in testNewUsersAppear() 58 user1.background_wchar = 50; in testNewUsersAppear() 61 UidIoRecord process1 = user1.updateSystemState(mockSystemStateInterface); in testNewUsersAppear()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 3181 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local 3192 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId() 3271 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchRemovesOldUserPrivateNetworks() local 3280 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks() 3320 when(mWifiPermissionsUtil.doesUidBelongToUser(user1Network.creatorUid, user1)) in testHandleUserSwitchRemovesOldUserPrivateNetworks() 3346 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchRemovesOldUserEphemeralNetworks() local 3413 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchWithNoOldUserPrivateNetworks() local 3460 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() local 3462 setupUserProfiles(user1); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() 3469 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 526 int user1 = 101; in testBackgroundUserList() local 532 UserHandle user1Handle = expectRegularUserExists(mMockedUserHandleHelper, user1); in testBackgroundUserList() 539 mockGetCurrentUser(user1); in testBackgroundUserList() 544 sendUserUnlockedEvent(user1); in testBackgroundUserList() 545 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1); in testBackgroundUserList() 549 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1); in testBackgroundUserList() 553 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1, user3); in testBackgroundUserList() 557 assertThat(mCarUserService.getBackgroundUsersToRestart()).containsExactly(user1, user3); in testBackgroundUserList() 569 int user1 = 101; in testBackgroundUsersStartStopKeepBackgroundUserList() local 573 UserHandle user1Handle = UserHandle.of(user1); in testBackgroundUsersStartStopKeepBackgroundUserList() [all …]
|
D | ExperimentalCarUserServiceTest.java | 241 UserHandle user1 = expectRegularUserExists(mMockedUserHandleHelper, user1Id); in testStopPassenger() local 244 associateParentChild(user1, passenger1); in testStopPassenger()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 1728 UserHandle user1 = UserHandle.of(userId1); in isAppCloneUserPair() local 1731 if (mUserCache.userSharesMediaWithParent(user1) in isAppCloneUserPair()
|