Home
last modified time | relevance | path

Searched refs:UserInfoBuilder (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java100 return new UserInfoBuilder(userId).build(); in newUser()
109 return new UserInfoBuilder(userId).setName(userName).build(); in newUser()
153 return new UserInfoBuilder(userId).setType(UserManager.USER_TYPE_FULL_SECONDARY).build(); in newSecondaryUser()
161 return new UserInfoBuilder(userId).setGuest(true).setEphemeral(ephemeral).build(); in newGuestUser()
169 return new UserInfoBuilder(userId).setGuest(true).build(); in newGuestUser()
204 public static final class UserInfoBuilder { class in UserTestingHelper
226 public UserInfoBuilder(@UserIdInt int userId) { in UserInfoBuilder() method in UserTestingHelper.UserInfoBuilder
234 public UserInfoBuilder setName(@Nullable String name) { in setName()
243 public UserInfoBuilder setType(@Nullable String type) { in setType()
254 public UserInfoBuilder setGuest(boolean guest) { in setGuest()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCreateUserResultTest.java18 import static android.car.test.util.UserTestingHelper.UserInfoBuilder;
40 UserInfo user = new UserInfoBuilder(100).build(); in testSuccess()
DCarDevicePolicyManagerUnitTest.java32 import android.car.test.util.UserTestingHelper.UserInfoBuilder;
102 UserInfo user = new UserInfoBuilder(100).build(); in testCreateUser_success()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DCarArgumentMatchersTest.java76 UserTestingHelper.UserInfoBuilder userInfoBuilder = in testIsUserInfo()
77 new UserTestingHelper.UserInfoBuilder(USER_ID); in testIsUserInfo()
DAndroidMockitoHelperTest.java225 UserInfo expectedUser = new UserTestingHelper.UserInfoBuilder(UserHandle.USER_SYSTEM) in testMockUmGetSystemUser()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java250 UserInfo user = new UserTestingHelper.UserInfoBuilder(userId).setFlags(flags).build(); in mockUmGetUserInfo()
268 UserInfo user = new UserTestingHelper.UserInfoBuilder(UserHandle.USER_SYSTEM) in mockUmGetSystemUser()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/
DCarUserManagerUnitTest.java829 UserInfo newUser = new UserTestingHelper.UserInfoBuilder(108) in expectServiceCreateUserSucceeds()