Home
last modified time | relevance | path

Searched refs:createUser (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java357 verify(mUserManager).createUser(TEST_USER_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserCallsCreateUser()
365 doReturn(null).when(mUserManager).createUser(TEST_USER_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserReturnsNullUsers()
376 doReturn(newUser).when(mUserManager).createUser(TEST_USER_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserReturnsCreatedUser()
386 verify(mUserManager).createUser(DEFAULT_ADMIN_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserWithDefaultUserNameCallsCreateUser()
394 doReturn(null).when(mUserManager).createUser(DEFAULT_ADMIN_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserWithDefaultUserNameReturnsNullUsers()
405 doReturn(newUser).when(mUserManager).createUser(DEFAULT_ADMIN_NAME, UserInfo.FLAG_ADMIN); in testCreateNewAdminUserWithDefaultUserNameReturnsCreatedUser()
414 doReturn(expectedAdmin).when(mUserManager).createUser(newAdminName, UserInfo.FLAG_ADMIN); in testAdminsCanCreateAdmins()
427 doReturn(expectedAdmin).when(mUserManager).createUser(newAdminName, UserInfo.FLAG_ADMIN); in testNonAdminsCanNotCreateAdmins()
440 doReturn(expectedAdmin).when(mUserManager).createUser(newAdminName, UserInfo.FLAG_ADMIN); in testSystemUserCanCreateAdmins()
452 verify(mUserManager).createUser(TEST_USER_NAME, 0); in testCreateNewNonAdminUser()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/
DUserAdapter.java99 final View row = convertView != null ? convertView : createUser(parent); in getDropDownView()
117 private View createUser(ViewGroup parent) { in createUser() method in UserAdapter
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DUserAdapter.java99 final View row = convertView != null ? convertView : createUser(parent); in getDropDownView()
117 private View createUser(ViewGroup parent) { in createUser() method in UserAdapter
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java798 UserInfo user = mUserManager.createUser(userName, UserInfo.FLAG_ADMIN); in createNewAdminUser()
817 UserInfo user = mUserManager.createUser(userName, 0); in createNewNonAdminUser()
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java221 int userId = device.createUser("TimeZoneTest", false /* guest */, false /* ephemeral */); in testInstallNewerRulesVersion_secondaryUser()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java747 UserInfo userInfo = mUserManager.createUser( in doInBackground()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java478 UserInfo newUserInfo = mUserManager.createUser(mAddingUserName, 0); in createTrustedUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java474 UserInfo newUserInfo = mUserManager.createUser(mAddingUserName, 0); in createTrustedUser()