/cts/hostsidetests/devicepolicy/app/AppRestrictionsTargetApp/src/com/android/cts/apprestrictions/targetapp/ |
ApplicationRestrictionsActivity.java | 27 * The actual test will set restrictions for this package, and the purpose of this 28 * activity is to retrieve those restrictions and relay them back to the test for validation. 52 Bundle restrictions = mUserManager.getApplicationRestrictions(getPackageName()); local 55 .putExtra("value", restrictions));
|
/frameworks/base/core/java/android/service/restrictions/ |
RestrictionsReceiver.java | 17 package android.service.restrictions; 27 * Abstract implementation of a Restrictions Provider BroadcastReceiver. To implement a 28 * Restrictions Provider, extend from this class and implement the abstract methods. 30 * component as a Restrictions Provider using 33 * The function of a Restrictions Provider is to transport permission requests from apps on this 46 * authorization by a local or remote administrator other than the user. The Restrictions 68 * Intercept standard Restrictions Provider broadcasts. Implementations
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
AlwaysOnVpnTest.java | 58 /* restrictions */ null); 82 final Bundle restrictions = new Bundle(); local 83 restrictions.putStringArray(RESTRICTION_ALLOWED, new String[] {mPackageName}); 85 restrictions); 91 final Bundle restrictions = new Bundle(); local 92 restrictions.putStringArray(RESTRICTION_DISALLOWED, new String[] {mPackageName}); 94 restrictions);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
UninstallDropTarget.java | 54 Bundle restrictions = userManager.getUserRestrictions(); local 55 sUninstallDisabled = restrictions.getBoolean(UserManager.DISALLOW_APPS_CONTROL, false) 56 || restrictions.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS, false);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
UserRestrictionsUtils.java | 49 * Utility methods for user restrictions. 123 * User restrictions that cannot be set by profile owners of secondary users. When set by DO 144 * User restrictions that can't be changed by device owner or profile owner. 153 * Special user restrictions that can be applied to a user as well as to all users globally, 165 * User restrictions that default to {@code true} for device owners. 172 * User restrictions that default to {@code true} for managed profile owners. 183 * Special user restrictions that are always applied to all users no matter who sets them. 201 @Nullable Bundle restrictions, @NonNull String tag) throws IOException { 202 if (restrictions == null) { 207 for (String key : restrictions.keySet()) [all...] |
UserManagerService.java | 166 private static final String TAG_RESTRICTIONS = "restrictions"; 278 * User restrictions set via UserManager. This doesn't include restrictions set by 285 * (Otherwise we won't be able to detect what restrictions have changed in 292 * Cached user restrictions that are in effect -- i.e. {@link #mBaseUserRestrictions} combined 293 * with device / profile owner restrictions. We'll initialize it lazily; use 300 * (Otherwise we won't be able to detect what restrictions have changed in 307 * User restrictions that have already been applied in 308 * {@link #updateUserRestrictionsInternalLR(Bundle, int)}. We use it to detect restrictions 316 * User restrictions set by {@link com.android.server.devicepolicy.DevicePolicyManagerService 1293 Bundle restrictions = mCachedEffectiveUserRestrictions.get(userId); local 1308 Bundle restrictions = getEffectiveUserRestrictions(userId); local 1950 Bundle restrictions = new Bundle(); local 2514 Bundle restrictions = new Bundle(); local 2909 final Bundle restrictions = new Bundle(); local [all...] |
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
ReflectorVpnService.java | 80 final Bundle restrictions = um.getApplicationRestrictions(getPackageName()); local 82 String[] addressArray = restrictions.getStringArray(RESTRICTION_ADDRESSES); 99 String[] routeArray = restrictions.getStringArray(RESTRICTION_ROUTES); 115 String[] allowedArray = restrictions.getStringArray(RESTRICTION_ALLOWED); 130 String[] disallowedArray = restrictions.getStringArray(RESTRICTION_DISALLOWED);
|
/developers/build/prebuilts/gradle/AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/ |
AppRestrictionSchemaFragment.java | 44 * disabled according to the restrictions set by device/profile owner. You can use the 130 Bundle restrictions = manager.getApplicationRestrictions(); local 137 updateCanSayHello(entry, restrictions); 139 updateMessage(entry, restrictions); 141 updateNumber(entry, restrictions); 143 updateRank(entry, restrictions); 145 updateApprovals(entry, restrictions); 147 updateItems(restrictions); 152 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { 154 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) [all...] |
/developers/samples/android/admin/AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/ |
AppRestrictionSchemaFragment.java | 44 * disabled according to the restrictions set by device/profile owner. You can use the 130 Bundle restrictions = manager.getApplicationRestrictions(); local 137 updateCanSayHello(entry, restrictions); 139 updateMessage(entry, restrictions); 141 updateNumber(entry, restrictions); 143 updateRank(entry, restrictions); 145 updateApprovals(entry, restrictions); 147 updateItems(restrictions); 152 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { 154 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) [all...] |
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/ |
AppRestrictionSchemaFragment.java | 41 * disabled according to the restrictions set by device/profile owner. You can use the 102 Bundle restrictions = manager.getApplicationRestrictions(); local 109 updateCanSayHello(entry, restrictions); 111 updateMessage(entry, restrictions); 113 updateNumber(entry, restrictions); 115 updateRank(entry, restrictions); 117 updateApprovals(entry, restrictions); 119 updateItems(restrictions); 124 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { 126 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) [all...] |
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
RestrictionsManagerService.java | 17 package com.android.server.restrictions; 104 // Check if there is a restrictions provider 107 "Cannot request permission without a restrictions provider registered"); 137 // Check if there is a restrictions provider 140 "Cannot request permission without a restrictions provider registered"); 170 throw new SecurityException("No restrictions provider registered for user"); 173 "Restrictions provider does not match caller ");
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserRestrictionsUtilsTest.java | 130 // Restrictions set by DO. 164 // Restrictions set by PO. 213 SparseArray<Bundle> restrictions = new SparseArray<>(); local 214 assertNull(UserRestrictionsUtils.mergeAll(restrictions)); 216 restrictions.put(0, newRestrictions(UserManager.DISALLOW_ADJUST_VOLUME)); 217 restrictions.put(1, newRestrictions(UserManager.DISALLOW_USB_FILE_TRANSFER)); 218 restrictions.put(2, newRestrictions(UserManager.DISALLOW_APPS_CONTROL)); 220 Bundle result = UserRestrictionsUtils.mergeAll(restrictions); 233 // User 0 has only local restrictions, nothing should change. 236 // restrictions should be removed for this user [all...] |
UserManagerTest.java | 135 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); local 137 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); 315 Bundle restrictions = mUserManager.getUserRestrictions(UserHandle.of(userInfo.id)); local 317 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS)); 319 restrictions.getBoolean(UserManager.DISALLOW_SHARE_LOCATION)); 447 // Note this will fail if DO already sets those restrictions. 456 Bundle restrictions = new Bundle(); local 457 restrictions.putBoolean(UserManager.DISALLOW_FUN, true); 458 mUserManager.setDefaultGuestRestrictions(restrictions);
|
/frameworks/base/core/java/android/content/ |
RestrictionsManager.java | 30 import android.service.restrictions.RestrictionsReceiver; 47 * Provides a mechanism for apps to query restrictions imposed by an entity that 49 * device administrator to override default app-specific restrictions or any other 52 * Apps can expose a set of restrictions via an XML file specified in the manifest. 54 * If the user has an active Restrictions Provider, dynamic requests can be made in 55 * addition to the statically imposed restrictions. Dynamic requests are app-specific 59 * Restrictions Provider. The Restrictions Provider can respond back to requests by calling 65 * Static restrictions are specified by an XML file referenced by a meta-data attribute 67 * to be able to read the list of available restrictions from the apk 561 ArrayList<RestrictionEntry> restrictions = new ArrayList<>(); local 719 RestrictionEntry[] restrictions = entry.getRestrictions(); local [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
AppRestrictionsFragment.java | 135 private ArrayList<RestrictionEntry> restrictions; field in class:AppRestrictionsFragment.AppRestrictionsPreference 150 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { 151 this.restrictions = restrictions; 163 return restrictions; 397 // If the app is required and has no restrictions, skip showing it 401 // Only do this for restricted profiles, not single-user restrictions 454 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions( local 456 RestrictionEntry locationRestriction = restrictions.get(0); 458 p.setRestrictions(restrictions); 531 ArrayList<RestrictionEntry> restrictions = appPref.getRestrictions(); local 625 final ArrayList<RestrictionEntry> restrictions = results.getParcelableArrayList( local [all...] |
/art/compiler/optimizing/ |
loop_optimization.cc | 257 // Test vector restrictions. 258 static bool HasVectorRestrictions(uint64_t restrictions, uint64_t tested) { 259 return (restrictions & tested) != 0; 839 uint64_t restrictions = kNone; local 846 if (TrySetVectorType(type, &restrictions) && 849 VectorizeUse(node, value, generate_code, type, restrictions)) { [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodHelperActivity.java | 156 private static final String ORIGINAL_RESTRICTIONS_NAME = "original restrictions"; 501 // We only care about restrictions set by Cts Verifier. In other cases, we cannot modify 503 Bundle restrictions = mDevicePolicyManager.getUserRestrictions(mAdminReceiverComponent); local 504 return restrictions.getBoolean(DISALLOW_INSTALL_UNKNOWN_SOURCES, false);
|
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 55 * This fragment provides UI and functionality to set restrictions on the AppRestrictionSchema 105 * Current status of the restrictions. 236 * Loads the restrictions for the AppRestrictionSchema sample. 243 List<RestrictionEntry> restrictions = local 246 for (RestrictionEntry restriction : restrictions) { 381 // Note that the owner app needs to remember the restrictions on its own. 482 * Saves all the restrictions.
|
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 55 * This fragment provides UI and functionality to set restrictions on the AppRestrictionSchema 105 * Current status of the restrictions. 236 * Loads the restrictions for the AppRestrictionSchema sample. 243 List<RestrictionEntry> restrictions = local 246 for (RestrictionEntry restriction : restrictions) { 381 // Note that the owner app needs to remember the restrictions on its own. 482 * Saves all the restrictions.
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 55 * This fragment provides UI and functionality to set restrictions on the AppRestrictionSchema 105 * Current status of the restrictions. 236 * Loads the restrictions for the AppRestrictionSchema sample. 243 List<RestrictionEntry> restrictions = local 246 for (RestrictionEntry restriction : restrictions) { 381 // Note that the owner app needs to remember the restrictions on its own. 482 * Saves all the restrictions.
|
/frameworks/base/core/java/android/accounts/ |
ChooseTypeAndAccountActivity.java | 154 Bundle restrictions = UserManager.get(this) local 157 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false);
|
/prebuilts/tools/common/m2/repository/org/apache/maven/maven-artifact/3.2.1/ |
maven-artifact-3.2.1.jar | |
/prebuilts/tools/common/m2/repository/org/apache/maven/maven-artifact/3.3.9/ |
maven-artifact-3.3.9.jar | |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
AppRestrictionsFragment.java | 146 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { 147 this.mRestrictions = restrictions; 428 // If the app is required and has no restrictions, skip showing it 482 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions( local 484 RestrictionEntry locationRestriction = restrictions.get(0); 486 p.setRestrictions(restrictions); 593 ArrayList<RestrictionEntry> restrictions = appPref.getRestrictions(); local 594 if (restrictions != null) { 595 for (RestrictionEntry entry : restrictions) { 620 RestrictionsManager.convertRestrictionsToBundle(restrictions), 663 final ArrayList<RestrictionEntry> restrictions = results.getParcelableArrayList( local [all...] |
/prebuilts/misc/common/robolectric/lib/ |
maven-artifact-2.2.1.jar | |