Home
last modified time | relevance | path

Searched refs:newUser (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DAddNewUserTaskTest.java61 UserInfo newUser = new UserInfo(10, newUserName, /* flags= */ 0); in testSwitchToNewUserIfUserCreated() local
62 when(mCarUserManagerHelper.createNewNonAdminUser(newUserName)).thenReturn(newUser); in testSwitchToNewUserIfUserCreated()
67 verify(mCarUserManagerHelper).switchToUser(newUser); in testSwitchToNewUserIfUserCreated()
73 UserInfo newUser = new UserInfo(10, newUserName, /* flags= */ 0); in testOnUserAddedSuccessCalledIfUserCreated() local
74 when(mCarUserManagerHelper.createNewNonAdminUser(newUserName)).thenReturn(newUser); in testOnUserAddedSuccessCalledIfUserCreated()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java374 UserInfo newUser = new UserInfo(); in testCreateNewAdminUserReturnsCreatedUser() local
375 newUser.name = TEST_USER_NAME; in testCreateNewAdminUserReturnsCreatedUser()
376 doReturn(newUser).when(mUserManager).createUser(TEST_USER_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserReturnsCreatedUser()
377 assertThat(mCarUserManagerHelper.createNewAdminUser(TEST_USER_NAME)).isEqualTo(newUser); in testCreateNewAdminUserReturnsCreatedUser()
403 UserInfo newUser = new UserInfo(); in testCreateNewAdminUserWithDefaultUserNameReturnsCreatedUser() local
404 newUser.name = DEFAULT_ADMIN_NAME; in testCreateNewAdminUserWithDefaultUserNameReturnsCreatedUser()
405 doReturn(newUser).when(mUserManager).createUser(DEFAULT_ADMIN_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserWithDefaultUserNameReturnsCreatedUser()
406 assertThat(mCarUserManagerHelper.createNewAdminUser()).isEqualTo(newUser); in testCreateNewAdminUserWithDefaultUserNameReturnsCreatedUser()
457 UserInfo newUser = new UserInfo(); in testCreateNewNonAdminUser() local
458 newUser.name = TEST_USER_NAME; in testCreateNewNonAdminUser()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java238 public static void prepareArgs(@NonNull Bundle bundle, int userId, boolean newUser) { in prepareArgs() argument
240 bundle.putBoolean(EXTRA_NEW_USER, newUser); in prepareArgs()
243 public static AppRestrictionsFragment newInstance(int userId, boolean newUser) { in newInstance() argument
245 prepareArgs(args, userId, newUser); in newInstance()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java485 private void onManageUserClicked(int userId, boolean newUser) { in onManageUserClicked() argument
502 extras.putBoolean(RestrictedProfileSettings.EXTRA_NEW_USER, newUser); in onManageUserClicked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java481 private void onManageUserClicked(int userId, boolean newUser) { in onManageUserClicked() argument
498 extras.putBoolean(RestrictedProfileSettings.EXTRA_NEW_USER, newUser); in onManageUserClicked()