Home
last modified time | relevance | path

Searched refs:restrictions (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/services/restrictions/
DAndroid.bp2 name: "services.restrictions-sources",
9 name: "services.restrictions",
10 srcs: [":services.restrictions-sources"],
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java289 @Nullable Bundle restrictions, @NonNull String tag) throws IOException { in writeRestrictions() argument
290 if (restrictions == null) { in writeRestrictions()
295 for (String key : restrictions.keySet()) { in writeRestrictions()
300 if (restrictions.getBoolean(key)) { in writeRestrictions()
310 public static void readRestrictions(XmlPullParser parser, Bundle restrictions) { in readRestrictions() argument
311 restrictions.clear(); in readRestrictions()
315 restrictions.putBoolean(key, Boolean.parseBoolean(value)); in readRestrictions()
373 public static Bundle mergeAll(SparseArray<Bundle> restrictions) { in mergeAll() argument
374 if (restrictions.size() == 0) { in mergeAll()
378 for (int i = 0; i < restrictions.size(); i++) { in mergeAll()
[all …]
DUserManagerService.java1484 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument
1488 mGuestRestrictions.putAll(restrictions); in setDefaultGuestRestrictions()
1498 private void setDevicePolicyUserRestrictionsInner(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictionsInner() argument
1504 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()
1556 private boolean updateRestrictionsIfNeededLR(int userId, @Nullable Bundle restrictions, in updateRestrictionsIfNeededLR() argument
1559 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()
1561 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()
1562 restrictionsArray.put(userId, restrictions); in updateRestrictionsIfNeededLR()
1598 Bundle restrictions = mCachedEffectiveUserRestrictions.get(userId); in getEffectiveUserRestrictions() local
1599 if (restrictions == null) { in getEffectiveUserRestrictions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java218 SparseArray<Bundle> restrictions = new SparseArray<>(); in testMergeAll() local
219 assertNull(UserRestrictionsUtils.mergeAll(restrictions)); in testMergeAll()
221 restrictions.put(0, newRestrictions(UserManager.DISALLOW_ADJUST_VOLUME)); in testMergeAll()
222 restrictions.put(1, newRestrictions(UserManager.DISALLOW_USB_FILE_TRANSFER)); in testMergeAll()
223 restrictions.put(2, newRestrictions(UserManager.DISALLOW_APPS_CONTROL)); in testMergeAll()
225 Bundle result = UserRestrictionsUtils.mergeAll(restrictions); in testMergeAll()
DUserManagerTest.java135 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser() local
137 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); in testAddUser()
377 Bundle restrictions = mUserManager.getUserRestrictions(UserHandle.of(userInfo.id)); in testAddRestrictedProfile() local
379 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS)); in testAddRestrictedProfile()
381 restrictions.getBoolean(UserManager.DISALLOW_SHARE_LOCATION)); in testAddRestrictedProfile()
521 Bundle restrictions = new Bundle(); in testSetDefaultGuestRestrictions() local
522 restrictions.putBoolean(UserManager.DISALLOW_FUN, true); in testSetDefaultGuestRestrictions()
523 mUserManager.setDefaultGuestRestrictions(restrictions); in testSetDefaultGuestRestrictions()
/frameworks/base/core/java/android/content/
DRestrictionsManager.java32 import android.service.restrictions.RestrictionsReceiver;
564 ArrayList<RestrictionEntry> restrictions = new ArrayList<>(); in loadManifestRestrictions() local
573 restrictions.add(restriction); in loadManifestRestrictions()
586 return restrictions; in loadManifestRestrictions()
722 RestrictionEntry[] restrictions = entry.getRestrictions(); in addRestrictionToBundle() local
723 Bundle childBundle = convertRestrictionsToBundle(Arrays.asList(restrictions)); in addRestrictionToBundle()
DRestrictionEntry.java370 public void setRestrictions(RestrictionEntry[] restrictions) { in setRestrictions() argument
371 mRestrictions = restrictions; in setRestrictions()
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.cpp129 FieldStripper(const Privacy* restrictions, const sp<ProtoReader>& data,
172 FieldStripper::FieldStripper(const Privacy* restrictions, const sp<ProtoReader>& data, in FieldStripper() argument
174 :mRestrictions(restrictions), in FieldStripper()
246 PrivacyFilter::PrivacyFilter(int sectionId, const Privacy* restrictions) in PrivacyFilter() argument
248 mRestrictions(restrictions), in PrivacyFilter()
DPrivacyFilter.h65 PrivacyFilter(int sectionId, const Privacy* restrictions);
/frameworks/base/core/java/android/os/
DIUserManager.aidl79 void setApplicationRestrictions(in String packageName, in Bundle restrictions, in setApplicationRestrictions() argument
83 void setDefaultGuestRestrictions(in Bundle restrictions); in setDefaultGuestRestrictions() argument
DUserManagerInternal.java53 public abstract void setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictions() argument
DUserManager.java1901 public void setUserRestrictions(Bundle restrictions) { in setUserRestrictions() argument
1911 public void setUserRestrictions(Bundle restrictions, UserHandle userHandle) { in setUserRestrictions() argument
3131 public void setApplicationRestrictions(String packageName, Bundle restrictions, in setApplicationRestrictions() argument
3134 mService.setApplicationRestrictions(packageName, restrictions, user.getIdentifier()); in setApplicationRestrictions()
3157 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument
3159 mService.setDefaultGuestRestrictions(restrictions); in setDefaultGuestRestrictions()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestUtils.java61 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() argument
63 for (String restriction : restrictions) { in newRestrictions()
/frameworks/base/services/
DAndroid.bp25 ":services.restrictions-sources",
64 "services.restrictions",
/frameworks/base/core/java/android/service/restrictions/
DRestrictionsReceiver.java17 package android.service.restrictions;
/frameworks/compile/mclinker/
DLICENSE.TXT48 This file will describe the copyrights, license, and restrictions which apply
58 licenses, and/or restrictions:
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl72 void setUserRestrictions(in Bundle restrictions, IBinder token, int userHandle); in setUserRestrictions() argument
/frameworks/native/opengl/specs/
DEGL_ANDROID_framebuffer_target.txt40 some device-specific restrictions. Because of this, some EGLConfigs may
DEGL_ANDROID_recordable.txt40 some device-specific restrictions. Because of this, some EGLConfigs may be
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java17 package com.android.server.restrictions;
/frameworks/compile/slang/
DNOTICE248 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/
DChooseTypeAndAccountActivity.java155 Bundle restrictions = UserManager.get(this) in onCreate() local
158 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false); in onCreate()
/frameworks/base/core/proto/android/telephony/
Denums.proto148 * carrier restrictions.
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java4083 final SparseArray<Restriction> restrictions = mAudioRestrictions.valueAt(o); in dump() local
4084 for (int i=0; i<restrictions.size(); i++) { in dump()
4090 final int usage = restrictions.keyAt(i); in dump()
4093 Restriction r = restrictions.valueAt(i); in dump()
4360 public void setUserRestrictions(Bundle restrictions, IBinder token, int userHandle) { in setUserRestrictions() argument
4362 Preconditions.checkNotNull(restrictions); in setUserRestrictions()
4367 setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token, in setUserRestrictions()
4661 boolean[] restrictions = perUserRestrictions.get(userId); in hasRestriction()
4662 if (restrictions == null) { in hasRestriction()
4665 if (!restrictions[restriction]) { in hasRestriction()
[all …]
/frameworks/native/opengl/tests/angeles/
Dlicense-LGPL.txt35 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.

12