/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
UserRestrictionTest.java | 29 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true); 33 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false); 37 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, true); 41 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, false); 45 setUserRestriction(UserManager.DISALLOW_REMOVE_USER, true); 49 setUserRestriction(UserManager.DISALLOW_REMOVE_USER, false); 52 private void setUserRestriction(String restriction, boolean add) {
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
DisallowAddUserTaskTest.java | 81 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, 103 verify(mockUserManager, never()).setUserRestriction(anyString(), anyBoolean(), 120 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, 122 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, 138 verify(mockUserManager, never()).setUserRestriction(anyString(), anyBoolean(),
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
InstallNonMarketAppsDeprecationTest.java | 134 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, !mHasUserRestriction); 140 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, mHasUserRestriction); 151 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
|
/frameworks/base/services/core/java/com/android/server/oemlock/ |
PersistentDataBlockLock.java | 50 UserManager.get(mContext).setUserRestriction(
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
DisallowAddUserTask.java | 65 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle);
|
ManagedProfileSettingsTask.java | 67 um.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true, UserHandle.of(userId));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerTest.java | 250 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); 255 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, 265 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, 272 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, 282 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, 289 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, 299 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); 305 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, 441 mUserManager.setUserRestriction( 443 mUserManager.setUserRestriction( [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
IAppOpsService.aidl | 49 void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, in String[] exceptionPackages);
|
/packages/apps/Settings/src/com/android/settings/users/ |
RestrictionUtils.java | 82 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user);
|
UserDetailsSettings.java | 153 mUserManager.setUserRestriction( 160 mUserManager.setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, !enabled, 162 mUserManager.setUserRestriction(UserManager.DISALLOW_SMS, !enabled, userHandle);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
RestrictionUtils.java | 74 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user);
|
/frameworks/base/core/java/android/os/ |
IUserManager.aidl | 70 void setUserRestriction(String key, boolean value, int userHandle);
|
UserManager.java | [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/ |
OtaController.java | 114 mUserManager.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true,
|
/frameworks/base/core/java/android/app/ |
AppOpsManager.java | [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
OtaControllerTest.java | 155 verify(mUserManager).setUserRestriction(UserManager.DISALLOW_WALLPAPER, true,
|
/packages/apps/Settings/src/com/android/settings/ |
DeviceAdminAdd.java | 490 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, true, mToken); 491 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, true, mToken); 500 mAppOps.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, false, mToken); 501 mAppOps.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW, false, mToken);
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationSettings.java | 400 mUm.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION,
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
SecurityFragment.java | 512 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user);
|
/frameworks/base/core/java/android/app/admin/ |
IDevicePolicyManager.aidl | 190 void setUserRestriction(in ComponentName who, in String key, boolean enable);
|
DevicePolicyManager.java | [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
UserManagerService.java | 495 setUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, true, currentGuestUser.id); [all...] |
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
Pm.java | [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
DevicePolicyManagerService.java | [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
AudioService.java | [all...] |