/toolchain/binutils/binutils-2.25/gas/testsuite/gas/mmix/ |
err-local2.s | 2 % Check that error handling for the restrictions on LOCAL works.
|
err-local1.s | 2 % Check that error handling for the restrictions on LOCAL works.
|
/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...] |
/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...] |
/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);
|
/frameworks/base/services/restrictions/ |
Android.mk | 5 LOCAL_MODULE := services.restrictions
|
/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/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...] |
/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/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);
|
/frameworks/base/core/java/android/os/ |
UserManagerInternal.java | 35 * @param newRestrictions new user restrictions 36 * @param prevRestrictions user restrictions that were previously set 43 * restrictions enforced by the user. 45 * @param userId target user id for the local restrictions. 46 * @param restrictions a bundle of user restrictions. 52 public abstract void setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, 56 * Returns the "base" user restrictions.
|
IUserManager.aidl | 71 void setApplicationRestrictions(in String packageName, in Bundle restrictions, 75 void setDefaultGuestRestrictions(in Bundle restrictions);
|
/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...] |
/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/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
|
/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...] |
/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...] |
/build/make/core/ |
local_vndk.mk | 35 # If we're not using the VNDK, drop all restrictions
|
/external/flatbuffers/android/jni/ |
Application.mk | 8 # freely, subject to the following restrictions:
|
/external/flatbuffers/samples/android/jni/ |
Application.mk | 8 # freely, subject to the following restrictions:
|
/frameworks/base/core/java/com/android/internal/app/ |
IAppOpsService.aidl | 48 void setUserRestrictions(in Bundle restrictions, IBinder token, int userHandle);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DpmTestUtils.java | 60 public static Bundle newRestrictions(String... restrictions) { 62 for (String restriction : restrictions) {
|