/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
DisallowAddUserTask.java | 57 ProvisionLogger.logi("Not setting DISALLOW_ADD_USER as system device-owner detected."); 64 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { 65 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle); 66 ProvisionLogger.logi("DISALLOW_ADD_USER restriction set on user: " + userInfo.id);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
DisallowAddUserTaskTest.java | 81 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, 95 when(mockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, 120 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, 122 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerServiceMigrationTest.java | 86 UserManager.DISALLOW_ADD_USER, 92 UserManager.DISALLOW_ADD_USER, 101 UserManager.DISALLOW_ADD_USER, 159 UserManager.DISALLOW_ADD_USER, 169 UserManager.DISALLOW_ADD_USER, 180 UserManager.DISALLOW_ADD_USER, 215 UserManager.DISALLOW_ADD_USER, 266 UserManager.DISALLOW_ADD_USER,
|
DevicePolicyManagerTest.java | [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
UserCapabilities.java | 64 UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); 66 context, UserManager.DISALLOW_ADD_USER, UserHandle.myUserId());
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ |
DeviceOwnerUserRestrictionsTest.java | 38 UserManager.DISALLOW_ADD_USER,
|
SecondaryProfileOwnerUserRestrictionsTest.java | 53 UserManager.DISALLOW_ADD_USER,
|
BaseUserRestrictionsTest.java | 50 UserManager.DISALLOW_ADD_USER, 81 UserManager.DISALLOW_ADD_USER,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserRestrictionsUtilsTest.java | 91 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); 101 UserManager.DISALLOW_ADD_USER, user)); 111 UserManager.DISALLOW_ADD_USER, user)); 238 globalRestrictions.put(1, newRestrictions(UserManager.DISALLOW_ADD_USER)); 256 newRestrictions(UserManager.ENSURE_VERIFY_APPS, UserManager.DISALLOW_ADD_USER),
|
UserManagerTest.java | 245 // Make sure createUser would fail if we have DISALLOW_ADD_USER. 250 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); 255 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, 294 // createProfile succeeds even if DISALLOW_ADD_USER is set 299 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); 305 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false,
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
CreateAndManageUserTest.java | 69 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_ADD_USER); 260 // createAndManageUser should circumvent the DISALLOW_ADD_USER restriction 262 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_ADD_USER);
|
/frameworks/base/core/java/com/android/internal/app/ |
ConfirmUserCreationActivity.java | 99 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
UserRestrictions.java | 34 UserManager.DISALLOW_ADD_USER, 58 R.string.disallow_add_user, 198 case UserManager.DISALLOW_ADD_USER:
|
/frameworks/base/services/core/java/com/android/server/pm/ |
UserRestrictionsUtils.java | 86 UserManager.DISALLOW_ADD_USER, 132 UserManager.DISALLOW_ADD_USER,
|
UserManagerService.java | [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
UserSwitcherController.java | 245 UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM); 765 UserManager.DISALLOW_ADD_USER, ActivityManager.getCurrentUser()); 767 UserManager.DISALLOW_ADD_USER, ActivityManager.getCurrentUser())) { [all...] |
/frameworks/base/core/java/android/os/ |
UserManager.java | 377 public static final String DISALLOW_ADD_USER = "no_add_user"; [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
DevicePolicyManagerService.java | [all...] |
/prebuilts/sdk/21/ |
android.jar | |
/prebuilts/sdk/24/ |
android.jar | |
/prebuilts/sdk/25/ |
android.jar | |