/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | RunOnSecondaryUserTargetPreparerTest.java | 77 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp() local 78 userInfos.put(0, new UserInfo(0, "system", /* flag= */ 0, /* isRunning= */ true)); in setUp() 79 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp() 122 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_secondaryUserAlreadyExists_doesNotCreateSecondaryUser() local 123 userInfos.put( in setUp_secondaryUserAlreadyExists_doesNotCreateSecondaryUser() 126 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_secondaryUserAlreadyExists_doesNotCreateSecondaryUser() 137 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_secondaryUserAlreadyExists_startsAndSwitchesToSecondaryUser() local 138 userInfos.put( in setUp_secondaryUserAlreadyExists_startsAndSwitchesToSecondaryUser() 141 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_secondaryUserAlreadyExists_startsAndSwitchesToSecondaryUser() 166 Map<Integer, UserInfo> userInfos = new HashMap<>(); in tearDown_secondaryUserAlreadyExists_switchesBackToInitialUser() local [all …]
|
D | RunOnWorkProfileTargetPreparerTest.java | 173 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_workProfileAlreadyExists_doesNotCreateWorkProfile() local 174 userInfos.put( in setUp_workProfileAlreadyExists_doesNotCreateWorkProfile() 181 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_workProfileAlreadyExists_doesNotCreateWorkProfile() 191 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_workProfileAlreadyExists_hasDeviceOwner_doesNotRemoveDeviceOwner() local 192 userInfos.put( in setUp_workProfileAlreadyExists_hasDeviceOwner_doesNotRemoveDeviceOwner() 199 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_workProfileAlreadyExists_hasDeviceOwner_doesNotRemoveDeviceOwner() 224 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_workProfileAlreadyExists_runsTestAsExistingUser() local 225 userInfos.put( in setUp_workProfileAlreadyExists_runsTestAsExistingUser() 232 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_workProfileAlreadyExists_runsTestAsExistingUser() 252 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_workProfileAlreadyExists_installsPackagesInExistingUser() local [all …]
|
D | RunOnCloneProfileTargetPreparerTest.java | 162 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_profileAlreadyExists_doesNotCreateProfile() local 163 userInfos.put( in setUp_profileAlreadyExists_doesNotCreateProfile() 171 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_profileAlreadyExists_doesNotCreateProfile() 194 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_profileAlreadyExists_runsTestAsExistingUser() local 195 userInfos.put( in setUp_profileAlreadyExists_runsTestAsExistingUser() 203 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_profileAlreadyExists_runsTestAsExistingUser() 236 Map<Integer, UserInfo> userInfos = new HashMap<>(); in tearDown_profileAlreadyExists_doesNotRemoveProfile() local 237 userInfos.put( in tearDown_profileAlreadyExists_doesNotRemoveProfile() 245 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in tearDown_profileAlreadyExists_doesNotRemoveProfile() 300 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_doesNotSupportAdditionalUsers_alreadyHasProfile_runsTestAsExistingUser() local [all …]
|
D | RunOnPrivateProfileTargetPreparerTest.java | 138 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_profileAlreadyExists_doesNotCreateProfile() local 139 userInfos.put( in setUp_profileAlreadyExists_doesNotCreateProfile() 147 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_profileAlreadyExists_doesNotCreateProfile() 176 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_profileAlreadyExists_runsTestAsExistingUser() local 177 userInfos.put( in setUp_profileAlreadyExists_runsTestAsExistingUser() 185 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in setUp_profileAlreadyExists_runsTestAsExistingUser() 222 Map<Integer, UserInfo> userInfos = new HashMap<>(); in tearDown_profileAlreadyExists_doesNotRemoveProfile() local 223 userInfos.put( in tearDown_profileAlreadyExists_doesNotRemoveProfile() 231 when(mTestInfo.getDevice().getUserInfos()).thenReturn(userInfos); in tearDown_profileAlreadyExists_doesNotRemoveProfile() 290 Map<Integer, UserInfo> userInfos = new HashMap<>(); in setUp_doesNotSupportAdditionalUsers_alreadyHasProfile_runsTestAsExistingUser() local [all …]
|
D | TestAppInstallSetupTest.java | 240 Map<Integer, UserInfo> userInfos = new HashMap<>(); in testSetupAndTeardown_install_runTestsAsUser() local 241 userInfos.put(0, null); in testSetupAndTeardown_install_runTestsAsUser() 242 userInfos.put(userId, null); in testSetupAndTeardown_install_runTestsAsUser() 243 when(mMockTestDevice.getUserInfos()).thenReturn(userInfos); in testSetupAndTeardown_install_runTestsAsUser()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | SwitchUserTargetPreparer.java | 53 Map<Integer, UserInfo> userInfos = device.getUserInfos(); in setUp() local 55 if (userInfos in setUp() 64 for (UserInfo userInfo : userInfos.values()) { in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | TestDeviceUserFuncTest.java | 72 Map<Integer, UserInfo> userInfos = mTestDevice.getUserInfos(); in testUserLifecycle() local 73 boolean userInfoContainsUserId = userInfos.containsKey(userId); in testUserLifecycle() 75 UserInfo info = userInfos.get(userId); in testUserLifecycle()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | RunOnSecondaryUserTargetPreparer.java | 209 List<UserInfo> userInfos = new ArrayList<>(userInfoMap.values()); in removeNonForTestingUsers() local 210 Collections.sort(userInfos, Comparator.comparing(UserInfo::userId)); in removeNonForTestingUsers() 216 for (UserInfo userInfo : userInfos) { in removeNonForTestingUsers()
|