Home
last modified time | relevance | path

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

1234

/cts/hostsidetests/multiuser/src/android/host/multiuser/
DEphemeralTest.java116 final int userId = createUser(); in testRemoveUserWhenPossible_nonRunningUserRemoved()
134 final int userId = createUser(); in testRemoveUserWhenPossible_currentUserSetEphemeral_removeAfterSwitch()
156 final int userId = createUser(); in testRemoveUserWhenPossible_currentUserSetEphemeral_removeAfterReboot()
182 final int userId = createUser(); in testRemoveUserWhenPossible_devicePolicyIsSet()
231 private int createUser() throws Exception { in createUser() method in EphemeralTest
232 return createUser(/* isGuest= */ false, /* isEphemeral= */ false); in createUser()
236 return createUser(/* isGuest= */ false, /* isEphemeral= */ true); in createEphemeralUser()
239 private int createUser(boolean isGuest, boolean isEphemeral) throws Exception { in createUser() method in EphemeralTest
242 return getDevice().createUser(name, isGuest, isEphemeral); in createUser()
DCreateUsersPermissionTest.java46 getDevice().createUser( in testCanCreateEphemeralUser()
73 getDevice().createUser( in testCanCreateGuestUserWhenUserLimitReached()
DUserManagerHostTest.java46 final int userId1 = getDevice().createUser("test_user_1"); in getPreviousForegroundUser_correctAfterReboot()
49 final int userId2 = getDevice().createUser("test_user_2"); in getPreviousForegroundUser_correctAfterReboot()
DCreateUsersNoAppCrashesTest.java55 int userId = getDevice().createUser( in testCanCreateSecondaryUser()
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUsersTest.kt120 val user = TestApis.users().createUser().create() in <lambda>()
132 val user = TestApis.users().createUser().create() in <lambda>()
134 val user2 = TestApis.users().createUser().create() in <lambda>()
147 val user = TestApis.users().createUser().create() in <lambda>()
157 val user = TestApis.users().createUser().create() in <lambda>()
185 TestApis.users().createUser() in <lambda>()
194 val user = TestApis.users().createUser().create() in <lambda>()
210 .createUser() in <lambda>()
224 val userReference = TestApis.users().createUser() in <lambda>()
238 val userBuilder = TestApis.users().createUser() in <lambda>()
[all …]
DMultiUserAnnotationExecutorTest.kt38 users().createUser().create().use { _ -> in <lambda>()
39 users().createUser().create().use { _ -> } in <lambda>()
/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
137 return mDevice.createUser( in createGuestUser()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DEphemeralUserTest.kt43 .createUser() in <lambda>()
62 .createUser() in <lambda>()
75 .createUser() in <lambda>()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityVisibleBackgroundUsersTestCase.java143 try (UserReference parent = TestApis.users().createUser().name("parent_user").create()) { in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay()
145 try (UserReference profile = TestApis.users().createUser() in testStartVisibleBgUser_onSecondaryDisplay_profileOnSameDisplay()
178 try (UserReference parent = TestApis.users().createUser().name("parent_user").create()) { in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay()
180 try (UserReference profile = TestApis.users().createUser() in testStartVisibleBgUser_onSecondaryDisplay_profileOnDefaultDisplay()
218 try (UserReference profile = TestApis.users().createUser() in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
264 try (UserReference user = TestApis.users().createUser().name("parent_user").create()) { in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay_HSUM()
267 try (UserReference profile = TestApis.users().createUser() in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay_HSUM()
295 try (UserReference otherUser = TestApis.users().createUser().name("other_user") in testStartVisibleBgUser_onSecondaryDisplay_displayInUse()
DUserVisibilityTestCase.java113 try (UserReference user = TestApis.users().createUser().name("childless_user").create()) { in runTestOnDisplay()
135 try (UserReference user = TestApis.users().createUser().name("parent_user").create()) { in runTestOnSecondaryDisplay()
137 try (UserReference profile = TestApis.users().createUser() in runTestOnSecondaryDisplay()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java151 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_noProfileOwner_returnsNull()
168 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull()
188 UserReference profile = TestApis.users().createUser() in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance()
211 UserReference profile = TestApis.users().createUser() in profileOwner_userReference_noProfileOwner_returnsNull()
227 UserReference profile = TestApis.users().createUser() in profileOwner_userReference_nonRemoteDpcProfileOwner_returnsNull()
247 UserReference profile = TestApis.users().createUser() in profileOwner_userReference_remoteDpcProfileOwner_returnsInstance()
326 UserReference profile = TestApis.users().createUser() in any_userHandle_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
372 UserReference profile = TestApis.users().createUser() in any_userHandle_remoteDpcProfileOwner_returnsProfileOwner()
400 UserReference profile = TestApis.users().createUser() in any_userReference_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull()
446 UserReference profile = TestApis.users().createUser() in any_userReference_remoteDpcProfileOwner_returnsProfileOwner()
[all …]
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java107 return createUser("--profileOf " + userId + " --managed"); in createProfile()
113 protected int createUser() in createUser() method in BaseContextCrossProfileTest
115 return createUser(""); in createUser()
118 private int createUser(String extraParam) in createUser() method in BaseContextCrossProfileTest
DContextCrossProfileHostTest.java301 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_samePackage_withAcrossUsersPermission_bindsService()
330 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_differentPackage_withAcrossUsersPermission_throwsException()
359 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesAppOp_throwsException()
388 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesPermission_throwsException()
485 int userInDifferentProfileGroup = createUser(); in testBindServiceAsUser_differentProfileGroup_doesNotReportMetric()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/
DUserStatsTests.java75 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in userCreate()
83 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in removeGuestUser()
93 int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */); in switchUser()
/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()
/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 testSecondaryUser()
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/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/user/
DCarUserManagerPermissionTest.java99 () -> mCarUserManager.createUser( in testCreateUser()
110 () -> mCarUserManager.createUser(null, 0)); in testCreateUserId()
119 (um) -> um.createUser("Thanos", UserInfo.FLAG_ADMIN))); in testCannotCreateAdminUserWithoutManageUsersPermission()
128 (um) -> um.createUser("Thanos", UserInfo.FLAG_ADMIN))); in testCannotCreateAdminUserWithTypeWithoutManageUsersPermission()
/cts/tests/tests/car/src/android/car/cts/
DCarUserManagerTest.java131 newUser = createUser("newUser", /* isGuest= */ false); in testStartUserOnDisplayAndStopUser()
256 newUser = createUser("TestUserToCreate", false); in testLifecycleUserCreatedListener_supportedVersion()
285 UserHandle newUser = createUser("TestUserToRemove", false); in testLifecycleUserRemovedListener_supportedVersion()
368 UserHandle newUser = createUser("TestUserToRemove", false); in testRemoveUserExists()
399 mCarUserManager.createUser(new UserCreationRequest.Builder().build(), Runnable::run, in testCreateUser()
413 private UserHandle createUser(@Nullable String name, boolean isGuest) { in createUser() method in CarUserManagerTest
422 mCarUserManager.createUser(new UserCreationRequest.Builder().build(), Runnable::run, in createUser()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAdminServiceProfileOwnerTest.java39 mUserId = createUser(); in setUp()
DLauncherAppsMultiUserTest.java48 mSecondaryUserId = createUser(); in setUp()
/cts/common/device-side/bedstead/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/
DUsersComponent.kt69 users().createUser() in <lambda>()
156 .findUsersOfType(resolvedUserType).firstOrNull() ?: createUser(resolvedUserType) in <lambda>()
242 createUser(resolvedUserType) in <lambda>()
317 fun createUser(userType: UserType, parent: UserReference? = null): UserReference { in <lambda>() method
324 val user = users().createUser() in <lambda>()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2021_0602.java49 guestUserId = device.createUser("Guest", true /* guest */, false /* ephemeral */); in testPocCVE_2021_0602()
DCVE_2023_20955.java56 userId = device.createUser("CTSUser"); in testPocCVE_2023_20955()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java102 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsSet()
123 UserReference profile = TestApis.users().createUser() in setProfileOwner_profileOwnerIsAlreadySet_throwsException()
143 UserReference profile = TestApis.users().createUser() in setProfileOwner_componentNameNotInstalled_throwsException()
195 UserReference profile = TestApis.users().createUser() in getProfileOwner_returnsProfileOwner()
215 UserReference profile = TestApis.users().createUser() in getProfileOwner_noProfileOwner_returnsNull()

1234