/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 201 @Nullable Bundle restrictions, @NonNull String tag) throws IOException { in writeRestrictions() argument 202 if (restrictions == null) { in writeRestrictions() 207 for (String key : restrictions.keySet()) { in writeRestrictions() 212 if (restrictions.getBoolean(key)) { in writeRestrictions() 222 public static void readRestrictions(XmlPullParser parser, Bundle restrictions) { in readRestrictions() argument 223 restrictions.clear(); in readRestrictions() 227 restrictions.putBoolean(key, Boolean.parseBoolean(value)); in readRestrictions() 285 public static Bundle mergeAll(SparseArray<Bundle> restrictions) { in mergeAll() argument 286 if (restrictions.size() == 0) { in mergeAll() 290 for (int i = 0; i < restrictions.size(); i++) { in mergeAll() [all …]
|
D | UserManagerService.java | 1179 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument 1183 mGuestRestrictions.putAll(restrictions); in setDefaultGuestRestrictions() 1193 private void setDevicePolicyUserRestrictionsInner(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictionsInner() argument 1199 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner() 1251 private boolean updateRestrictionsIfNeededLR(int userId, @Nullable Bundle restrictions, in updateRestrictionsIfNeededLR() argument 1254 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR() 1256 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR() 1257 restrictionsArray.put(userId, restrictions); in updateRestrictionsIfNeededLR() 1293 Bundle restrictions = mCachedEffectiveUserRestrictions.get(userId); in getEffectiveUserRestrictions() local 1294 if (restrictions == null) { in getEffectiveUserRestrictions() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 213 SparseArray<Bundle> restrictions = new SparseArray<>(); in testMergeAll() local 214 assertNull(UserRestrictionsUtils.mergeAll(restrictions)); in testMergeAll() 216 restrictions.put(0, newRestrictions(UserManager.DISALLOW_ADJUST_VOLUME)); in testMergeAll() 217 restrictions.put(1, newRestrictions(UserManager.DISALLOW_USB_FILE_TRANSFER)); in testMergeAll() 218 restrictions.put(2, newRestrictions(UserManager.DISALLOW_APPS_CONTROL)); in testMergeAll() 220 Bundle result = UserRestrictionsUtils.mergeAll(restrictions); in testMergeAll()
|
D | UserManagerTest.java | 135 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser() local 137 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); in testAddUser() 315 Bundle restrictions = mUserManager.getUserRestrictions(UserHandle.of(userInfo.id)); in testAddRestrictedProfile() local 317 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS)); in testAddRestrictedProfile() 319 restrictions.getBoolean(UserManager.DISALLOW_SHARE_LOCATION)); in testAddRestrictedProfile() 456 Bundle restrictions = new Bundle(); in testSetDefaultGuestRestrictions() local 457 restrictions.putBoolean(UserManager.DISALLOW_FUN, true); in testSetDefaultGuestRestrictions() 458 mUserManager.setDefaultGuestRestrictions(restrictions); in testSetDefaultGuestRestrictions()
|
/frameworks/base/core/java/android/content/ |
D | RestrictionsManager.java | 30 import android.service.restrictions.RestrictionsReceiver; 561 ArrayList<RestrictionEntry> restrictions = new ArrayList<>(); in loadManifestRestrictions() local 570 restrictions.add(restriction); in loadManifestRestrictions() 583 return restrictions; in loadManifestRestrictions() 719 RestrictionEntry[] restrictions = entry.getRestrictions(); in addRestrictionToBundle() local 720 Bundle childBundle = convertRestrictionsToBundle(Arrays.asList(restrictions)); in addRestrictionToBundle()
|
D | RestrictionEntry.java | 370 public void setRestrictions(RestrictionEntry[] restrictions) { in setRestrictions() argument 371 mRestrictions = restrictions; in setRestrictions()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 71 void setApplicationRestrictions(in String packageName, in Bundle restrictions, in setApplicationRestrictions() argument 75 void setDefaultGuestRestrictions(in Bundle restrictions); in setDefaultGuestRestrictions() argument
|
D | UserManagerInternal.java | 52 public abstract void setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictions() argument
|
D | UserManager.java | 1341 public void setUserRestrictions(Bundle restrictions) { in setUserRestrictions() argument 1351 public void setUserRestrictions(Bundle restrictions, UserHandle userHandle) { in setUserRestrictions() argument 2365 public void setApplicationRestrictions(String packageName, Bundle restrictions, in setApplicationRestrictions() argument 2368 mService.setApplicationRestrictions(packageName, restrictions, user.getIdentifier()); in setApplicationRestrictions() 2391 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument 2393 mService.setDefaultGuestRestrictions(restrictions); in setDefaultGuestRestrictions()
|
/frameworks/base/services/restrictions/ |
D | Android.mk | 5 LOCAL_MODULE := services.restrictions
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestUtils.java | 60 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() argument 62 for (String restriction : restrictions) { in newRestrictions()
|
/frameworks/base/core/java/android/service/restrictions/ |
D | RestrictionsReceiver.java | 17 package android.service.restrictions;
|
/frameworks/compile/mclinker/ |
D | LICENSE.TXT | 48 This file will describe the copyrights, license, and restrictions which apply 58 licenses, and/or restrictions:
|
/frameworks/base/services/ |
D | Android.mk | 36 restrictions \
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IAppOpsService.aidl | 48 void setUserRestrictions(in Bundle restrictions, IBinder token, int userHandle); in setUserRestrictions() argument
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppOpsService.java | 2216 final SparseArray<Restriction> restrictions = mAudioRestrictions.valueAt(o); in dump() local 2217 for (int i=0; i<restrictions.size(); i++) { in dump() 2223 final int usage = restrictions.keyAt(i); in dump() 2226 Restriction r = restrictions.valueAt(i); in dump() 2344 public void setUserRestrictions(Bundle restrictions, IBinder token, int userHandle) { in setUserRestrictions() argument 2346 Preconditions.checkNotNull(restrictions); in setUserRestrictions() 2351 setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token, in setUserRestrictions() 2592 boolean[] restrictions = perUserRestrictions.get(userId); in hasRestriction() 2593 if (restrictions == null) { in hasRestriction() 2596 if (!restrictions[restriction]) { in hasRestriction() [all …]
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_framebuffer_target.txt | 40 some device-specific restrictions. Because of this, some EGLConfigs may
|
D | EGL_ANDROID_recordable.txt | 40 some device-specific restrictions. Because of this, some EGLConfigs may be
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 17 package com.android.server.restrictions;
|
/frameworks/compile/slang/ |
D | NOTICE | 248 This file will describe the copyrights, license, and restrictions which apply 258 licenses, and/or restrictions: 320 This file will describe the copyrights, license, and restrictions which apply 330 licenses, and/or restrictions:
|
/frameworks/base/core/java/android/accounts/ |
D | ChooseTypeAndAccountActivity.java | 154 Bundle restrictions = UserManager.get(this) in onCreate() local 157 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false); in onCreate()
|
/frameworks/support/development/checkstyle/ |
D | LICENSE | 35 To protect your rights, we need to make restrictions that forbid 37 rights. These restrictions translate to certain responsibilities for 328 restrictions of other proprietary libraries that do not normally 370 restrictions on the recipients' exercise of the rights granted herein.
|
/frameworks/native/opengl/tests/angeles/ |
D | license-LGPL.txt | 35 To protect your rights, we need to make restrictions that forbid 37 rights. These restrictions translate to certain responsibilities for 328 restrictions of other proprietary libraries that do not normally 370 restrictions on the recipients' exercise of the rights granted herein.
|
/frameworks/compile/libbcc/ |
D | NOTICE | 250 This file will describe the copyrights, license, and restrictions which apply 260 licenses, and/or restrictions:
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 6567 final Set<String> restrictions = in setDeviceOwner() local 6569 if (!restrictions.isEmpty()) { in setDeviceOwner() 6570 for (String restriction : restrictions) { in setDeviceOwner() 6573 activeAdmin.defaultEnabledRestrictionsAlreadySet.addAll(restrictions); in setDeviceOwner() 6574 Slog.i(LOG_TAG, "Enabled the following restrictions by default: " + restrictions); in setDeviceOwner() 8370 final Bundle restrictions = activeAdmin.ensureUserRestrictions(); in setUserRestriction() local 8372 restrictions.putBoolean(key, true); in setUserRestriction() 8374 restrictions.remove(key); in setUserRestriction()
|