Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java220 public static boolean isValidRestriction(@NonNull String restriction) { in isValidRestriction() argument
221 if (!USER_RESTRICTIONS.contains(restriction)) { in isValidRestriction()
222 Slog.e(TAG, "Unknown restriction: " + restriction); in isValidRestriction()
281 public static boolean contains(@Nullable Bundle in, String restriction) { in contains() argument
282 return in != null && in.getBoolean(restriction); in contains()
328 public static boolean canDeviceOwnerChange(String restriction) { in canDeviceOwnerChange() argument
329 return !IMMUTABLE_BY_OWNERS.contains(restriction); in canDeviceOwnerChange()
336 public static boolean canProfileOwnerChange(String restriction, int userId) { in canProfileOwnerChange() argument
337 return !IMMUTABLE_BY_OWNERS.contains(restriction) in canProfileOwnerChange()
338 && !DEVICE_OWNER_ONLY_RESTRICTIONS.contains(restriction) in canProfileOwnerChange()
[all …]
DPackageManagerServiceUtils.java367 public static void enforceShellRestriction(String restriction, int callingUid, int userHandle) { in enforceShellRestriction() argument
371 restriction, userHandle)) { in enforceShellRestriction()
/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/packages/SettingsLib/src/com/android/settingslib/users/
DUserManagerHelper.java246 public boolean foregroundUserHasUserRestriction(String restriction) { in foregroundUserHasUserRestriction() argument
247 … return mUserManager.hasUserRestriction(restriction, getForegroundUserInfo().getUserHandle()); in foregroundUserHasUserRestriction()
288 public boolean currentProcessHasUserRestriction(String restriction) { in currentProcessHasUserRestriction() argument
289 return mUserManager.hasUserRestriction(restriction); in currentProcessHasUserRestriction()
/frameworks/base/core/java/android/app/admin/
DSecurityLogTags.logtags34 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)
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestUtils.java63 for (String restriction : restrictions) { in newRestrictions()
64 ret.putBoolean(restriction, true); in newRestrictions()
DDevicePolicyManagerTest.java1618 for (String restriction : defaultRestrictions) { in testSetUserRestriction_asDo()
1619 dpm.clearUserRestriction(admin1, restriction); in testSetUserRestriction_asDo()
1876 for (String restriction : defaultRestrictions) { in testDefaultEnabledUserRestrictions()
1877 dpm.clearUserRestriction(admin1, restriction); in testDefaultEnabledUserRestrictions()
4690 Bundle restriction = new Bundle(); in testDisallowSharingIntoProfileSetRestriction() local
4691 restriction.putBoolean(UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE, true); in testDisallowSharingIntoProfileSetRestriction()
4695 listener.onUserRestrictionsChanged(DpmMockContext.CALLER_USER_HANDLE, restriction, in testDisallowSharingIntoProfileSetRestriction()
4703 Bundle restriction = new Bundle(); in testDisallowSharingIntoProfileClearRestriction() local
4704 restriction.putBoolean(UserManager.DISALLOW_SHARE_INTO_MANAGED_PROFILE, true); in testDisallowSharingIntoProfileClearRestriction()
4709 restriction); in testDisallowSharingIntoProfileClearRestriction()
/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/EGL/
DNOTICE5 "Materials"), to deal in the Materials without restriction, including
/frameworks/wilhelm/include/OMXAL/
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/native/opengl/include/KHR/
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/native/opengl/include/GLES/
DNOTICE19 "Materials"), to deal in the Materials without restriction, including
/frameworks/native/opengl/include/GLES2/
DNOTICE19 "Materials"), to deal in the Materials without restriction, including
/frameworks/native/opengl/include/GLES3/
DNOTICE22 "Materials"), to deal in the Materials without restriction, including
/frameworks/compile/mclinker/
DLICENSE.TXT18 the Software without restriction, including without limitation the rights to
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java375 private boolean hasRestriction(String restriction, int userId) { in hasRestriction() argument
377 return mUm.hasUserRestriction(restriction, userId); in hasRestriction()
/frameworks/support/core/ktx/src/androidTest/
Dfont_licenses.txt65 Copyright Holder. This restriction only applies to the primary font name as
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2326 for (final String restriction : restrictionsToSet) { in maybeSetDefaultRestrictionsForAdminLocked()
2327 admin.ensureUserRestrictions().putBoolean(restriction, true); in maybeSetDefaultRestrictionsForAdminLocked()
5983 final String restriction; in wipeDataNoLock() local
5985 restriction = UserManager.DISALLOW_FACTORY_RESET; in wipeDataNoLock()
5987 restriction = UserManager.DISALLOW_REMOVE_MANAGED_PROFILE; in wipeDataNoLock()
5989 restriction = UserManager.DISALLOW_REMOVE_USER; in wipeDataNoLock()
5991 if (isAdminAffectedByRestriction(admin, restriction, userId)) { in wipeDataNoLock()
5992 throw new SecurityException("Cannot wipe data. " + restriction in wipeDataNoLock()
7217 for (String restriction : restrictions) { in setDeviceOwner()
7218 activeAdmin.ensureUserRestrictions().putBoolean(restriction, true); in setDeviceOwner()
[all …]
/frameworks/base/core/proto/android/telecomm/
Denums.proto159 * Disconnected because of a restriction on placing the call, such as dialing in airplane
/frameworks/native/vulkan/api/templates/
Dvulkan_h.tmpl24 ** "Materials"), to deal in the Materials without restriction, including
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java1779 void enforceShellRestriction(String restriction, int userHandle) {
1781 if (userHandle < 0 || hasUserRestriction(restriction, userHandle)) {
1788 boolean hasUserRestriction(String restriction, int userId) {
1789 return mInjector.getUserManager().hasUserRestriction(restriction, userId);
/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

12