Home
last modified time | relevance | path

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

/packages/services/Car/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java43 return new UserInfoBuilder(userId).build(); in newUser()
69 return new UserInfoBuilder(userId).setType(UserManager.USER_TYPE_FULL_SECONDARY).build(); in newSecondaryUser()
77 return new UserInfoBuilder(userId).setGuest(true).setEphemeral(ephemeral).build(); in newGuestUser()
85 return new UserInfoBuilder(userId).setGuest(true).build(); in newGuestUser()
120 public static final class UserInfoBuilder { class in UserTestingHelper
143 public UserInfoBuilder(@UserIdInt int userId) { in UserInfoBuilder() method in UserTestingHelper.UserInfoBuilder
151 public UserInfoBuilder setName(@Nullable String name) { in setName()
160 public UserInfoBuilder setType(@Nullable String type) { in setType()
171 public UserInfoBuilder setGuest(boolean guest) { in setGuest()
182 public UserInfoBuilder setFlags(@UserInfoFlag int flags) { in setFlags()
[all …]
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java31 import android.car.test.util.UserTestingHelper.UserInfoBuilder;
95 UserInfo user = new UserTestingHelper.UserInfoBuilder(userId).setFlags(flags).build(); in mockUmGetUserInfo()
113 UserInfo user = new UserTestingHelper.UserInfoBuilder(UserHandle.USER_SYSTEM) in mockUmGetSystemUser()
167 UserInfo userInfo = new UserInfoBuilder(userId) in mockUmCreateUser()
/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;
98 UserInfo user = new UserInfoBuilder(100).build(); in testCreateUser_success()
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/
DCarWatchdogServiceTest.java22 import static android.car.test.util.UserTestingHelper.UserInfoBuilder;
80 new UserInfoBuilder(10).setName("user 1").build(),
81 new UserInfoBuilder(11).setName("user 2").build()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserPreCreatorTest.java36 import android.car.test.util.UserTestingHelper.UserInfoBuilder;
223 UserInfo user = new UserInfoBuilder(userId) in expectPreCreatedUser()
DCarUserServiceTest.java24 import static android.car.test.util.UserTestingHelper.UserInfoBuilder;
204 private final @NonNull UserInfo mAdminUser = new UserInfoBuilder(100)
207 private final @NonNull UserInfo mAnotherAdminUser = new UserInfoBuilder(108)
210 private final @NonNull UserInfo mGuestUser = new UserInfoBuilder(111)
214 private final @NonNull UserInfo mRegularUser = new UserInfoBuilder(222)
216 private final @NonNull UserInfo mAnotherRegularUser = new UserInfoBuilder(333)
991 mockRemoveUser(new UserInfoBuilder(targetUserId).build(), UserManager.REMOVE_RESULT_ERROR); in testRemoveUser_androidFailure()
1838 UserInfo user = new UserInfoBuilder(100) in testCreateUserEvenWhenDisallowed_success()
DCarUserManagerUnitTest.java624 UserInfo newUser = new UserTestingHelper.UserInfoBuilder(108) in expectServiceCreateUserSucceeds()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DUserHalHelperTest.java49 import android.car.test.util.UserTestingHelper.UserInfoBuilder;
1199 UserInfo user100 = new UserInfoBuilder(100).setFlags(UserInfo.FLAG_ADMIN).build(); in testNewUsersInfo_ok()
1200 UserInfo user200 = new UserInfoBuilder(200).build(); in testNewUsersInfo_ok()
1222 UserInfo user100 = new UserInfoBuilder(100).setFlags(UserInfo.FLAG_ADMIN).build(); in testNewUsersInfo_currentUser_ok()
1223 UserInfo user200 = new UserInfoBuilder(200).build(); in testNewUsersInfo_currentUser_ok()
1246 UserInfo user100 = new UserInfoBuilder(100).setFlags(UserInfo.FLAG_ADMIN).build(); in testNewUsersInfo_noCurrentUser()
1247 UserInfo user200 = new UserInfoBuilder(200).build(); in testNewUsersInfo_noCurrentUser()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java128 UserInfo expectedUser = new UserTestingHelper.UserInfoBuilder(UserHandle.USER_SYSTEM) in testMockUmGetSystemUser()