Home
last modified time | relevance | path

Searched refs:restriction (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/java/android/content/
DRestrictionsManager.java562 RestrictionEntry restriction; in loadManifestRestrictions() local
568 restriction = loadRestrictionElement(appContext, xml); in loadManifestRestrictions()
569 if (restriction != null) { in loadManifestRestrictions()
570 restrictions.add(restriction); in loadManifestRestrictions()
619 RestrictionEntry restriction = new RestrictionEntry(restrictionType, key); in loadRestriction() local
620 restriction.setTitle(title); in loadRestriction()
621 restriction.setDescription(description); in loadRestriction()
623 restriction.setChoiceEntries(appContext, entries); in loadRestriction()
626 restriction.setChoiceValues(appContext, entryValues); in loadRestriction()
633 restriction.setSelectedString( in loadRestriction()
[all …]
DRestrictionEntry.java209 for (RestrictionEntry restriction : restrictionEntries) { in RestrictionEntry()
210 if (restriction.getType() != TYPE_BUNDLE) { in RestrictionEntry()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java193 public static boolean isValidRestriction(@NonNull String restriction) { in isValidRestriction() argument
194 if (!USER_RESTRICTIONS.contains(restriction)) { in isValidRestriction()
195 Slog.e(TAG, "Unknown restriction: " + restriction); in isValidRestriction()
254 public static boolean contains(@Nullable Bundle in, String restriction) { in contains() argument
255 return in != null && in.getBoolean(restriction); in contains()
301 public static boolean canDeviceOwnerChange(String restriction) { in canDeviceOwnerChange() argument
302 return !IMMUTABLE_BY_OWNERS.contains(restriction); in canDeviceOwnerChange()
309 public static boolean canProfileOwnerChange(String restriction, int userId) { in canProfileOwnerChange() argument
310 return !IMMUTABLE_BY_OWNERS.contains(restriction) in canProfileOwnerChange()
312 && PRIMARY_USER_ONLY_RESTRICTIONS.contains(restriction)); in canProfileOwnerChange()
[all …]
DUserManagerService.java2372 String restriction = ((flags & UserInfo.FLAG_MANAGED_PROFILE) != 0) in createUserInternal() local
2375 if (hasUserRestriction(restriction, UserHandle.getCallingUserId())) { in createUserInternal()
2376 Log.w(LOG_TAG, "Cannot add user. " + restriction + " is enabled."); in createUserInternal()
2653 String restriction = isManagedProfile in removeUser() local
2655 if (getUserRestrictions(UserHandle.getCallingUserId()).getBoolean(restriction, false)) { in removeUser()
2656 Log.w(LOG_TAG, "Cannot remove user. " + restriction + " is enabled."); in removeUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestUtils.java62 for (String restriction : restrictions) { in newRestrictions()
63 ret.putBoolean(restriction, true); in newRestrictions()
DDevicePolicyManagerTest.java1538 for (String restriction : defaultRestrictions) { in testSetUserRestriction_asDo()
1539 dpm.clearUserRestriction(admin1, restriction); in testSetUserRestriction_asDo()
1796 for (String restriction : defaultRestrictions) { in testDefaultEnabledUserRestrictions()
1797 dpm.clearUserRestriction(admin1, restriction); in testDefaultEnabledUserRestrictions()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DUpdateParameter.java117 public void setRestriction(String restriction) { in setRestriction() argument
118 mRestriction = restriction; in setRestriction()
/frameworks/native/opengl/include/KHR/
DNOTICE5 "Materials"), to deal in the Materials without restriction, including
/frameworks/native/opengl/include/EGL/
DNOTICE5 "Materials"), to deal in the Materials without restriction, including
/frameworks/wilhelm/include/SLES/
DNOTICE5 deal in the Materials without restriction, including without limitation the
/frameworks/wilhelm/include/OMXAL/
DNOTICE5 "Materials "), to deal in the Materials without restriction, including
/frameworks/native/opengl/include/GLES2/
DNOTICE5 "Materials"), to deal in the Materials without restriction, including
/frameworks/native/opengl/include/GLES3/
DNOTICE5 "Materials"), to deal in the Materials without restriction, including
/frameworks/native/vulkan/api/
Dplatform.api5 // "Materials"), to deal in the Materials without restriction, including
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java1515 String restriction;
1522 restriction = UserManager.DISALLOW_SHARE_LOCATION;
1529 restriction = UserManager.DISALLOW_SHARE_LOCATION;
1534 restriction = UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES;
1539 restriction = UserManager.DISALLOW_DEBUGGING_FEATURES;
1545 restriction = UserManager.ENSURE_VERIFY_APPS;
1549 restriction = UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS;
1559 restriction = UserManager.DISALLOW_CONFIG_VPN;
1564 restriction = UserManager.DISALLOW_SAFE_BOOT;
1570 restriction = UserManager.DISALLOW_DATA_ROAMING;
[all …]
/frameworks/compile/mclinker/
DLICENSE.TXT18 the Software without restriction, including without limitation the rights to
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java1552 boolean hasUserRestriction(String restriction, int userId) {
1553 return mInjector.getUserManager().hasUserRestriction(restriction, userId);
1765 void enforceShellRestriction(String restriction, int userId) {
1766 mService.enforceShellRestriction(restriction, userId);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2006 for (final String restriction : restrictionsToSet) { in maybeSetDefaultRestrictionsForAdminLocked()
2007 admin.ensureUserRestrictions().putBoolean(restriction, true); in maybeSetDefaultRestrictionsForAdminLocked()
5337 final String restriction; in wipeDataNoLock() local
5339 restriction = UserManager.DISALLOW_FACTORY_RESET; in wipeDataNoLock()
5341 restriction = UserManager.DISALLOW_REMOVE_MANAGED_PROFILE; in wipeDataNoLock()
5343 restriction = UserManager.DISALLOW_REMOVE_USER; in wipeDataNoLock()
5345 if (isAdminAffectedByRestriction(admin, restriction, userId)) { in wipeDataNoLock()
5346 throw new SecurityException("Cannot wipe data. " + restriction in wipeDataNoLock()
6527 for (String restriction : restrictions) { in setDeviceOwner()
6528 activeAdmin.ensureUserRestrictions().putBoolean(restriction, true); in setDeviceOwner()
[all …]
/frameworks/native/vulkan/api/templates/
Dvulkan_h.tmpl24 ** "Materials"), to deal in the Materials without restriction, including
Dvk_xml.tmpl19 "Materials"), to deal in the Materials without restriction, including
/frameworks/base/services/core/java/com/android/server/
DAppOpsService.java2346 String restriction = AppOpsManager.opToRestriction(i); in setUserRestrictions() local
2347 if (restriction != null) { in setUserRestrictions()
2348 setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token, in setUserRestrictions()
2545 public boolean hasRestriction(int restriction, String packageName, int userId) { in hasRestriction() argument
2553 if (!restrictions[restriction]) { in hasRestriction()
/frameworks/compile/slang/
DNOTICE220 the Software without restriction, including without limitation the rights to
290 the Software without restriction, including without limitation the rights to
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java1158 String restriction = nextArg(); in runSetUserRestriction() local
1170 mUm.setUserRestriction(restriction, value, userId); in runSetUserRestriction()
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl209 Intent createAdminSupportIntent(in String restriction); in createAdminSupportIntent() argument
/frameworks/compile/libbcc/
DNOTICE220 the Software without restriction, including without limitation the rights to

12