Home
last modified time | relevance | path

Searched refs:createUser (Results 1 – 25 of 48) sorted by relevance

12

/cts/hostsidetests/multiuser/src/android/host/multiuser/
DEphemeralTest.java104 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()
DCreateUsersNoAppCrashesTest.java43 int userId = getDevice().createUser( in testCanCreateGuestUser()
54 int userId = getDevice().createUser( in testCanCreateSecondaryUser()
DCreateUsersPermissionTest.java42 getDevice().createUser( in testCanCreateEphemeralUser()
69 getDevice().createUser( in testCanCreateGuestUserWhenUserLimitReached()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/
DUsersTest.java120 UserReference user = mTestApis.users().createUser().create(); in all_containsCreatedUser()
131 UserReference user = mTestApis.users().createUser().create(); in all_userAddedSinceLastCallToUsers_containsNewUser()
133 UserReference user2 = mTestApis.users().createUser().create(); in all_userAddedSinceLastCallToUsers_containsNewUser()
145 UserReference user = mTestApis.users().createUser().create(); in all_userRemovedSinceLastCallToUsers_doesNotContainRemovedUser()
154 UserReference user = mTestApis.users().createUser().create(); in find_userExists_returnsUserReference()
180 mTestApis.users().createUser() in createUser_additionalSystemUser_throwsException()
187 UserReference user = mTestApis.users().createUser().create(); in createUser_userIsCreated()
198 UserReference userReference = mTestApis.users().createUser() in createUser_createdUserHasCorrectName()
211 UserReference userReference = mTestApis.users().createUser() in createUser_createdUserHasCorrectTypeName()
224 UserBuilder userBuilder = mTestApis.users().createUser(); in createUser_specifiesNullUserType_throwsException()
[all …]
DUserTest.java145 UserReference user = mTestApis.users().createUser().create(); in state_userNotStarted_returnsState()
158 UserReference user = mTestApis.users().createUser().createAndStart(); in state_userLocked_returnsState()
169 UserReference user = mTestApis.users().createUser().createAndStart(); in state_userUnlocked_returnsState()
192 try (UserReference user = mTestApis.users().createUser().create()) { in autoclose_removesUser()
DUserReferenceTest.java90 UserReference userReference = sTestApis.users().createUser().name(USER_NAME).create(); in resolve_doesExist_userHasCorrectDetails()
107 UserReference user = sTestApis.users().createUser().create(); in remove_userExists_removesUser()
122 UserReference user = sTestApis.users().createUser().create().stop(); in start_userNotStarted_userIsStarted()
/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java97 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/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DEphemeralUserTest.java44 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()
DDeviceOwnerTest.java116 final int userId = createUser(); in testRemoteBugreportWithTwoUsers()
377 final int userId = createUser(); in testNetworkLoggingWithTwoUsers()
910 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_verifyMetricIsLogged()
937 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_verifyPackageNotStopped()
960 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()
1154 int userId = createUser(); in testListForegroundAffiliatedUsers_notAffiliated()
1179 final int userId = createUser(); in createAffiliatedSecondaryUser()
DDeviceAdminServiceProfileOwnerTest.java39 mUserId = createUser(); in setUp()
DLauncherAppsMultiUserTest.java48 mSecondaryUserId = createUser(); in setUp()
DUserRestrictionsTest.java119 final int secondaryUserId = createUser(); in testUserRestrictions_secondaryProfileOwnerOnly()
208 final int secondaryUserId = createUser(); in testUserRestrictions_layering_profileOwnerNoLeaking()
DCustomDeviceOwnerTest.java90 userId = createUser(); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
/cts/common/device-side/bedstead/remotedpc/src/library/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java143 UserReference profile = sTestApis.users().createUser() in profileOwner_userHandle_noProfileOwner_returnsNull()
157 UserReference profile = sTestApis.users().createUser() in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
174 UserReference profile = sTestApis.users().createUser() in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance()
195 UserReference profile = sTestApis.users().createUser() in profileOwner_userReference_noProfileOwner_returnsNull()
209 UserReference profile = sTestApis.users().createUser() in profileOwner_userReference_nonRemoteDpcProfileOwner_returnsNull()
226 UserReference profile = sTestApis.users().createUser() in profileOwner_userReference_remoteDpcProfileOwner_returnsInstance()
302 UserReference profile = sTestApis.users().createUser() in any_userHandle_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
342 UserReference profile = sTestApis.users().createUser() in any_userHandle_remoteDpcProfileOwner_returnsProfileOwner()
368 UserReference profile = sTestApis.users().createUser() in any_userReference_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
408 UserReference profile = sTestApis.users().createUser() in any_userReference_remoteDpcProfileOwner_returnsProfileOwner()
[all …]
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java109 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
DContextCrossProfileHostTest.java301 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossUsersPermission_throwsException()
330 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesAppOp_throwsException()
359 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesPermission_throwsException()
456 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_doesNotReportMetric()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DPackagesTest.java129 try (UserReference otherUser = mTestApis.users().createUser().create()) { in installedForUser_doesNotContainPackageNotInstalledForUser()
195 UserReference user = mTestApis.users().createUser().createAndStart(); in install_differentUser_isInstalled()
208 UserReference user = mTestApis.users().createUser().createAndStart(); in install_byteArray_differentUser_isInstalled()
220 try (UserReference user = mTestApis.users().createUser().create().stop()) { in install_userNotStarted_throwsException()
228 UserReference user = mTestApis.users().createUser().create().stop(); in install_byteArray_userNotStarted_throwsException()
278 try (UserReference otherUser = mTestApis.users().createUser().createAndStart()) { in install_alreadyInstalledOnOtherUser_installs()
296 try (UserReference otherUser = mTestApis.users().createUser().createAndStart()) { in install_byteArray_alreadyInstalledOnOtherUser_installs()
DPackageReferenceTest.java55 private static final UserReference sOtherUser = sTestApis.users().createUser().createAndStart();
198 try (UserReference newUser = sTestApis.users().createUser().create()) { in grantPermission_permissionIsUserSpecific_permissionIsGrantedOnlyForThatUser()
327 try (UserReference newUser = sTestApis.users().createUser().create()) { in denyPermission_permissionIsUserSpecific_permissionIsDeniedOnlyForThatUser()
DPackageTest.java62 UserReference user = sTestApis.users().createUser().create(); in installedOnUsers_doesNotIncludeUserWithoutPackageInstalled()
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/
DUninstallExistingPackageTest.java52 int newUserId = createUser(); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser()
72 int newUserId = createUser(); in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser()
DPackageManagerMultiUserTest.java43 int newUserId = createUser(); in testGetInstalledModules()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppSecurityPreparer.java51 "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/
DWebViewHostSideMultipleProfileTest.java80 mUserId = createUser(SECONDARY_USER_NAME + System.currentTimeMillis(), false); in testSecondProfile()
92 mUserId = createUser(SECONDARY_USER_NAME + System.currentTimeMillis(), true); in testManagedProfile()
119 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/devicepolicy/
DDevicePolicyTest.java92 UserReference profile = sTestApis.users().createUser() in setProfileOwner_profileOwnerIsSet()
112 UserReference profile = sTestApis.users().createUser() in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
132 UserReference profile = sTestApis.users().createUser() in setProfileOwner_componentNameNotInstalled_throwsException()
183 UserReference profile = sTestApis.users().createUser() in getProfileOwner_returnsProfileOwner()
203 UserReference profile = sTestApis.users().createUser() in getProfileOwner_noProfileOwner_returnsNull()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java166 return createUser(); in getOrCreateSecondaryUser()
169 protected int createUser() throws Exception{ in createUser() method in BaseShortcutManagerHostTest
170 return getDevice().createUser("TestUser_" + System.currentTimeMillis()); in createUser()

12