Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java310 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); in testCreateUser_disallowAddUser()
315 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateUser_disallowAddUser()
325 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, in testCreateProfileForUser_disallowAddManagedProfile()
332 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, in testCreateProfileForUser_disallowAddManagedProfile()
342 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, in testCreateProfileForUserEvenWhenDisallowed()
349 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, in testCreateProfileForUserEvenWhenDisallowed()
359 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); in testCreateProfileForUser_disallowAddUser()
365 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateProfileForUser_disallowAddUser()
506 mUserManager.setUserRestriction( in testRestrictions()
508 mUserManager.setUserRestriction( in testRestrictions()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DInstallNonMarketAppsDeprecationTest.java135 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, !mHasUserRestriction); in testValueRespectsUserRestriction()
141 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, mHasUserRestriction); in testValueRespectsUserRestriction()
152 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, in tearDown()
/frameworks/base/services/core/java/com/android/server/oemlock/
DPersistentDataBlockLock.java56 UserManager.get(mContext).setUserRestriction( in setOemUnlockAllowedByCarrier()
/frameworks/base/core/java/android/os/
DUserManager.java1912 public void setUserRestriction(String key, boolean value) { in setUserRestriction() method in UserManager
1913 setUserRestriction(key, value, Process.myUserHandle()); in setUserRestriction()
1929 public void setUserRestriction(String key, boolean value, UserHandle userHandle) { in setUserRestriction() method in UserManager
1931 mService.setUserRestriction(key, value, userHandle.getIdentifier()); in setUserRestriction()
2024 mService.setUserRestriction(DISALLOW_SMS, true, user.id); in createUser()
2025 mService.setUserRestriction(DISALLOW_OUTGOING_CALLS, true, user.id); in createUser()
DIUserManager.aidl77 void setUserRestriction(String key, boolean value, int userHandle); in setUserRestriction() method
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DInjectedSetting.java173 public Builder setUserRestriction(String userRestriction) { in setUserRestriction() method in InjectedSetting.Builder
DSettingsInjector.java286 .setUserRestriction(userRestriction) in parseAttributes()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl73 …void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, in String[] e… in setUserRestriction() method
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java570 setUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, true, currentGuestUser.id); in systemReady()
1065 setUserRestriction(UserManager.DISALLOW_SMS, false, userId); in setUserAdmin()
1066 setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, false, userId); in setUserAdmin()
1665 public void setUserRestriction(String key, boolean value, int userId) { in setUserRestriction() method in UserManagerService
2853 setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user.id); in createRestrictedProfile()
2859 setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user.id); in createRestrictedProfile()
3975 setUserRestriction(UserManager.DISALLOW_SMS, true, user.id); in createUserEvenWhenDisallowed()
3976 setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, true, user.id); in createUserEvenWhenDisallowed()
DPackageManagerShellCommand.java2349 um.setUserRestriction(restriction, value, userId); in runSetUserRestriction()
/frameworks/base/core/java/android/app/
DAppOpsManager.java4566 public void setUserRestriction(int code, boolean restricted, IBinder token) { in setUserRestriction() method in AppOpsManager
4567 setUserRestriction(code, restricted, token, /*exceptionPackages*/null); in setUserRestriction()
4571 public void setUserRestriction(int code, boolean restricted, IBinder token, in setUserRestriction() method in AppOpsManager
4580 mService.setUserRestriction(code, restricted, token, userId, exceptionPackages); in setUserRestrictionForUser()
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl210 void setUserRestriction(in ComponentName who, in String key, boolean enable); in setUserRestriction() method
DDevicePolicyManager.java7729 mService.setUserRestriction(admin, key, true); in addUserRestriction()
7751 mService.setUserRestriction(admin, key, false); in clearUserRestriction()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java5692 UserManagerService.getInstance().setUserRestriction( in onReceive()
5697 UserManagerService.getInstance().setUserRestriction( in onReceive()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java4042 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, userHandle); in clearDeviceOwnerUserRestrictionLocked()
10040 public void setUserRestriction(ComponentName who, String key, boolean enabledFromThisOwner) { in setUserRestriction() method
10912 setUserRestriction(who, UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, in setSecureSetting()
10958 setUserRestriction(who, UserManager.DISALLOW_UNMUTE_DEVICE, on); in setMasterVolumeMuted()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java4301 public void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, in setUserRestriction() method
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1122 verify(getServices().userManager).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()
/frameworks/base/services/
Dart-profile3888 PLcom/android/server/appop/AppOpsService;->setUserRestriction(IZLandroid/os/IBinder;I[Ljava/lang/St…
6401 PLcom/android/server/devicepolicy/DevicePolicyManagerService;->setUserRestriction(Landroid/content/…
11832 HSPLcom/android/server/pm/UserManagerService;->setUserRestriction(Ljava/lang/String;ZI)V
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt3121 Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;->setUserRestriction(Landroid/content/ComponentN…
3650 Landroid/app/admin/IDevicePolicyManager;->setUserRestriction(Landroid/content/ComponentName;Ljava/l…
4093 Landroid/app/AppOpsManager;->setUserRestriction(IZLandroid/os/IBinder;)V
4094 Landroid/app/AppOpsManager;->setUserRestriction(IZLandroid/os/IBinder;[Ljava/lang/String;)V
54837 Landroid/os/IUserManager$Stub$Proxy;->setUserRestriction(Ljava/lang/String;ZI)V
54960 Landroid/os/IUserManager;->setUserRestriction(Ljava/lang/String;ZI)V
57938 Landroid/os/UserManager;->setUserRestriction(Ljava/lang/String;ZLandroid/os/UserHandle;)V
93011 Lcom/android/internal/app/IAppOpsService$Stub$Proxy;->setUserRestriction(IZLandroid/os/IBinder;I[Lj…
93042 Lcom/android/internal/app/IAppOpsService;->setUserRestriction(IZLandroid/os/IBinder;I[Ljava/lang/St…
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22383 method public deprecated void setUserRestriction(java.lang.String, boolean);
/frameworks/base/api/
Dcurrent.txt35291 method @Deprecated public void setUserRestriction(String, boolean);