/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserRestrictionsUtils.java | 314 if (!USER_RESTRICTIONS.contains(restriction)) { in isValidRestriction() 334 msg.append(restriction); in isValidRestriction() 434 return in != null && in.getBoolean(restriction); in contains() 454 return !IMMUTABLE_BY_OWNERS.contains(restriction); in canDeviceOwnerChange() 463 return !IMMUTABLE_BY_OWNERS.contains(restriction) in canProfileOwnerChange() 489 && canDeviceOwnerChange(restriction); in canFinancedDeviceOwnerChange() 715 String restriction; in isSettingRestrictedForUser() local 748 restriction = UserManager.ENSURE_VERIFY_APPS; in isSettingRestrictedForUser() 763 restriction = UserManager.DISALLOW_CONFIG_VPN; in isSettingRestrictedForUser() 770 restriction = UserManager.DISALLOW_SAFE_BOOT; in isSettingRestrictedForUser() [all …]
|
H A D | RestrictionsSet.java | 95 public boolean removeRestrictionsForAllUsers(String restriction) { in removeRestrictionsForAllUsers() argument 100 if (UserRestrictionsUtils.contains(restrictions, restriction)) { in removeRestrictionsForAllUsers() 101 restrictions.remove(restriction); in removeRestrictionsForAllUsers() 111 public void moveRestriction(@NonNull RestrictionsSet destRestrictions, String restriction) { in moveRestriction() argument 116 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction() 117 from.remove(restriction); in moveRestriction() 121 to.putBoolean(restriction, true); in moveRestriction() 124 to.putBoolean(restriction, true); in moveRestriction() 159 public @NonNull List<UserManager.EnforcingUser> getEnforcingUsers(String restriction, in getEnforcingUsers() argument 162 if (getRestrictionsNonNull(userId).containsKey(restriction)) { in getEnforcingUsers() [all …]
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | RestrictionsManager.java | 626 RestrictionEntry restriction; in loadManifestRestrictions() local 633 if (restriction != null) { in loadManifestRestrictions() 634 restrictions.add(restriction); in loadManifestRestrictions() 684 restriction.setTitle(title); in loadRestriction() 685 restriction.setDescription(description); in loadRestriction() 687 restriction.setChoiceEntries(appContext, entries); in loadRestriction() 697 restriction.setSelectedString( in loadRestriction() 701 restriction.setIntValue( in loadRestriction() 707 restriction.setAllSelectedStrings( in loadRestriction() 712 restriction.setSelectedState( in loadRestriction() [all …]
|
H A D | RestrictionEntry.java | 210 for (RestrictionEntry restriction : restrictionEntries) { in RestrictionEntry() 211 if (restriction.getType() != TYPE_BUNDLE) { in RestrictionEntry()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/ |
H A D | ActionDisabledByAdminControllerFactory.java | 44 String restriction, DeviceAdminStringProvider stringProvider, in createInstance() argument 46 if (doesBiometricRequireParentalConsent(context, restriction)) { in createInstance() 51 return new SupervisedDeviceActionDisabledByAdminController(stringProvider, restriction); in createInstance() 75 String restriction) { in doesBiometricRequireParentalConsent() argument 76 if (!TextUtils.equals(UserManager.DISALLOW_BIOMETRIC, restriction)) { in doesBiometricRequireParentalConsent()
|
H A D | SupervisedDeviceActionDisabledByAdminController.java | 37 DeviceAdminStringProvider stringProvider, String restriction) { in SupervisedDeviceActionDisabledByAdminController() argument 39 mRestriction = restriction; in SupervisedDeviceActionDisabledByAdminController() 48 public String getAdminSupportTitle(@Nullable String restriction) { in getAdminSupportTitle() argument
|
H A D | FinancedDeviceActionDisabledByAdminController.java | 42 public String getAdminSupportTitle(@Nullable String restriction) { in getAdminSupportTitle() argument
|
H A D | ActionDisabledByAdminController.java | 47 String getAdminSupportTitle(@Nullable String restriction); in getAdminSupportTitle() argument
|
H A D | BiometricActionDisabledByAdminController.java | 46 public String getAdminSupportTitle(@Nullable String restriction) { in getAdminSupportTitle() argument
|
H A D | ManagedDeviceActionDisabledByAdminController.java | 82 public String getAdminSupportTitle(@Nullable String restriction) { in getAdminSupportTitle() argument
|
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
H A D | InstallStart.java | 302 for (String restriction : restrictions) { in checkDevicePolicyRestrictions() 303 if (!mUserManager.hasUserRestrictionForUser(restriction, Process.myUserHandle())) { in checkDevicePolicyRestrictions() 312 final Intent showAdminSupportDetailsIntent = dpm.createAdminSupportIntent(restriction); in checkDevicePolicyRestrictions() 317 if (mLocalLOGV) Log.i(TAG, "Restriction set by system: " + restriction); in checkDevicePolicyRestrictions() 319 showDialogInner(restriction); in checkDevicePolicyRestrictions() 331 private void showDialogInner(String restriction) { in showDialogInner() argument 332 if (mLocalLOGV) Log.i(TAG, "showDialogInner(" + restriction + ")"); in showDialogInner() 339 DialogFragment newDialog = createDialog(restriction); in showDialogInner() 352 private DialogFragment createDialog(String restriction) { in createDialog() argument 353 if (mLocalLOGV) Log.i(TAG, "createDialog(" + restriction + ")"); in createDialog() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
H A D | WifiRestrictionsCache.java | 105 Boolean restriction; in getRestriction() local 110 restriction = mUserRestrictions.getBoolean(key); in getRestriction() 111 mRestrictions.put(key, restriction); in getRestriction() 113 return restriction; in getRestriction()
|
/aosp14/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyIdentifiers.java | 174 @UserManager.UserRestrictionKey @NonNull String restriction) { in getIdentifierForUserRestriction() 175 Objects.requireNonNull(restriction); in getIdentifierForUserRestriction() 176 return USER_RESTRICTION_PREFIX + restriction; in getIdentifierForUserRestriction()
|
H A D | UserRestrictionPolicyKey.java | 45 public UserRestrictionPolicyKey(@NonNull String identifier, @NonNull String restriction) { in UserRestrictionPolicyKey() argument 47 mRestriction = Objects.requireNonNull(restriction); in UserRestrictionPolicyKey()
|
H A D | SecurityLogTags.logtags | 34 210027 security_user_restriction_added (package|3),(admin_user|1),(restriction|3) 35 210028 security_user_restriction_removed (package|3),(admin_user|1),(restriction|3)
|
H A D | DevicePolicyManagerInternal.java | 344 public abstract List<EnforcingUser> getUserRestrictionSources(String restriction, in getUserRestrictionSources() argument
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | AppOpInfo.java | 67 public final String restriction; field in AppOpInfo 105 String restriction, in AppOpInfo() argument 120 this.restriction = restriction; in AppOpInfo()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | RestrictionsSetTest.java | 80 String restriction = UserManager.DISALLOW_CONFIG_DATE_TIME; in testMoveRestriction_containsRestriction() local 82 newRestrictions(restriction)); in testMoveRestriction_containsRestriction() 84 mRestrictionsSet.moveRestriction(destRestrictionsSet, restriction); in testMoveRestriction_containsRestriction() 88 assertRestrictions(newRestrictions(restriction), in testMoveRestriction_containsRestriction()
|
/aosp14/system/core/libkeyutils/ |
H A D | keyutils.cpp | 63 long keyctl_restrict_keyring(key_serial_t keyring, const char* type, const char* restriction) { in keyctl_restrict_keyring() argument 64 return syscall(__NR_keyctl, KEYCTL_RESTRICT_KEYRING, keyring, type, restriction); in keyctl_restrict_keyring()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceUserInfoTest.java | 316 for (String restriction : localRestrictions) { in testUserRestrictionsUpgradeFromV9() 317 assertFalse(mUserManagerService.hasBaseUserRestriction(restriction, userId)); in testUserRestrictionsUpgradeFromV9() 318 assertFalse(mUserManagerService.hasUserRestriction(restriction, userId)); in testUserRestrictionsUpgradeFromV9() 335 for (String restriction : localRestrictions) { in testUserRestrictionsUpgradeFromV9() 336 assertFalse(mUserManagerService.hasBaseUserRestriction(restriction, userId)); in testUserRestrictionsUpgradeFromV9() 337 assertTrue(mUserManagerService.hasUserRestriction(restriction, userId)); in testUserRestrictionsUpgradeFromV9()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | PolicyDefinition.java | 487 @UserManager.UserRestrictionKey String restriction) { in getPolicyDefinitionForUserRestriction() 488 String key = DevicePolicyIdentifiers.getIdentifierForUserRestriction(restriction); in getPolicyDefinitionForUserRestriction() 491 throw new IllegalArgumentException("Unsupported user restriction " + restriction); in getPolicyDefinitionForUserRestriction() 549 String restriction, int flags) { in createAndAddUserRestrictionPolicyDefinition() argument 550 String identifier = DevicePolicyIdentifiers.getIdentifierForUserRestriction(restriction); in createAndAddUserRestrictionPolicyDefinition() 551 UserRestrictionPolicyKey key = new UserRestrictionPolicyKey(identifier, restriction); in createAndAddUserRestrictionPolicyDefinition()
|
/aosp14/frameworks/base/core/proto/android/os/ |
H A D | appbackgroundrestrictioninfo.proto | 43 // indicates the app background restriction level. 51 // indicates which threshold caused the app to be put into bg restriction. 207 // indicates previous background restriction level.
|
/aosp14/system/core/libkeyutils/include/ |
H A D | keyutils.h | 54 long keyctl_restrict_keyring(key_serial_t keyring, const char* type, const char* restriction);
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
H A D | StateChangedListener.java | 48 void onRestrictionStateChanged(@NonNull JobRestriction restriction, in onRestrictionStateChanged() argument
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DpmTestUtils.java | 71 for (String restriction : restrictions) { in newRestrictions() 72 ret.putBoolean(restriction, true); in newRestrictions()
|