/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserInfoTest.java | 102 data.info = createUser(); in testWriteReadUserInfo() 117 UserInfo info = createUser(); in testParcelUnparcelUserInfo() 135 UserInfo info = createUser(); in testCopyConstructor() 150 userInfo = createUser(); in testGetUserName() 168 UserInfo userInfo = createUser(testId, 0, typeName); in testIsUserOfType() 176 UserInfo userInfo = createUser(100, FLAG_FULL, null); in testSupportSwitchTo_partial() 185 UserInfo userInfo = createUser(100, FLAG_DISABLED, null); in testSupportSwitchTo_disabled() 193 UserInfo userInfo = createUser(100, FLAG_FULL, null); in testSupportSwitchTo_preCreated() 205 UserInfo userInfo = createUser(100, FLAG_PROFILE, null); in testSupportSwitchTo_profile() 216 mUserManagerService.putUserInfo(createUser(100, FLAG_MANAGED_PROFILE, null)); in testUpgradeIfNecessaryLP_9() [all …]
|
D | UserManagerTest.java | 149 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddGuest() 201 UserInfo user1 = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAdd2Users() 202 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users() 256 final UserInfo user = createUser("User " + usersAdded, userType, 0); in testAddTooManyUsers() 268 assertThat(createUser("User beyond", userType, 0)).isNull(); in testAddTooManyUsers() 274 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUser() 283 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUserByHandle() 314 final UserInfo user1 = createUser("User 1", /* flags= */ 0); in testRemoveUserWhenPossible_restrictedReturnsError() 334 final UserInfo user1 = createUser("User 1", /* flags= */ 0); in testRemoveUserWhenPossible_evenWhenRestricted() 376 final UserInfo user1 = createUser("User 1", /* flags= */ 0); in testRemoveUserWhenPossible_currentUserSetEphemeral() [all …]
|
D | UserManagerServiceTest.java | 102 UserInfo user = um.createUser("Test User", 0); in testAddUserWithAccount()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Element.java | 324 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN() 342 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8() 360 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8() 371 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16); in U16() 382 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16() 393 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32); in U32() 404 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32() 415 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64); in U64() 426 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64() 437 rs.mElement_F16 = createUser(rs, DataType.FLOAT_16); in F16() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Element.java | 324 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN() 338 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8() 352 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8() 359 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16); in U16() 366 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16() 373 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32); in U32() 380 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32() 387 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64); in U64() 394 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64() 401 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); in F32() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ |
D | UserCreatorTest.kt | 47 Mockito.`when`(userManager.createUser(USER_NAME, UserManager.USER_TYPE_FULL_SECONDARY, 0)) in setUp() 56 userCreator.createUser( in testCreateUser_threadingOrder() 62 verify(userManager, never()).createUser(USER_NAME, UserManager.USER_TYPE_FULL_SECONDARY, 0) in testCreateUser_threadingOrder() 69 verify(userManager).createUser(USER_NAME, UserManager.USER_TYPE_FULL_SECONDARY, 0) in testCreateUser_threadingOrder()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | SecondaryUserContentResolverTest.java | 42 protected UserInfo createUser() throws RemoteException { in createUser() method in SecondaryUserContentResolverTest 43 return mUm.createUser("Secondary user", 0); in createUser()
|
D | ManagedUserContentResolverTest.java | 44 protected UserInfo createUser() throws RemoteException { in createUser() method in ManagedUserContentResolverTest
|
D | AbstractCrossUserContentResolverTest.java | 66 final UserInfo userInfo = createUser(); in setUp() 83 protected abstract UserInfo createUser() throws RemoteException ; in createUser() method in AbstractCrossUserContentResolverTest
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPersisterTest.java | 61 mTestUserId = createUser(TEST_USER_NAME, UserInfo.FLAG_GUEST); in setUp() 89 private int createUser(String name, int flags) { in createUser() method in TaskPersisterTest 90 UserInfo user = mUserManager.createUser(name, flags); in createUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ |
D | UserCreator.kt | 48 fun createUser( in createUser() method 59 val user = userManager.createUser(userName, UserManager.USER_TYPE_FULL_SECONDARY, 0) in createUser()
|
D | CreateUserActivity.java | 158 mUserCreator.createUser(userName, userIcon, in addUserNow()
|
/frameworks/base/tests/MultiUser/src/com/android/test/multiuser/ |
D | MultiUserSettingsTests.java | 87 final int backgroundUserId = userManager.createUser("test_user", in testChangingFontScaleOfABackgroundUser_shouldNotAffectUI() 111 final int backgroundUserId = userManager.createUser("test_user", in testChangingFontWeightOfABackgroundUser_shouldNotAffectUI()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/settings/ |
D | ControlsSettingsRepositoryImplTest.kt | 47 private fun createUser(id: Int): UserInfo { in createUser() method 51 private val ALL_USERS = (0..1).map { it to createUser(it) }.toMap() in <lambda>()
|
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/ |
D | KernelPackageMappingTests.java | 102 mSecondaryUser = getUserManager().createUser("Secondary", 0); in testNotInstalledSecondary()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/ |
D | BluetoothEventManagerIntegTest.java | 72 mOtherUser = mUserManager.createUser("TestUser", /* flags= */ 0); in setUp()
|
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/ |
D | MultiUserRollbackTest.java | 144 mSecondaryUserId = getDevice().createUser(name); in createAndStartSecondaryUser()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ConfirmUserCreationActivity.java | 133 UserInfo user = mUserManager.createUser(mUserName, USER_TYPE, 0); in onClick()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsUserLifecycleTests.java | 75 final UserInfo user = mUm.createUser("Test_user_" + System.currentTimeMillis() / 1000, 0); in setUp()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | InstallNonMarketAppsDeprecationTest.java | 119 UserInfo newUser = mUm.createUser("TEST_USER", 0); in testValueForNewUser()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/ |
D | PackageManagerServiceTest.java | 521 userId = um.createUser("Test User", 0 /* flags */).getUserHandle().getIdentifier(); in testInstallReason_userRemainsUninstalled_keepUnknown() 546 userId = um.createUser("Test User", 0 /* flags */).getUserHandle().getIdentifier(); in testInstallReason_installForAllUsers_sameReason() 572 userId = um.createUser("Test User", 0 /* flags */).getUserHandle().getIdentifier(); in testInstallReason_installSeparately_withSeparatedReason()
|
/frameworks/rs/cpp/ |
D | Element.cpp | 76 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \ 318 android::RSC::sp<const Element> Element::createUser(const android::RSC::sp<RS>& rs, RsDataType dt) { in createUser() function in Element
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 176 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser() 241 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserLifecycleTests.java | 157 public void createUser() { in createUser() method in UserLifecycleTests 625 int userId = mUm.createUser(TEST_USER_NAME, flags).id; in createUserWithFlags()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 3295 public @Nullable UserInfo createUser(@Nullable String name, @UserInfoFlag int flags) { in createUser() method in UserManager 3296 return createUser(name, UserInfo.getDefaultUserType(flags), flags); in createUser() 3320 public @Nullable UserInfo createUser(@Nullable String name, @NonNull String userType, in createUser() method in UserManager 3341 public @NonNull NewUserResponse createUser(@NonNull NewUserRequest newUserRequest) { in createUser() method in UserManager
|