/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | EphemeralTest.java | 104 final int userId = createUser(); in testRemoveUserOrSetEphemeral_nonRunningUserRemoved() 121 final int userId = createUser(); in testRemoveUserOrSetEphemeral_currentUserSetEphemeral_removeAfterSwitch() 142 final int userId = createUser(); in testRemoveUserOrSetEphemeral_currentUserSetEphemeral_removeAfterReboot() 162 private int createUser() throws Exception { in createUser() method in EphemeralTest 163 return createUser(/* isGuest= */ false, /* isEphemeral= */ false); in createUser() 167 return createUser(/* isGuest= */ false, /* isEphemeral= */ true); in createEphemeralUser() 170 private int createUser(boolean isGuest, boolean isEphemeral) throws Exception { in createUser() method in EphemeralTest 173 return getDevice().createUser(name, isGuest, isEphemeral); in createUser()
|
D | CreateUsersNoAppCrashesTest.java | 43 int userId = getDevice().createUser( in testCanCreateGuestUser() 54 int userId = getDevice().createUser( in testCanCreateSecondaryUser()
|
D | CreateUsersPermissionTest.java | 46 getDevice().createUser( in testCanCreateEphemeralUser() 73 getDevice().createUser( in testCanCreateGuestUserWhenUserLimitReached()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/ |
D | UsersTest.java | 129 UserReference user = TestApis.users().createUser().create(); in all_containsCreatedUser() 140 UserReference user = TestApis.users().createUser().create(); in all_userAddedSinceLastCallToUsers_containsNewUser() 142 UserReference user2 = TestApis.users().createUser().create(); in all_userAddedSinceLastCallToUsers_containsNewUser() 154 UserReference user = TestApis.users().createUser().create(); in all_userRemovedSinceLastCallToUsers_doesNotContainRemovedUser() 163 UserReference user = TestApis.users().createUser().create(); in find_userExists_returnsUserReference() 189 TestApis.users().createUser() in createUser_additionalSystemUser_throwsException() 196 UserReference user = TestApis.users().createUser().create(); in createUser_userIsCreated() 207 UserReference userReference = TestApis.users().createUser() in createUser_createdUserHasCorrectName() 220 UserReference userReference = TestApis.users().createUser() in createUser_createdUserHasCorrectTypeName() 233 UserBuilder userBuilder = TestApis.users().createUser(); in createUser_specifiesNullUserType_throwsException() [all …]
|
D | UserReferenceTest.java | 92 UserReference user = TestApis.users().createUser().create(); in remove_userExists_removesUser() 107 UserReference user = TestApis.users().createUser().create().stop(); in start_userNotStarted_userIsUnlocked() 253 UserReference user = TestApis.users().createUser().create(); in isRunning_userNotStarted_returnsFalse() 265 UserReference user = TestApis.users().createUser().create(); in isRunning_userIsRunning_returnsTrue() 284 UserReference user = TestApis.users().createUser().createAndStart(); in isUnlocked_userIsUnlocked_returnsTrue() 328 try (UserReference user = TestApis.users().createUser().create()) { in autoclose_removesUser()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | EphemeralUserTest.java | 44 int userId = createUser(FLAG_EPHEMERAL); in testCreateEphemeralUser() 52 int userId = createUser(); in testCreateLongLivedUser() 62 int userId = createUser(FLAG_EPHEMERAL); in testRemoveEphemeralOnStop() 76 int userId = createUser(FLAG_GUEST); in testEphemeralGuestFeature()
|
D | DeviceAdminServiceProfileOwnerTest.java | 39 mUserId = createUser(); in setUp()
|
D | LauncherAppsMultiUserTest.java | 48 mSecondaryUserId = createUser(); in setUp()
|
D | CustomDeviceOwnerTest.java | 84 userId = createUser(); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
|
D | UserRestrictionsTest.java | 119 final int secondaryUserId = createUser(); in testUserRestrictions_secondaryProfileOwnerOnly() 208 final int secondaryUserId = createUser(); in testUserRestrictions_layering_profileOwnerNoLeaking()
|
D | DeviceOwnerTest.java | 112 final int userId = createUser(); in testRemoteBugreportWithTwoUsers() 352 final int userId = createUser(); in testNetworkLoggingWithTwoUsers() 839 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped() 987 int userId = createUser(); in testListForegroundAffiliatedUsers_notAffiliated() 1012 final int userId = createUser(); in createAffiliatedSecondaryUser()
|
/cts/hostsidetests/accounts/src/android/host/accounts/ |
D | BaseMultiUserTest.java | 97 return createUser("--profileOf " + userId + " --restricted"); in createRestrictedProfile() 106 return createUser("--profileOf " + userId + " --managed"); in createProfile() 112 protected int createUser() in createUser() method in BaseMultiUserTest 114 return createUser(""); in createUser() 117 private int createUser(String extraParam) in createUser() method in BaseMultiUserTest 138 return mDevice.createUser( in createGuestUser()
|
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/ |
D | RemoteDpcTest.java | 153 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_noProfileOwner_returnsNull() 170 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull() 190 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance() 213 UserReference profile = TestApis.users().createUser() in profileOwner_userReference_noProfileOwner_returnsNull() 229 UserReference profile = TestApis.users().createUser() in profileOwner_userReference_nonRemoteDpcProfileOwner_returnsNull() 249 UserReference profile = TestApis.users().createUser() in profileOwner_userReference_remoteDpcProfileOwner_returnsInstance() 328 UserReference profile = TestApis.users().createUser() in any_userHandle_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull() 374 UserReference profile = TestApis.users().createUser() in any_userHandle_remoteDpcProfileOwner_returnsProfileOwner() 402 UserReference profile = TestApis.users().createUser() in any_userReference_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull() 448 UserReference profile = TestApis.users().createUser() in any_userReference_remoteDpcProfileOwner_returnsProfileOwner() [all …]
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | BaseContextCrossProfileTest.java | 109 return createUser("--profileOf " + userId + " --managed"); in createProfile() 115 protected int createUser() in createUser() method in BaseContextCrossProfileTest 117 return createUser(""); in createUser() 120 private int createUser(String extraParam) in createUser() method in BaseContextCrossProfileTest
|
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/ |
D | UninstallExistingPackageTest.java | 52 int newUserId = createUser(); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser() 72 int newUserId = createUser(); in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser()
|
D | PackageManagerMultiUserTest.java | 43 int newUserId = createUser(); in testGetInstalledModules()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AppSecurityPreparer.java | 51 "Created secondary user " + device.createUser("CTS_" + System.nanoTime())); in setUp() 55 "Created secondary user " + device.createUser("CTS_" + System.nanoTime())); in setUp()
|
/cts/hostsidetests/webkit/src/com/android/cts/webkit/ |
D | WebViewHostSideMultipleProfileTest.java | 80 mUserId = createUser(SECONDARY_USER_NAME + System.currentTimeMillis(), false); in testSecondProfile() 92 mUserId = createUser(SECONDARY_USER_NAME + System.currentTimeMillis(), true); in testManagedProfile() 123 private int createUser(String profileName, boolean isManaged) in createUser() method in WebViewHostSideMultipleProfileTest
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
D | PackagesTest.java | 131 try (UserReference otherUser = TestApis.users().createUser().create()) { in installedForUser_doesNotContainPackageNotInstalledForUser() 223 UserReference user = TestApis.users().createUser().createAndStart(); in install_byteArray_differentUser_isInstalled() 237 try (UserReference user = TestApis.users().createUser().create().stop()) { in install_userNotStarted_throwsException() 245 UserReference user = TestApis.users().createUser().create().stop(); in install_byteArray_userNotStarted_throwsException() 295 try (UserReference otherUser = TestApis.users().createUser().createAndStart()) { in install_alreadyInstalledOnOtherUser_installs() 313 try (UserReference otherUser = TestApis.users().createUser().createAndStart()) { in install_byteArray_alreadyInstalledOnOtherUser_installs()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicyTest.java | 97 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsSet() 117 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsAlreadySet_throwsException() 137 UserReference profile = TestApis.users().createUser() in setProfileOwner_componentNameNotInstalled_throwsException() 189 UserReference profile = TestApis.users().createUser() in getProfileOwner_returnsProfileOwner() 209 UserReference profile = TestApis.users().createUser() in getProfileOwner_noProfileOwner_returnsNull()
|
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ |
D | BaseShortcutManagerHostTest.java | 166 return createUser(); in getOrCreateSecondaryUser() 169 protected int createUser() throws Exception{ in createUser() method in BaseShortcutManagerHostTest 170 return getDevice().createUser("TestUser_" + System.currentTimeMillis()); in createUser()
|
/cts/hostsidetests/appsearch/src/android/appsearch/cts/ |
D | AppSearchMultiUserTest.java | 57 mSecondaryUserId = getDevice().createUser("Test_User"); in setUp()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | HeadlessSystemUserTest.java | 68 .createUser("testProfileOwnerIsSetOnNewUser", /* flags= */ 0)); in testProfileOwnerIsSetOnNewUser()
|
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/ |
D | DeviceAdminAppTest.java | 72 try (UserReference profile = TestApis.users().createUser() in setAsProfileOwner_isEnabled()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 273 return createUser(name, /* flags= */ 0, "android.os.usertype.full.SECONDARY"); in createFullUser() 280 return createUser(name, /* flags= */ 0, "android.os.usertype.full.GUEST"); in createGuestUser() 288 protected int createUser(String name, int flags, String type) throws Exception { in createUser() method in CarHostJUnit4TestCase
|