/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsLegacyRestrictionsTest.java | 153 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetSingleUserRestriction() 156 assertEquals(false, mAppOpsRestrictions.setUserRestriction( in testSetAndGetSingleUserRestriction() 165 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetSingleUserRestriction() 168 assertEquals(false, mAppOpsRestrictions.setUserRestriction( in testSetAndGetSingleUserRestriction() 179 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetDoubleUserRestriction() 182 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetDoubleUserRestriction() 195 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetDoubleUserRestriction() 208 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testSetAndGetDoubleUserRestriction() 223 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testClearUserRestrictionsAllUsers() 225 assertEquals(true, mAppOpsRestrictions.setUserRestriction( in testClearUserRestrictionsAllUsers() [all …]
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | InstallNonMarketAppsDeprecationTest.java | 154 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, !mHasUserRestriction); in testValueRespectsUserRestriction() 161 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, mHasUserRestriction); in testValueRespectsUserRestriction() 175 mUm.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, in tearDown()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 171 mUserManagerService.setUserRestriction(DISALLOW_USER_SWITCH, true, userId); in assertHasUserRestriction() 174 mUserManagerService.setUserRestriction(DISALLOW_USER_SWITCH, false, userId); in assertHasUserRestriction() 200 mUserManagerService.setUserRestriction(DISALLOW_USER_SWITCH, true, incorrectId); in testSetUserRestrictionWithIncorrectID()
|
D | UserManagerTest.java | 559 mUserManager.setUserRestriction(UserManager.DISALLOW_REMOVE_USER, /* value= */ true, in testRemoveUserWhenPossible_restrictedReturnsError() 566 mUserManager.setUserRestriction(UserManager.DISALLOW_REMOVE_USER, /* value= */ false, in testRemoveUserWhenPossible_restrictedReturnsError() 579 mUserManager.setUserRestriction(UserManager.DISALLOW_REMOVE_USER, /* value= */ true, in testRemoveUserWhenPossible_evenWhenRestricted() 587 mUserManager.setUserRestriction(UserManager.DISALLOW_REMOVE_USER, /* value= */ false, in testRemoveUserWhenPossible_evenWhenRestricted() 1160 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, creatorHandle); in testCreateUser_disallowAddUser() 1165 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateUser_disallowAddUser() 1176 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_CLONE_PROFILE, in testCreateUser_disallowAddClonedUserProfile() 1183 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_CLONE_PROFILE, false, in testCreateUser_disallowAddClonedUserProfile() 1195 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, in testCreateProfileForUser_disallowAddManagedProfile() 1202 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false, in testCreateProfileForUser_disallowAddManagedProfile() [all …]
|
D | UserManagerServiceUserInfoTest.java | 456 mUserManagerService.setUserRestriction(UserManager.DISALLOW_CAMERA, true, userId); in testUpgradeProfileType_updateRestrictions() 457 mUserManagerService.setUserRestriction(UserManager.DISALLOW_PRINTING, true, userId); in testUpgradeProfileType_updateRestrictions()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsRestrictions.java | 77 boolean setUserRestriction(Object clientToken, int userId, int code, boolean restricted, in setUserRestriction() method
|
D | AppOpsRestrictionsImpl.java | 115 public boolean setUserRestriction(Object clientToken, int userId, int code, in setUserRestriction() method in AppOpsRestrictionsImpl
|
D | AppOpsService.java | 6424 public void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, 7035 return mAppOpsRestrictions.setUserRestriction(token, userId, code,
|
/frameworks/base/services/core/java/com/android/server/oemlock/ |
D | PersistentDataBlockLock.java | 56 UserManager.get(mContext).setUserRestriction( in setOemUnlockAllowedByCarrier()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | InjectedSetting.java | 173 public Builder setUserRestriction(String userRestriction) { in setUserRestriction() method in InjectedSetting.Builder
|
D | SettingsInjector.java | 295 .setUserRestriction(userRestriction) in parseAttributes()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 509 mUms.setUserRestriction(DISALLOW_USER_SWITCH, true, USER_ID); in assertIsUserSwitcherEnabled() 512 mUms.setUserRestriction(DISALLOW_USER_SWITCH, false, USER_ID); in assertIsUserSwitcherEnabled() 534 mUms.setUserRestriction(DISALLOW_USER_SWITCH, true, USER_ID); in assertIsUserSwitcherEnabledOnUserRestrictions() 537 mUms.setUserRestriction(DISALLOW_USER_SWITCH, false, USER_ID); in assertIsUserSwitcherEnabledOnUserRestrictions() 907 mUms.setUserRestriction(DISALLOW_USER_SWITCH, false, USER_ID); in resetUserSwitcherEnabled()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | PolicyEnforcerCallbacks.java | 323 static boolean setUserRestriction( 334 userManager.setUserRestriction(
|
D | PolicyDefinition.java | 642 PolicyEnforcerCallbacks::setUserRestriction, in createAndAddUserRestrictionPolicyDefinition()
|
D | DevicePolicyManagerService.java | 2621 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_CLONE_PROFILE, true, in applyProfileRestrictionsIfDeviceOwnerLocked() 2627 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_PRIVATE_PROFILE, true, in applyProfileRestrictionsIfDeviceOwnerLocked() 2634 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true, in applyProfileRestrictionsIfDeviceOwnerLocked() 4116 mUserManager.setUserRestriction( 4118 mUserManager.setUserRestriction( 4128 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, 4136 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, 4144 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_CLONE_PROFILE, 4153 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_PRIVATE_PROFILE, 9688 mUserManager.setUserRestriction( [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerInternal.java | 179 public abstract void setUserRestriction(@UserIdInt int userId, @NonNull String key, in setUserRestriction() method in UserManagerInternal
|
D | UserManagerService.java | 3457 public void setUserRestriction(String key, boolean value, @UserIdInt int userId) { in setUserRestriction() method in UserManagerService 4434 setUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, true, guestUser.id); in upgradeIfNecessaryLP() 6000 setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user.id); 6006 setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user.id); 7437 public void setUserRestriction(int userId, @NonNull String key, boolean value) {
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 99 void setUserRestriction(String key, boolean value, int userId); in setUserRestriction() method
|
D | UserManager.java | 4073 public void setUserRestriction(String key, boolean value) { in setUserRestriction() method in UserManager 4075 mService.setUserRestriction(key, value, getContextUserIfAppropriate()); in setUserRestriction() 4094 public void setUserRestriction(String key, boolean value, UserHandle userHandle) { in setUserRestriction() method in UserManager 4096 mService.setUserRestriction(key, value, userHandle.getIdentifier()); in setUserRestriction()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IAppOpsService.aidl | 117 …void setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, in PackageTag… in setUserRestriction() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 386 }).when(getServices().userManager).setUserRestriction( in setUpUserManager() 1138 verify(getServices().userManager, times(1)).setUserRestriction( in setDeviceOwner() 1142 verify(getServices().userManager, times(1)).setUserRestriction( in setDeviceOwner() 1146 verify(getServices().userManager, times(1)).setUserRestriction( in setDeviceOwner() 1420 verify(getServices().userManager).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner() 1425 .setUserRestriction(eq(UserManager.DISALLOW_ADD_CLONE_PROFILE), eq(false), in testClearDeviceOwner() 1429 .setUserRestriction(eq(UserManager.DISALLOW_ADD_PRIVATE_PROFILE), eq(false), in testClearDeviceOwner() 4440 verify(getServices().userManager).setUserRestriction( in testIsOrganizationOwnedDevice() 4459 verify(getServices().userManager).setUserRestriction( in testMarkOrganizationOwnedDevice_baseRestrictionsAdded() 4465 verify(getServices().userManager).setUserRestriction( in testMarkOrganizationOwnedDevice_baseRestrictionsAdded() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | IDevicePolicyManager.aidl | 256 …void setUserRestriction(in ComponentName who, in String callerPackage, in String key, boolean enab… in setUserRestriction() method
|
D | DevicePolicyManager.java | 11926 mService.setUserRestriction( in addUserRestriction() 12034 mService.setUserRestriction( in clearUserRestriction()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 8113 public void setUserRestriction(int code, boolean restricted, IBinder token) { in setUserRestriction() method in AppOpsManager 8114 setUserRestriction(code, restricted, token, null); in setUserRestriction() 8121 public void setUserRestriction(int code, boolean restricted, IBinder token, in setUserRestriction() method in AppOpsManager 8134 mService.setUserRestriction(code, restricted, token, userId, excludedPackageTags); in setUserRestrictionForUser()
|
/frameworks/base/core/api/ |
D | lint-baseline.txt | 750 RequiresPermission: android.os.UserManager#setUserRestriction(String, boolean): 751 …Method 'setUserRestriction' documentation mentions permissions already declared by @RequiresPermis…
|