Home
last modified time | relevance | path

Searched refs:newUserInfo (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalHelperTest.java1027 request.newUserInfo = null; in testCreateUserRequestToHalPropValue_nullNewUserInfo()
1061 request.newUserInfo = new UserInfo(); in testCreateUserRequestToHalPropValue_missingRequestId()
1062 request.newUserInfo.userId = 10; in testCreateUserRequestToHalPropValue_missingRequestId()
1063 request.usersInfo.existingUsers = new UserInfo[]{request.newUserInfo}; in testCreateUserRequestToHalPropValue_missingRequestId()
1074 request.newUserInfo.userId = 10; in testCreateUserRequestToHalPropValue_nullNewUserName()
1075 request.newUserInfo.flags = UserInfo.USER_FLAG_ADMIN; in testCreateUserRequestToHalPropValue_nullNewUserName()
1079 request.usersInfo.currentUser.userId = request.newUserInfo.userId; in testCreateUserRequestToHalPropValue_nullNewUserName()
1080 request.usersInfo.currentUser.flags = request.newUserInfo.flags; in testCreateUserRequestToHalPropValue_nullNewUserName()
1091 request.newUserInfo.userId = 10; in testCreateUserRequestToHalPropValue_usersInfoDoesNotContainNewUser()
1104 request.newUserInfo.userId = 10; in testCreateUserRequestToHalPropValue_newUserFlagsMismatch()
[all …]
DUserHalServiceTest.java1169 request.newUserInfo.userId = 10; in testCreateUser_noCallback()
1170 request.usersInfo.existingUsers = new UserInfo[]{request.newUserInfo}; in testCreateUser_noCallback()
1182 request.newUserInfo = mUser100; in newValidCreateUserRequest()
1243 request.newUserInfo = mUser100; in testCreateUser_success()
1281 request.newUserInfo = mUser100; in testCreateUser_failure()
2010 .isEqualTo(request.newUserInfo.userId); in assertHalSetCreateUserRequest()
2012 .isEqualTo(request.newUserInfo.flags); in assertHalSetCreateUserRequest()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerControllerTest.java246 UserInfo newUserInfo = new UserInfo(USER_ID_REAR + 1, "New", UserInfo.FLAG_FULL); in checkAddNewUser_pressAddUserIcon_createdUser() local
250 doReturn(newUserInfo.getUserHandle()).when(mCreateResult).getUser(); in checkAddNewUser_pressAddUserIcon_createdUser()
251 doReturn(newUserInfo).when(mMockUserEventManager) in checkAddNewUser_pressAddUserIcon_createdUser()
252 .getUserInfo(newUserInfo.getUserHandle().getIdentifier()); in checkAddNewUser_pressAddUserIcon_createdUser()
DUserPickerRecyclerViewTest.java248 UserInfo newUserInfo = new UserInfo(USER_ID_REAR + 1, newUsername, UserInfo.FLAG_FULL); in updateUserList_addUser_increaseUserCount()
249 UserRecord mNew = UserRecord.create(newUserInfo, /* mName= */ newUserInfo.name, in updateUserList_addUser_increaseUserCount()
252 /* mIcon= */ mMockUserIconProvider.getRoundedUserIcon(newUserInfo, mContext), in updateUserList_addUser_increaseUserCount()
/packages/services/Car/service/src/com/android/car/hal/
DUserHalHelper.java490 Objects.requireNonNull(request.newUserInfo, "NewUserInfo cannot be null"); in toHalPropValue()
500 if (user.userId == request.newUserInfo.userId) { in toHalPropValue()
508 Preconditions.checkArgument(request.newUserInfo.flags == newUserFlags, in toHalPropValue()
513 addUserInfo(intValues, request.newUserInfo); in toHalPropValue()
672 request.newUserInfo = new UserInfo(); in emptyCreateUserRequest()
DUserHalService.java473 UserHelperLite.safeName(request.newUserName), request.newUserInfo.flags, timeoutMs); in createUser()
479 request.newUserInfo.userId, request.newUserInfo.flags, timeoutMs); in createUser()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserPickerController.java145 UserInfo newUserInfo = mUserEventManager.getUserInfo(result.getUser().getIdentifier());
146 UserRecord userRecord = UserRecord.create(newUserInfo, newUserInfo.name,
149 /* icon= */ mUserIconProvider.getRoundedUserIcon(newUserInfo, mContext),
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java2094 assertThat(request.newUserInfo.userId).isEqualTo(userId); in testCreateUser_success()
2095 assertThat(request.newUserInfo.flags).isEqualTo( in testCreateUser_success()
2128 assertThat(request.newUserInfo.userId).isEqualTo(userId); in testCreateUser_guest_success()
2129 assertThat(request.newUserInfo.flags).isEqualTo( in testCreateUser_guest_success()
2227 assertThat(request.newUserInfo.userId).isEqualTo(userId); in testCreateUser_success_nullName()
2228 assertThat(request.newUserInfo.flags).isEqualTo( in testCreateUser_success_nullName()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java1475 request.newUserInfo.userId = newUser.getIdentifier(); in handleCreateUser()
1476 request.newUserInfo.flags = UserHalHelper.convertFlags(mUserHandleHelper, newUser); in handleCreateUser()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java2532 request.newUserInfo.userId = newUser.getIdentifier();
2533 request.newUserInfo.flags = UserHalHelper.convertFlags(new UserHandleHelper(mContext, um),