Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsLegacyRestrictionsTest.java153 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/
DInstallNonMarketAppsDeprecationTest.java154 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/
DUserManagerServiceTest.java171 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()
DUserManagerTest.java559 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 …]
DUserManagerServiceUserInfoTest.java456 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/
DAppOpsRestrictions.java77 boolean setUserRestriction(Object clientToken, int userId, int code, boolean restricted, in setUserRestriction() method
DAppOpsRestrictionsImpl.java115 public boolean setUserRestriction(Object clientToken, int userId, int code, in setUserRestriction() method in AppOpsRestrictionsImpl
DAppOpsService.java6424 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/
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.java295 .setUserRestriction(userRestriction) in parseAttributes()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java509 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/
DPolicyEnforcerCallbacks.java323 static boolean setUserRestriction(
334 userManager.setUserRestriction(
DPolicyDefinition.java642 PolicyEnforcerCallbacks::setUserRestriction, in createAndAddUserRestrictionPolicyDefinition()
DDevicePolicyManagerService.java2621 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/
DUserManagerInternal.java179 public abstract void setUserRestriction(@UserIdInt int userId, @NonNull String key, in setUserRestriction() method in UserManagerInternal
DUserManagerService.java3457 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/
DIUserManager.aidl99 void setUserRestriction(String key, boolean value, int userId); in setUserRestriction() method
DUserManager.java4073 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/
DIAppOpsService.aidl117 …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/
DDevicePolicyManagerTest.java386 }).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/
DIDevicePolicyManager.aidl256 …void setUserRestriction(in ComponentName who, in String callerPackage, in String key, boolean enab… in setUserRestriction() method
DDevicePolicyManager.java11926 mService.setUserRestriction( in addUserRestriction()
12034 mService.setUserRestriction( in clearUserRestriction()
/frameworks/base/core/java/android/app/
DAppOpsManager.java8113 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/
Dlint-baseline.txt750 RequiresPermission: android.os.UserManager#setUserRestriction(String, boolean):
751 …Method 'setUserRestriction' documentation mentions permissions already declared by @RequiresPermis…

12