Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserManagerUnitTest.java250 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", "sweet", 42); in testCreateUser_withType_success()
271 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", "sweet", 42); in testCreateUser_withType_remoteException()
286 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", 42); in testCreateUser_success()
307 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", 42); in testCreateUser_remoteException()
507 }).when(mService).createUser(eq(name), eq(userType), eq(flags), anyInt(), notNull()); in expectServiceCreateUserSucceeds()
513 .createUser(eq(name), eq(userType), eq(flags), anyInt(), notNull()); in expectServiceCreateUserFails()
DCarUserServiceTest.java1203 .createUser("dude", null, 108, mAsyncCallTimeoutMs, mUserCreationFuture)); in testCreateUser_nullType()
1209 .createUser("dude", "TypeONegative", 108, mAsyncCallTimeoutMs, null)); in testCreateUser_nullReceiver()
1216 mCarUserService.createUser("dude", "TypeONegative", 108, mAsyncCallTimeoutMs, in testCreateUser_umCreateReturnsNull()
1232 mCarUserService.createUser("dude", "TypeONegative", 108, mAsyncCallTimeoutMs, in testCreateUser_umCreateThrowsException()
1248 mCarUserService.createUser("dude", "TypeONegative", 108, mAsyncCallTimeoutMs, in testCreateUser_internalHalFailure()
1263 mCarUserService.createUser("dude", "TypeONegative", 108, mAsyncCallTimeoutMs, in testCreateUser_halFailure()
1279 mCarUserService.createUser("dude", "TypeONegative", 108, mAsyncCallTimeoutMs, in testCreateUser_halServiceThrowsRuntimeException()
1298 mCarUserService.createUser("dude", UserManager.USER_TYPE_FULL_GUEST, in testCreateUser_halNotSupported_success()
1303 verify(mUserHal, never()).createUser(any(), anyInt(), any()); in testCreateUser_halNotSupported_success()
1315 mCarUserService.createUser("dude", UserManager.USER_TYPE_FULL_GUEST, in testCreateUser_success()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java872 () -> myHalService.createUser(new CreateUserRequest(), TIMEOUT_MS, noOpCallback())); in testCreateUser_noHalSupported()
878 .createUser(null, TIMEOUT_MS, noOpCallback())); in testCreateUser_noRequest()
884 .createUser(new CreateUserRequest(), 0, noOpCallback())); in testCreateUser_invalidTimeout()
886 .createUser(new CreateUserRequest(), -1, noOpCallback())); in testCreateUser_invalidTimeout()
896 .createUser(request, TIMEOUT_MS, null)); in testCreateUser_noCallback()
916 mUserHalService.createUser(newValidCreateUserRequest(), TIMEOUT_MS, callback); in testCreateUser_halSetTimedOut()
931 mUserHalService.createUser(newValidCreateUserRequest(), TIMEOUT_MS, callback); in testCreateUser_halDidNotReply()
948 mUserHalService.createUser(newValidCreateUserRequest(), TIMEOUT_MS, callback); in testCreateUser_halReplyWithWrongRequestId()
969 mUserHalService.createUser(request, TIMEOUT_MS, callback); in testCreateUser_success()
998 mUserHalService.createUser(request, TIMEOUT_MS, callback); in testCreateUser_failure()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java104 verify(mUserManager).createUser(TEST_USER_NAME, NO_FLAGS); in testCreateNewNonAdminUser()
106 doReturn(null).when(mUserManager).createUser(TEST_USER_NAME, NO_FLAGS); in testCreateNewNonAdminUser()
111 doReturn(newUser).when(mUserManager).createUser(TEST_USER_NAME, NO_FLAGS); in testCreateNewNonAdminUser()
164 doReturn(newNonAdmin).when(mUserManager).createUser(testUserName, NO_FLAGS); in testDefaultNonAdminRestrictions()
DInitialUserSetterTest.java805 when(mUm.createUser(name, type, flags)).thenReturn(userInfo); in expectCreateUserOfType()
812 when(mUm.createUser(eq(name), anyString(), eq(userId))) in expectCreateUserThrowsException()
836 verify(mUm, never()).createUser(anyString(), anyString(), anyInt()); in verifyUserNeverCreated()
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java253 public AndroidFuture<UserCreationResult> createUser(@Nullable String name, in createUser() method in CarUserManager
276 mService.createUser(name, userType, flags, HAL_TIMEOUT_MS, future); in createUser()
294 return createUser(name, UserManager.USER_TYPE_FULL_GUEST, /* flags= */ 0); in createGuest()
304 public AndroidFuture<UserCreationResult> createUser(@Nullable String name, in createUser() method in CarUserManager
306 return createUser(name, UserManager.USER_TYPE_FULL_SECONDARY, flags); in createUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserHelperTest.java342 verify(mMockCarUserManager).createUser(DEFAULT_ADMIN_NAME, UserInfo.FLAG_ADMIN); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser()
363 verify(mMockCarUserManager).createUser(DEFAULT_ADMIN_NAME, UserInfo.FLAG_ADMIN); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser()
497 when(mMockCarUserManager.createUser(any(), anyInt())).thenReturn(future); in mockCreateUserFail()
504 when(mMockCarUserManager.createUser(name, flag)).thenReturn(future); in mockCreateUser()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DUserAdapter.java99 final View row = convertView != null ? convertView : createUser(parent); in getDropDownView()
117 private View createUser(ViewGroup parent) { in createUser() method in UserAdapter
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/
DUserAdapter.java99 final View row = convertView != null ? convertView : createUser(parent); in getDropDownView()
117 private View createUser(ViewGroup parent) { in createUser() method in UserAdapter
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java178 when(um.createUser(name, userType, flags)).thenReturn(userInfo); in mockUmCreateUser()
189 when(um.createUser(name, userType, flags)).thenThrow(e); in mockUmCreateUser()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java115 createUser(/* restricted= */ true); in onViewCreated()
119 createUser(/* restricted= */ false); in onViewCreated()
185 private void createUser(boolean restricted) { in createUser() method in ProfileUserFragment
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java633 createUser(args, writer); in exec()
1027 private void createUser(String[] args, PrintWriter writer) {
1069 .createUser(name, userType, flags);
1092 android.content.pm.UserInfo newUser = um.createUser(name, userType, flags);
1107 userHal.createUser(request, timeout, (status, resp) -> {
/packages/services/Car/car-lib/src/android/car/
DICarUserService.aidl34 void createUser(@nullable String name, String userType, int flags, int timeoutMs, in createUser() method
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/user/
DCarUserManagerPermissionTest.java79 () -> mCarUserManager.createUser(null, UserManager.USER_TYPE_FULL_SECONDARY, 0)); in testCreateUserPermission()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java423 createUser(name, UserInfo.getDefaultUserType(flags), flags, mHalTimeoutMs, future); in createDriver()
997 public void createUser(@Nullable String name, @NonNull String userType, @UserInfoFlag int flags, in createUser() method
1007 newUser = mUserManager.createUser(name, userType, flags); in createUser()
1043 mHal.createUser(request, timeoutMs, (status, resp) -> { in createUser()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java292 UserInfo user = mUserManager.createUser(userName, 0); in createNewNonAdminUser()
DInitialUserSetter.java503 UserInfo userInfo = mUm.createUser(name, type, flags); in createNewUser()
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java221 int userId = device.createUser("TimeZoneTest", false /* guest */, false /* ephemeral */); in testInstallNewerRulesVersion_secondaryUser()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserHelper.java218 mCarUserManager.createUser(userName, UserInfo.FLAG_ADMIN); in createNewAdminUser()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerTest.java329 : sUserManager.createUser(name, /* flags= */ 0); in createNewUser()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java813 UserInfo userInfo = mUserManager.createUser( in doInBackground()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java475 UserInfo newUserInfo = mUserManager.createUser(mAddingUserName, 0); in createTrustedUser()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java774 user = mUserManager.createUser(username, 0);
/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java417 public void createUser(@NonNull CreateUserRequest request, int timeoutMs, in createUser() method in UserHalService