Home
last modified time | relevance | path

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

12

/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.java1425 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument
1429 mGuestRestrictions.putAll(restrictions); in setDefaultGuestRestrictions()
1439 private void setDevicePolicyUserRestrictionsInner(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictionsInner() argument
1445 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()
1497 private boolean updateRestrictionsIfNeededLR(int userId, @Nullable Bundle restrictions, in updateRestrictionsIfNeededLR() argument
1500 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()
1502 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()
1503 restrictionsArray.put(userId, restrictions); in updateRestrictionsIfNeededLR()
1539 Bundle restrictions = mCachedEffectiveUserRestrictions.get(userId); in getEffectiveUserRestrictions() local
1540 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/services/restrictions/
DAndroid.bp2 name: "services.restrictions",
/frameworks/base/core/java/android/os/
DIUserManager.aidl78 void setApplicationRestrictions(in String packageName, in Bundle restrictions, in setApplicationRestrictions() argument
82 void setDefaultGuestRestrictions(in Bundle restrictions); in setDefaultGuestRestrictions() argument
DUserManagerInternal.java53 public abstract void setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictions() argument
DUserManager.java1887 public void setUserRestrictions(Bundle restrictions) { in setUserRestrictions() argument
1897 public void setUserRestrictions(Bundle restrictions, UserHandle userHandle) { in setUserRestrictions() argument
3071 public void setApplicationRestrictions(String packageName, Bundle restrictions, in setApplicationRestrictions() argument
3074 mService.setApplicationRestrictions(packageName, restrictions, user.getIdentifier()); in setApplicationRestrictions()
3097 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument
3099 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/core/java/android/service/restrictions/
DRestrictionsReceiver.java17 package android.service.restrictions;
/frameworks/base/services/
DAndroid.bp32 "services.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/base/core/proto/android/telephony/
Denums.proto112 * carrier 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/services/core/java/com/android/server/appop/
DAppOpsService.java3936 final SparseArray<Restriction> restrictions = mAudioRestrictions.valueAt(o); in dump() local
3937 for (int i=0; i<restrictions.size(); i++) { in dump()
3943 final int usage = restrictions.keyAt(i); in dump()
3946 Restriction r = restrictions.valueAt(i); in dump()
4213 public void setUserRestrictions(Bundle restrictions, IBinder token, int userHandle) { in setUserRestrictions() argument
4215 Preconditions.checkNotNull(restrictions); in setUserRestrictions()
4220 setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token, in setUserRestrictions()
4514 boolean[] restrictions = perUserRestrictions.get(userId); in hasRestriction()
4515 if (restrictions == null) { in hasRestriction()
4518 if (!restrictions[restriction]) { in hasRestriction()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dany.proto118 // following restrictions and interpretations apply:

12