Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java265 public static boolean isValidRestriction(@NonNull String restriction) { in isValidRestriction() argument
266 if (!USER_RESTRICTIONS.contains(restriction)) { in isValidRestriction()
286 msg.append(restriction); in isValidRestriction()
287 if (restriction != null && isSystemApp(uid, pkgs)) { in isValidRestriction()
376 public static boolean contains(@Nullable Bundle in, String restriction) { in contains() argument
377 return in != null && in.getBoolean(restriction); in contains()
407 public static boolean canDeviceOwnerChange(String restriction) { in canDeviceOwnerChange() argument
408 return !IMMUTABLE_BY_OWNERS.contains(restriction); in canDeviceOwnerChange()
415 public static boolean canProfileOwnerChange(String restriction, int userId) { in canProfileOwnerChange() argument
416 return !IMMUTABLE_BY_OWNERS.contains(restriction) in canProfileOwnerChange()
[all …]
DRestrictionsSet.java91 public void moveRestriction(@NonNull RestrictionsSet destRestrictions, String restriction) { in moveRestriction() argument
96 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction()
97 from.remove(restriction); in moveRestriction()
101 to.putBoolean(restriction, true); in moveRestriction()
104 to.putBoolean(restriction, true); in moveRestriction()
139 public @NonNull List<UserManager.EnforcingUser> getEnforcingUsers(String restriction, in getEnforcingUsers() argument
143 if (UserRestrictionsUtils.contains(mUserRestrictions.valueAt(i), restriction)) { in getEnforcingUsers()
/frameworks/base/core/java/android/content/
DRestrictionsManager.java565 RestrictionEntry restriction; in loadManifestRestrictions() local
571 restriction = loadRestrictionElement(appContext, xml); in loadManifestRestrictions()
572 if (restriction != null) { in loadManifestRestrictions()
573 restrictions.add(restriction); in loadManifestRestrictions()
622 RestrictionEntry restriction = new RestrictionEntry(restrictionType, key); in loadRestriction() local
623 restriction.setTitle(title); in loadRestriction()
624 restriction.setDescription(description); in loadRestriction()
626 restriction.setChoiceEntries(appContext, entries); in loadRestriction()
629 restriction.setChoiceValues(appContext, entryValues); in loadRestriction()
636 restriction.setSelectedString( in loadRestriction()
[all …]
DRestrictionEntry.java209 for (RestrictionEntry restriction : restrictionEntries) { in RestrictionEntry()
210 if (restriction.getType() != TYPE_BUNDLE) { in RestrictionEntry()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DRestrictionsSetTest.java77 String restriction = UserManager.DISALLOW_CONFIG_DATE_TIME; in testMoveRestriction_containsRestriction() local
79 newRestrictions(restriction)); in testMoveRestriction_containsRestriction()
81 mRestrictionsSet.moveRestriction(destRestrictionsSet, restriction); in testMoveRestriction_containsRestriction()
85 assertRestrictions(newRestrictions(restriction), in testMoveRestriction_containsRestriction()
DUserManagerServiceUserTypeTest.java369 for (String restriction : restrictions) { in makeRestrictionsBundle()
370 bundle.putBoolean(restriction, true); in makeRestrictionsBundle()
DUserManagerTest.java698 for (String restriction : expectedRestrictions.keySet()) { in testDefaultRestrictionsApplied()
699 if (expectedRestrictions.getBoolean(restriction)) { in testDefaultRestrictionsApplied()
700 assertThat(mUserManager.hasUserRestriction(restriction, UserHandle.of(userInfo.id))) in testDefaultRestrictionsApplied()
/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.java71 for (String restriction : restrictions) { in newRestrictions()
72 ret.putBoolean(restriction, true); in newRestrictions()
/frameworks/native/include/binder/
DProcessState.h90 void setCallRestriction(CallRestriction restriction);
/frameworks/native/libs/binder/include/binder/
DProcessState.h90 void setCallRestriction(CallRestriction restriction);
/frameworks/base/services/core/java/android/os/
DUserManagerInternal.java262 public abstract boolean hasUserRestriction(String restriction, int userId); in hasUserRestriction() argument
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DUpdateParameter.java119 public void setRestriction(String restriction) { in setRestriction() argument
120 mRestriction = restriction; in setRestriction()
/frameworks/native/libs/binder/
DProcessState.cpp219 void ProcessState::setCallRestriction(CallRestriction restriction) { in setCallRestriction() argument
223 mCallRestriction = restriction; in setCallRestriction()
/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/opengl/include/GLES2/
DNOTICE19 "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/GLES3/
DNOTICE22 "Materials"), to deal in the Materials without restriction, including
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java2001 final JobRestriction restriction = mJobRestrictions.get(i);
2002 if (restriction.isJobRestricted(job)) {
2003 return restriction;
2031 final JobRestriction restriction = checkIfRestricted(running);
2032 if (restriction != null) {
2033 final int reason = restriction.getReason();
3192 final JobRestriction restriction = mJobRestrictions.get(i);
3193 if (restriction.isJobRestricted(job)) {
3194 final int reason = restriction.getReason();
3392 for (JobRestriction restriction : mJobRestrictions) {
[all …]
/frameworks/compile/mclinker/
DLICENSE.TXT18 the Software without restriction, including without limitation the rights to
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java453 private void startAdminSupportDetailsActivity(String restriction) { in startAdminSupportDetailsActivity() argument
457 final Intent showAdminSupportDetailsIntent = dpm.createAdminSupportIntent(restriction); in startAdminSupportDetailsActivity()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java495 private boolean hasRestriction(String restriction, int userId) { in hasRestriction() argument
497 return mUm.hasUserRestriction(restriction, userId); in hasRestriction()

123