Home
last modified time | relevance | path

Searched refs:addUser (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java288 addUser(USER_ID); in testIsUserRunning_StartedUserShouldReturnTrue()
297 addUser(USER_ID); in testIsUserRunning_StoppedUserShouldReturnFalse()
324 addUser(USER_ID); in testSetBootUser_SuppliedUserIsSwitchable()
325 addUser(OTHER_USER_ID); in testSetBootUser_SuppliedUserIsSwitchable()
336 addUser(USER_ID); in testSetBootUser_NotHeadless_SuppliedUserIsNotSwitchable()
337 addUser(OTHER_USER_ID); in testSetBootUser_NotHeadless_SuppliedUserIsNotSwitchable()
350 addUser(USER_ID); in testSetBootUser_Headless_SuppliedUserIsNotSwitchable()
352 addUser(OTHER_USER_ID); in testSetBootUser_Headless_SuppliedUserIsNotSwitchable()
365 addUser(USER_ID); in testGetBootUser_NotHeadless_ReturnsSystemUser()
366 addUser(OTHER_USER_ID); in testGetBootUser_NotHeadless_ReturnsSystemUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DAppHibernationServiceTest.java159 UserInfo userInfo = addUser(USER_ID_1); in setUp()
196 UserInfo user2 = addUser(USER_ID_2); in testSetHibernatingForUser_newUserUnlocked_packageIsHibernating()
235 addUser(USER_ID_2, new String[]{PACKAGE_NAME_1, PACKAGE_NAME_2, PACKAGE_NAME_3}); in testGetHibernatingPackagesForUser_returnsCorrectPackages()
257 addUser(USER_ID_2, new String[]{PACKAGE_NAME_1, PACKAGE_NAME_2, PACKAGE_NAME_3}); in testGetHibernatingPackagesForUser_doesNotReturnPackagesThatArentVisible()
289 UserInfo user2 = addUser(USER_ID_2, packageInfos); in testUserLevelStatesInitializedFromDisk()
306 UserInfo user2 = addUser(USER_ID_2, new String[]{PACKAGE_NAME_1}); in testNonForceStoppedAppsNotHibernatedOnUnlock()
321 UserInfo user2 = addUser(USER_ID_2); in testUnhibernatedPackageForUserUnhibernatesPackageGloballyOnUnlock()
464 addUser(USER_ID_2, new String[]{PACKAGE_NAME_1, PACKAGE_NAME_2, PACKAGE_NAME_3}); in testGetHibernationStatsForUser_returnsAllIfNoPackagesSpecified()
499 private UserInfo addUser(int userId) throws RemoteException { in addUser() method in AppHibernationServiceTest
500 return addUser(userId, new String[]{PACKAGE_NAME_1}); in addUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java87 UserInfo secondaryUser = addUser(); in testGetProfiles()
110 UserInfo secondaryUser = addUser(); in testGetProfileIds_specifyType()
142 UserInfo secondaryUser = addUser(); in testProfileBadge()
185 UserInfo secondaryUser = addUser(); in testProfileBadgeReuse()
343 private UserInfo addUser() { in addUser() method in UserManagerServiceCreateProfileTest
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DPolicyVersionUpgraderTest.java160 getServices().addUser(10, /* flags= */ 0, USER_TYPE_PROFILE_MANAGED); in testUpgrade0To1RemovesPasswordMetrics()
181 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testUpgrade1To2MarksDoForPermissionControl()
200 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testNoStaleDataInCacheAfterUpgrade()
236 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testUserControlDisabledPackagesFromR()
262 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testUserControlDisabledPackagesFromS()
282 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testAdminPackageSuspensionSaved()
DMockSystemServices.java240 systemUserDataDir = addUser(UserHandle.USER_SYSTEM, in MockSystemServices()
276 public File addUser(int userId, int flags, String type) { in addUser() method in MockSystemServices
277 return addUser(userId, flags, type, UserInfo.NO_PROFILE_GROUP_ID); in addUser()
280 public File addUser(int userId, int flags, String type, int profileGroupId) { in addUser() method in MockSystemServices
389 addUser(userId, 0, ""); in addUsers()
DDevicePolicyManagerServiceMigrationTest.java91 final File user10dir = getServices().addUser(10, 0, in testMigration_managedProfileOwner()
317 final File profileDir = getServices().addUser(profileUserId, 0, in preparePo()
DDevicePolicyManagerTest.java398 getServices().addUser(CALLER_USER_HANDLE, 0, UserManager.USER_TYPE_FULL_SECONDARY); in setUpUserManager()
462 getServices().addUser(ANOTHER_USER_ID, 0, ""); in testLoadAdminData_noAdmins()
614 getServices().addUser(ANOTHER_USER_ID, 0, ""); // Add one more user. in testSetActiveAdmin_multiUsers()
1631 getServices().addUser(ANOTHER_USER_ID, 0, ""); // Add one more user. in checkDeviceOwnerWithMultipleDeviceAdmins()
3772 getServices().addUser(userId, 0, UserManager.USER_TYPE_PROFILE_MANAGED, in testCheckCannotSetProfileOwnerWithDeviceOwner()
4736 getServices().addUser(ANOTHER_USER_ID, 0, UserManager.USER_TYPE_FULL_SECONDARY); in testGetBindDeviceAdminTargetUsers()
6673 getServices().addUser(DpmMockContext.CALLER_USER_HANDLE, 0, in testRevertProfileOwnership_adminAndProfileMigrated()
6687 getServices().addUser(DpmMockContext.CALLER_USER_HANDLE, 0, in testRevertProfileOwnership_profileNotMigrated()
6700 getServices().addUser(CALLER_USER_HANDLE, 0, in testRevertProfileOwnership_adminAndProfileNotMigrated()
8801 getServices().addUser(userId, 0, UserManager.USER_TYPE_PROFILE_MANAGED,
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DWebViewUpdateServiceTest.java664 mTestSystemImpl.addUser(secondaryUserId); in checkRemovingSecondarySelectsPrimary()
716 mTestSystemImpl.addUser(newUser); in testAddingNewUserWithUninstalledPackage()
1173 mTestSystemImpl.addUser(secondaryUserId); in checkVisiblePackageUserOverNonVisible()
1225 mTestSystemImpl.addUser(secondaryUserId); in checkCantSwitchToNonVisiblePackage()
1282 mTestSystemImpl.addUser(secondaryUserId); in checkNonvisiblePackageNotPrioritizedEvenIfChosen()
1626 mTestSystemImpl.addUser(newUser); in testAddingNewUserWithDefaultdPackageNotInstalled()
DTestSystemImpl.java54 public void addUser(int userId) { in addUser() method in TestSystemImpl
/frameworks/base/core/java/android/os/
DBatteryUsageStatsQuery.java232 public Builder addUser(@NonNull UserHandle userHandle) { in addUser() method in BatteryUsageStatsQuery.Builder
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DRemoteTransitionHandler.java323 deathHandler.addUser(finishCallback); in handleDeath()
383 void addUser(@Nullable Transitions.TransitionFinishCallback finishCallback) { in addUser() method in RemoteTransitionHandler.RemoteDeathHandler
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DUserPowerCalculatorTest.java85 mStatsRule.apply(new BatteryUsageStatsQuery.Builder().addUser(UserHandle.of(USER1)).build(), in testSpecificUser()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceRoboTest.java113 mShadowUserManager.addUser(mUserOneId, "mUserOneId", 0); in setUp()
114 mShadowUserManager.addUser(mUserTwoId, "mUserTwoId", 0); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java712 private void addUser(int userId) { in addUser() method in ApplicationsState
1580 addUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL)); in onReceive()
/frameworks/base/services/core/java/com/android/server/am/
DAppBatteryTracker.java682 builder.addUser(userIds.valueAt(i)); in updateBatteryUsageStatsOnceInternal()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java4669 filter.addUser(Integer.parseInt(args[argIndex++]));
4714 void addUser(int userId) {