Searched refs:UserInfoBuilder (Results 1 – 10 of 10) sorted by relevance
43 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 UserTestingHelper143 public UserInfoBuilder(@UserIdInt int userId) { in UserInfoBuilder() method in UserTestingHelper.UserInfoBuilder151 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 …]
31 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()
18 import static android.car.test.util.UserTestingHelper.UserInfoBuilder;40 UserInfo user = new UserInfoBuilder(100).build(); in testSuccess()
32 import android.car.test.util.UserTestingHelper.UserInfoBuilder;98 UserInfo user = new UserInfoBuilder(100).build(); in testCreateUser_success()
22 import static android.car.test.util.UserTestingHelper.UserInfoBuilder;80 new UserInfoBuilder(10).setName("user 1").build(),81 new UserInfoBuilder(11).setName("user 2").build()
36 import android.car.test.util.UserTestingHelper.UserInfoBuilder;223 UserInfo user = new UserInfoBuilder(userId) in expectPreCreatedUser()
24 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()
624 UserInfo newUser = new UserTestingHelper.UserInfoBuilder(108) in expectServiceCreateUserSucceeds()
49 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()
128 UserInfo expectedUser = new UserTestingHelper.UserInfoBuilder(UserHandle.USER_SYSTEM) in testMockUmGetSystemUser()