Home
last modified time | relevance | path

Searched refs:setUserRestriction (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DInstallNonMarketAppsDeprecationTest.java137 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, !mHasUserRestriction); in testValueRespectsUserRestriction()
143 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, mHasUserRestriction); in testValueRespectsUserRestriction()
156 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, in tearDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java461 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, creatorHandle); in testCreateUser_disallowAddUser()
466 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateUser_disallowAddUser()
478 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, in testCreateProfileForUser_disallowAddManagedProfile()
485 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, in testCreateProfileForUser_disallowAddManagedProfile()
497 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, in testCreateProfileForUserEvenWhenDisallowed()
504 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, in testCreateProfileForUserEvenWhenDisallowed()
516 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); in testCreateProfileForUser_disallowAddUser()
522 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateProfileForUser_disallowAddUser()
678 mUserManager.setUserRestriction( in testRestrictions()
680 mUserManager.setUserRestriction( in testRestrictions()
/frameworks/base/services/core/java/com/android/server/oemlock/
DPersistentDataBlockLock.java56 UserManager.get(mContext).setUserRestriction( in setOemUnlockAllowedByCarrier()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DInjectedSetting.java173 public Builder setUserRestriction(String userRestriction) { in setUserRestriction() method in InjectedSetting.Builder
DSettingsInjector.java292 .setUserRestriction(userRestriction) in parseAttributes()
/frameworks/base/core/java/android/os/
DIUserManager.aidl83 void setUserRestriction(String key, boolean value, int userId); in setUserRestriction() method
DUserManager.java2526 public void setUserRestriction(String key, boolean value) { in setUserRestriction() method in UserManager
2527 setUserRestriction(key, value, Process.myUserHandle()); in setUserRestriction()
2543 public void setUserRestriction(String key, boolean value, UserHandle userHandle) { in setUserRestriction() method in UserManager
2545 mService.setUserRestriction(key, value, userHandle.getIdentifier()); in setUserRestriction()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl90 …void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, in String[] e… in setUserRestriction() method
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl221 void setUserRestriction(in ComponentName who, in String key, boolean enable, boolean parent); in setUserRestriction() method
DDevicePolicyManager.java8367 mService.setUserRestriction(admin, key, true, mParentInstance); in addUserRestriction()
8394 mService.setUserRestriction(admin, key, false, mParentInstance); in clearUserRestriction()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2064 public void setUserRestriction(String key, boolean value, @UserIdInt int userId) { in setUserRestriction() method in UserManagerService
2671 setUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, true, currentGuestUser.id); in upgradeIfNecessaryLP()
3719 setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user.id); in createRestrictedProfileWithThrow()
3725 setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user.id); in createRestrictedProfileWithThrow()
DPackageManagerShellCommand.java2716 um.setUserRestriction(restriction, value, translatedUserId); in runSetUserRestriction()
/frameworks/base/core/java/android/app/
DAppOpsManager.java6679 public void setUserRestriction(int code, boolean restricted, IBinder token) { in setUserRestriction() method in AppOpsManager
6680 setUserRestriction(code, restricted, token, /*exceptionPackages*/null); in setUserRestriction()
6684 public void setUserRestriction(int code, boolean restricted, IBinder token, in setUserRestriction() method in AppOpsManager
6693 mService.setUserRestriction(code, restricted, token, userId, exceptionPackages); in setUserRestrictionForUser()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java6633 UserManagerService.getInstance().setUserRestriction( in onReceive()
6638 UserManagerService.getInstance().setUserRestriction( in onReceive()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java5666 public void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, in setUserRestriction() method
/frameworks/base/services/
Dart-profile8278 HPLcom/android/server/appop/AppOpsService;->setUserRestriction(IZLandroid/os/IBinder;I[Ljava/lang/S…
14531 HPLcom/android/server/devicepolicy/DevicePolicyManagerService;->setUserRestriction(Landroid/content…
26637 HSPLcom/android/server/pm/UserManagerService;->setUserRestriction(Ljava/lang/String;ZI)V
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22383 method public deprecated void setUserRestriction(java.lang.String, boolean);
/frameworks/base/config/
Dboot-image-profile.txt3491 HPLandroid/app/admin/IDevicePolicyManager$Stub;->onTransact$setUserRestriction$(Landroid/os/Parcel;…
/frameworks/base/api/
Dcurrent.txt37022 …@RequiresPermission("android.permission.MANAGE_USERS") public void setUserRestriction(String, bool…