/frameworks/base/services/core/java/com/android/server/pm/ |
D | RestrictionsSet.java | 61 public RestrictionsSet(@UserIdInt int userId, @NonNull Bundle restrictions) { in RestrictionsSet() argument 62 if (restrictions.isEmpty()) { in RestrictionsSet() 65 mUserRestrictions.put(userId, restrictions); in RestrictionsSet() 74 public boolean updateRestrictions(@UserIdInt int userId, @Nullable Bundle restrictions) { in updateRestrictions() argument 76 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions() 80 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictions() 81 mUserRestrictions.put(userId, restrictions); in updateRestrictions() 215 Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in readRestrictions() local 216 restrictionsSet.updateRestrictions(userId, restrictions); in readRestrictions()
|
D | UserTypeFactory.java | 200 final Bundle restrictions = new Bundle(); in getDefaultSecondaryUserRestrictions() local 201 restrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS, true); in getDefaultSecondaryUserRestrictions() 202 restrictions.putBoolean(UserManager.DISALLOW_SMS, true); in getDefaultSecondaryUserRestrictions() 203 return restrictions; in getDefaultSecondaryUserRestrictions() 208 final Bundle restrictions = getDefaultSecondaryUserRestrictions(); in getDefaultGuestUserRestrictions() local 209 restrictions.putBoolean(UserManager.DISALLOW_CONFIG_WIFI, true); in getDefaultGuestUserRestrictions() 210 restrictions.putBoolean(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, true); in getDefaultGuestUserRestrictions() 211 return restrictions; in getDefaultGuestUserRestrictions() 293 final Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in customizeBuilders() local 294 builder.setDefaultRestrictions(restrictions); in customizeBuilders()
|
D | UserRestrictionsUtils.java | 324 @Nullable Bundle restrictions, @NonNull String tag) throws IOException { in writeRestrictions() argument 325 if (restrictions == null) { in writeRestrictions() 330 for (String key : restrictions.keySet()) { in writeRestrictions() 335 if (restrictions.getBoolean(key)) { in writeRestrictions() 345 public static void readRestrictions(XmlPullParser parser, Bundle restrictions) { in readRestrictions() argument 346 restrictions.clear(); in readRestrictions() 350 restrictions.putBoolean(key, Boolean.parseBoolean(value)); in readRestrictions() 827 public static void dumpRestrictions(PrintWriter pw, String prefix, Bundle restrictions) { in dumpRestrictions() argument 829 if (restrictions != null) { in dumpRestrictions() 830 for (String key : restrictions.keySet()) { in dumpRestrictions() [all …]
|
D | UserTypeDetails.java | 288 final Bundle restrictions = new Bundle(); in dump() local 293 restrictions.putBoolean(userRestriction, true); in dump() 296 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", restrictions); in dump() 402 public Builder setDefaultRestrictions(@Nullable Bundle restrictions) { in setDefaultRestrictions() argument 403 mDefaultRestrictions = restrictions; in setDefaultRestrictions()
|
D | UserManagerService.java | 1756 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument 1760 mGuestRestrictions.putAll(restrictions); in setDefaultGuestRestrictions() 1868 Bundle restrictions = local.getRestrictions(targetUserId); in updateLocalRestrictionsForTargetUsersLR() local 1869 if (restrictions == null) { in updateLocalRestrictionsForTargetUsersLR() 1870 restrictions = new Bundle(); in updateLocalRestrictionsForTargetUsersLR() 1873 .updateRestrictions(originatingUserId, restrictions)) { in updateLocalRestrictionsForTargetUsersLR() 1924 Bundle restrictions = mCachedEffectiveUserRestrictions.getRestrictions(userId); in getEffectiveUserRestrictions() local 1925 if (restrictions == null) { in getEffectiveUserRestrictions() 1926 restrictions = computeEffectiveUserRestrictionsLR(userId); in getEffectiveUserRestrictions() 1927 mCachedEffectiveUserRestrictions.updateRestrictions(userId, restrictions); in getEffectiveUserRestrictions() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | RestrictionsSetTest.java | 48 Bundle restrictions = newRestrictions(UserManager.ENSURE_VERIFY_APPS); in testUpdateRestrictions_addRestrictions() local 50 assertTrue(mRestrictionsSet.updateRestrictions(originatingUserId, restrictions)); in testUpdateRestrictions_addRestrictions() 52 assertRestrictions(restrictions, mRestrictionsSet.getRestrictions(originatingUserId)); in testUpdateRestrictions_addRestrictions() 57 Bundle restrictions = newRestrictions(UserManager.ENSURE_VERIFY_APPS); in testUpdateRestrictions_removeRestrictions() local 58 mRestrictionsSet.updateRestrictions(originatingUserId, restrictions); in testUpdateRestrictions_removeRestrictions() 67 Bundle restrictions = newRestrictions(UserManager.ENSURE_VERIFY_APPS); in testUpdateRestrictions_noChange() local 68 mRestrictionsSet.updateRestrictions(originatingUserId, restrictions); in testUpdateRestrictions_noChange() 70 assertFalse(mRestrictionsSet.updateRestrictions(originatingUserId, restrictions)); in testUpdateRestrictions_noChange()
|
D | UserManagerServiceUserTypeTest.java | 72 final Bundle restrictions = makeRestrictionsBundle("r1", "r2"); in testUserTypeBuilder_createUserType() local 86 .setDefaultRestrictions(restrictions) in testUserTypeBuilder_createUserType() 98 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType() 99 assertNotSame(restrictions, type.getDefaultRestrictions()); in testUserTypeBuilder_createUserType() 213 final Bundle restrictions = makeRestrictionsBundle("no_config_vpn", "no_config_tethering"); in testUserTypeFactoryCustomize_profile() local 219 .setDefaultRestrictions(restrictions)); in testUserTypeFactoryCustomize_profile() 226 .setDefaultRestrictions(restrictions)); in testUserTypeFactoryCustomize_profile() 235 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile() 277 final Bundle restrictions = makeRestrictionsBundle("no_config_vpn", "no_config_tethering"); in testUserTypeFactoryCustomize_full() local 282 .setDefaultRestrictions(restrictions)); in testUserTypeFactoryCustomize_full() [all …]
|
D | UserManagerTest.java | 536 Bundle restrictions = mUserManager.getUserRestrictions(UserHandle.of(userInfo.id)); in testAddRestrictedProfile() local 539 .that(restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS)) in testAddRestrictedProfile() 543 .that(restrictions.getBoolean(UserManager.DISALLOW_SHARE_LOCATION)) in testAddRestrictedProfile() 710 Bundle restrictions = new Bundle(); in testSetDefaultGuestRestrictions() local 711 restrictions.putBoolean(UserManager.DISALLOW_FUN, true); in testSetDefaultGuestRestrictions() 712 mUserManager.setDefaultGuestRestrictions(restrictions); in testSetDefaultGuestRestrictions()
|
/frameworks/base/services/restrictions/ |
D | Android.bp | 2 name: "services.restrictions-sources", 9 name: "services.restrictions", 11 srcs: [":services.restrictions-sources"],
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AudioRestrictionManager.java | 155 final SparseArray<Restriction> restrictions = mZenModeAudioRestrictions.valueAt(o); in dump() local 156 for (int i = 0; i < restrictions.size(); i++) { in dump() 162 final int usage = restrictions.keyAt(i); in dump() 165 Restriction r = restrictions.valueAt(i); in dump()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestUtils.java | 62 public static RestrictionsSet newRestrictions(int userId, String... restrictions) { in newRestrictions() argument 63 Bundle localRestrictionsBundle = newRestrictions(restrictions); in newRestrictions() 69 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() argument 71 for (String restriction : restrictions) { in newRestrictions()
|
/frameworks/base/core/java/android/content/ |
D | RestrictionsManager.java | 32 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()
|
D | RestrictionEntry.java | 370 public void setRestrictions(RestrictionEntry[] restrictions) { in setRestrictions() argument 371 mRestrictions = restrictions; in setRestrictions()
|
/frameworks/base/cmds/incidentd/src/ |
D | PrivacyFilter.cpp | 126 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() 252 PrivacyFilter::PrivacyFilter(int sectionId, const Privacy* restrictions) in PrivacyFilter() argument 254 mRestrictions(restrictions), in PrivacyFilter()
|
D | PrivacyFilter.h | 65 PrivacyFilter(int sectionId, const Privacy* restrictions);
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 84 void setApplicationRestrictions(in String packageName, in Bundle restrictions, int userId); in setApplicationRestrictions() argument 87 void setDefaultGuestRestrictions(in Bundle restrictions); in setDefaultGuestRestrictions() argument
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/restrictions/ |
D | JobRestriction.java | 17 package com.android.server.job.restrictions;
|
D | ThermalStatusRestriction.java | 17 package com.android.server.job.restrictions;
|
/frameworks/base/core/java/android/service/restrictions/ |
D | RestrictionsReceiver.java | 17 package android.service.restrictions;
|
/frameworks/base/services/ |
D | Android.bp | 33 ":services.restrictions-sources", 76 "services.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/core/proto/android/app/ |
D | tvsettings_enums.proto | 400 // TvSettings > Apps > Security & restrictions 403 // TvSettings > Apps > Security & restrictions > Unknown sources 406 // TvSettings > Apps > Security & restrictions > Verify apps (toggle) 409 // TvSettings > Apps > Security & restrictions > Create restricted profile 412 // TvSettings > Apps > Security & restrictions > Enter restricted profile 415 // TvSettings > Apps > Security & restrictions > 419 // TvSettings > Apps > Security & restrictions > 423 // TvSettings > Apps > Security & restrictions > 427 // TvSettings > Apps > Security & restrictions >
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_framebuffer_target.txt | 40 some device-specific restrictions. Because of this, some EGLConfigs may
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IAppOpsService.aidl | 89 void setUserRestrictions(in Bundle restrictions, IBinder token, int userHandle); in setUserRestrictions() argument
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 17 package com.android.server.restrictions;
|