Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java98 data.info = createUser(); in testWriteReadUserInfo()
113 UserInfo info = createUser(); in testParcelUnparcelUserInfo()
137 userInfo = createUser(); in testGetUserName()
155 UserInfo userInfo = createUser(testId, 0, typeName); in testIsUserOfType()
163 UserInfo userInfo = createUser(100, FLAG_FULL, null); in testSupportSwitchTo_preCreated()
175 UserInfo userInfo = createUser(100, FLAG_PROFILE, null); in testSupportSwitchTo_profile()
184 mUserManagerService.putUserInfo(createUser(100, FLAG_MANAGED_PROFILE, null)); in testUpgradeIfNecessaryLP_9()
185 mUserManagerService.putUserInfo(createUser(101, in testUpgradeIfNecessaryLP_9()
187 mUserManagerService.putUserInfo(createUser(102, FLAG_RESTRICTED | FLAG_FULL, null)); in testUpgradeIfNecessaryLP_9()
188 mUserManagerService.putUserInfo(createUser(103, FLAG_FULL, null)); in testUpgradeIfNecessaryLP_9()
[all …]
DUserManagerTest.java143 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddGuest()
161 UserInfo user1 = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAdd2Users()
162 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users()
175 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUser()
184 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUserByHandle()
245 final UserInfo userInfo = createUser("Name", userType, 0); in createUserWithTypeAndCheckFlags()
258 final UserInfo userInfo = createUser("Name", flags); in createUserWithFlagsAndCheckType()
271 UserInfo userInfo1 = createUser("Guest 1", UserInfo.FLAG_GUEST); in testThereCanBeOnlyOneGuest()
273 UserInfo userInfo2 = createUser("Guest 2", UserInfo.FLAG_GUEST); in testThereCanBeOnlyOneGuest()
280 UserInfo userInfo1 = createUser("Guest", UserInfo.FLAG_GUEST); in testFindExistingGuest_guestExists()
[all …]
DUserManagerServiceTest.java73 UserInfo user = um.createUser("Test User", 0); in testAddUserWithAccount()
DUserSystemPackageInstallerTest.java356 final UserInfo user = um.createUser("Test User", userTypeToCreate, 0); in testPackagesForCreateUser_full()
/frameworks/base/rs/java/android/renderscript/
DElement.java319 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
337 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
355 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8()
366 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16); in U16()
377 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16()
388 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32); in U32()
399 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32()
410 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64); in U64()
421 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64()
432 rs.mElement_F16 = createUser(rs, DataType.FLOAT_16); in F16()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java319 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
333 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
347 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8()
354 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16); in U16()
361 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16()
368 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32); in U32()
375 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32()
382 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64); in U64()
389 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64()
396 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); in F32()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DSecondaryUserContentResolverTest.java40 protected UserInfo createUser() throws RemoteException { in createUser() method in SecondaryUserContentResolverTest
41 return mUm.createUser("Secondary user", 0); in createUser()
DManagedUserContentResolverTest.java42 protected UserInfo createUser() throws RemoteException { in createUser() method in ManagedUserContentResolverTest
DAbstractCrossUserContentResolverTest.java62 final UserInfo userInfo = createUser(); in setUp()
80 protected abstract UserInfo createUser() throws RemoteException ; in createUser() method in AbstractCrossUserContentResolverTest
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPersisterTest.java61 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/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/
DMultiUserRollbackTest.java105 mSecondaryUserId = getDevice().createUser(name); in createAndStartSecondaryUser()
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/
DKernelPackageMappingTests.java102 mSecondaryUser = getUserManager().createUser("Secondary", 0); in testNotInstalledSecondary()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerIntegTest.java72 mOtherUser = mUserManager.createUser("TestUser", /* flags= */ 0); in setUp()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java129 UserInfo user = mUserManager.createUser(mUserName, 0); in onClick()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsUserLifecycleTests.java74 final UserInfo user = mUm.createUser("Test_user_" + System.currentTimeMillis() / 1000, 0); in setUp()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DInstallNonMarketAppsDeprecationTest.java119 UserInfo newUser = mUm.createUser("TEST_USER", 0); in testValueForNewUser()
/frameworks/rs/cpp/
DElement.cpp76 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
DrsCppStructs.h1373 static sp<const Element> createUser(const sp<RS>& rs, RsDataType dt);
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java132 public void createUser() { in createUser() method in UserLifecycleTests
554 int userId = mUm.createUser("TestUser", flags).id; in createUserWithFlags()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java176 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser()
297 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings()
/frameworks/base/core/java/android/os/
DUserManager.java2687 public @Nullable UserInfo createUser(@Nullable String name, @UserInfoFlag int flags) { in createUser() method in UserManager
2688 return createUser(name, UserInfo.getDefaultUserType(flags), flags); in createUser()
2711 public @Nullable UserInfo createUser(@Nullable String name, @NonNull String userType, in createUser() method in UserManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java927 UserInfo user = mUserManager.createUser( in onClick()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt5307 method public android.os.UserHandle createUser(android.content.ComponentName, java.lang.String);