Searched refs:restrictions (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/support/car/src/main/java/androidx/car/drawer/
H A DDrawerItemViewHolder.java92 * Update children views to comply with car UX restrictions.
96 * @param restrictions current car UX restrictions.
98 void complyWithUxRestrictions(CarUxRestrictions restrictions) { argument
99 CarUxRestrictionsUtils.comply(itemView.getContext(), restrictions, getText());
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserRestrictionsUtilsTest.java218 SparseArray<Bundle> restrictions = new SparseArray<>();
219 assertNull(UserRestrictionsUtils.mergeAll(restrictions));
221 restrictions.put(0, newRestrictions(UserManager.DISALLOW_ADJUST_VOLUME));
222 restrictions.put(1, newRestrictions(UserManager.DISALLOW_USB_FILE_TRANSFER));
223 restrictions.put(2, newRestrictions(UserManager.DISALLOW_APPS_CONTROL));
225 Bundle result = UserRestrictionsUtils.mergeAll(restrictions);
238 // User 0 has only local restrictions, nothing should change.
241 // restrictions should be removed for this user.
318 // Make sure false restrictions are handled correctly.
H A DUserManagerTest.java135 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle());
137 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI));
176 // Assert user is not admin and has SMS and calls restrictions.
189 // Verify user became admin and SMS and call restrictions are lifted.
342 Bundle restrictions = mUserManager.getUserRestrictions(UserHandle.of(userInfo.id));
344 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS));
346 restrictions.getBoolean(UserManager.DISALLOW_SHARE_LOCATION));
477 // Note this will fail if DO already sets those restrictions.
486 Bundle restrictions = new Bundle();
487 restrictions
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DUserRestrictionsUtils.java54 * Utility methods for user restrictions.
140 * User restrictions that cannot be set by profile owners of secondary users. When set by DO
162 * User restrictions that cannot be set by profile owners. Applied to all users.
169 * User restrictions that can't be changed by device owner or profile owner.
178 * Special user restrictions that can be applied to a user as well as to all users globally,
192 * User restrictions that default to {@code true} for device owners.
199 * User restrictions that default to {@code true} for managed profile owners.
210 * Special user restrictions that are always applied to all users no matter who sets them.
229 @Nullable Bundle restrictions, @NonNull String tag) throws IOException {
230 if (restrictions
228 writeRestrictions(@onNull XmlSerializer serializer, @Nullable Bundle restrictions, @NonNull String tag) argument
250 readRestrictions(XmlPullParser parser, Bundle restrictions) argument
313 mergeAll(SparseArray<Bundle> restrictions) argument
755 dumpRestrictions(PrintWriter pw, String prefix, Bundle restrictions) argument
803 restrictionsChanged(Bundle oldRestrictions, Bundle newRestrictions, String... restrictions) argument
[all...]
H A DUserManagerService.java168 private static final String TAG_RESTRICTIONS = "restrictions";
285 * User restrictions set via UserManager. This doesn't include restrictions set by
292 * (Otherwise we won't be able to detect what restrictions have changed in
299 * Cached user restrictions that are in effect -- i.e. {@link #mBaseUserRestrictions} combined
300 * with device / profile owner restrictions. We'll initialize it lazily; use
307 * (Otherwise we won't be able to detect what restrictions have changed in
314 * User restrictions that have already been applied in
315 * {@link #updateUserRestrictionsInternalLR(Bundle, int)}. We use it to detect restrictions
323 * User restrictions se
1374 setDefaultGuestRestrictions(Bundle restrictions) argument
1388 setDevicePolicyUserRestrictionsInner(int userId, @Nullable Bundle restrictions, boolean isDeviceOwner, int cameraRestrictionScope) argument
1446 updateRestrictionsIfNeededLR(int userId, @Nullable Bundle restrictions, SparseArray<Bundle> restrictionsArray) argument
3072 setApplicationRestrictions(String packageName, Bundle restrictions, int userId) argument
3145 readEntry(Bundle restrictions, ArrayList<String> values, XmlPullParser parser) argument
3200 writeApplicationRestrictionsLAr(String packageName, Bundle restrictions, int userId) argument
3210 writeApplicationRestrictionsLAr(Bundle restrictions, AtomicFile restrictionsFile) argument
3233 writeBundle(Bundle restrictions, XmlSerializer serializer) argument
3733 setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, boolean isDeviceOwner, int cameraRestrictionScope) argument
[all...]
/frameworks/base/core/java/android/os/
H A DIUserManager.aidl77 void setApplicationRestrictions(in String packageName, in Bundle restrictions,
81 void setDefaultGuestRestrictions(in Bundle restrictions);
H A DUserManagerInternal.java36 * @param newRestrictions new user restrictions
37 * @param prevRestrictions user restrictions that were previously set
44 * restrictions enforced by the user.
46 * @param userId target user id for the local restrictions.
47 * @param restrictions a bundle of user restrictions.
53 public abstract void setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, argument
57 * Returns the "base" user restrictions.
H A DUserManager.java126 * <p>Key for user restrictions.
139 * <p>Key for user restrictions.
151 * <p>Key for user restrictions.
164 * <p>Key for user restrictions.
176 * <p>Key for user restrictions.
190 * <p>Key for user restrictions.
205 * <p>Key for user restrictions.
220 * <p>Key for user restrictions.
234 * <p>Key for user restrictions.
248 * <p>Key for user restrictions
1687 setUserRestrictions(Bundle restrictions) argument
1697 setUserRestrictions(Bundle restrictions, UserHandle userHandle) argument
2767 setApplicationRestrictions(String packageName, Bundle restrictions, UserHandle user) argument
2793 setDefaultGuestRestrictions(Bundle restrictions) argument
[all...]
/frameworks/base/core/java/android/service/restrictions/
H A DRestrictionsReceiver.java17 package android.service.restrictions;
/frameworks/base/core/java/android/content/
H A DRestrictionsManager.java30 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.
55 * addition to the statically imposed restrictions. Dynamic requests are app-specific
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.
72 * &lt;restrictions xmlns:android="http://schemas.android.com/apk/res/android" &gt;
88 * &lt;/restrictions&gt;
106 * Only restrictions o
[all...]
H A DRestrictionEntry.java27 * Applications can expose restrictions for a restricted user on a
28 * multiuser device. The administrator can configure these restrictions that will then be
31 * Any application that chooses to expose such restrictions does so by implementing a
33 * The receiver then returns a result bundle that contains an entry called "restrictions", whose
95 * restrictions
101 * {@link android.os.Bundle bundles} of restrictions
133 * List of nested restrictions. Used by {@link #TYPE_BUNDLE bundle} and
134 * {@link #TYPE_BUNDLE_ARRAY bundle_array} restrictions.
370 public void setRestrictions(RestrictionEntry[] restrictions) { argument
371 mRestrictions = restrictions;
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DIAppOpsService.aidl50 void setUserRestrictions(in Bundle restrictions, IBinder token, int userHandle);
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DSubheaderListItem.java191 * Update children views to comply with car UX restrictions.
195 * @param restrictions current car UX restrictions.
198 protected void complyWithUxRestrictions(CarUxRestrictions restrictions) { argument
199 CarUxRestrictionsUtils.comply(itemView.getContext(), restrictions, getText());
H A DListItem.java253 * @param restrictions current car UX restrictions.
255 protected abstract void complyWithUxRestrictions(CarUxRestrictions restrictions); argument
H A DSeekbarListItem.java602 protected void complyWithUxRestrictions(CarUxRestrictions restrictions) { argument
603 CarUxRestrictionsUtils.comply(itemView.getContext(), restrictions, getText());
H A DTextListItem.java870 * Update children views to comply with car UX restrictions.
874 * @param restrictions current car UX restrictions.
877 protected void complyWithUxRestrictions(CarUxRestrictions restrictions) { argument
878 CarUxRestrictionsUtils.comply(itemView.getContext(), restrictions, getBody());
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmTestUtils.java61 public static Bundle newRestrictions(String... restrictions) { argument
63 for (String restriction : restrictions) {
/frameworks/support/car/src/main/java/androidx/car/moderator/
H A DSpeedBumpController.java99 // By default, no limiting until UXR restrictions kick in.
255 private void updateUnlimitedModeEnabled(CarUxRestrictions restrictions) { argument
257 mContentRateLimiter.setUnlimitedMode(!restrictions.isRequiresDistractionOptimization());
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
H A DRestrictionsManagerService.java17 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");
/frameworks/base/services/core/java/com/android/server/
H A DAppOpsService.java204 * These are app op restrictions imposed per user from various parties.
2052 // If we are the system, bypass user restrictions for certain codes
3207 final SparseArray<Restriction> restrictions = mAudioRestrictions.valueAt(o);
3208 for (int i=0; i<restrictions.size(); i++) {
3214 final int usage = restrictions.keyAt(i);
3217 Restriction r = restrictions.valueAt(i);
3391 pw.println(" User restrictions for token " + token + ":");
3442 public void setUserRestrictions(Bundle restrictions, IBinder token, int userHandle) { argument
3444 Preconditions.checkNotNull(restrictions);
3449 setUserRestrictionNoCheck(i, restrictions
[all...]
/frameworks/base/core/java/android/accounts/
H A DChooseTypeAndAccountActivity.java154 Bundle restrictions = UserManager.get(this)
157 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false);
/frameworks/support/car/car-stubs/
H A Dandroid.car.jarMETA-INF/ META-INF/MANIFEST.MF android/car/Car.class Car.java package android ...
/frameworks/base/services/java/com/android/server/
H A DSystemServer.java106 import com.android.server.restrictions.RestrictionsManagerService;
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java342 = "application-restrictions-manager";
875 private static final String TAG_USER_RESTRICTIONS = "user-restrictions";
877 "default-enabled-user-restrictions";
992 // User restrictions that have already been enabled by default for this admin (either when
994 // by default" restrictions is newly added).
1762 // The removed admin might have disabled camera, so update user restrictions.
2261 /** Apply default restrictions that haven't been applied to device owners yet. */
2270 /** Apply default restrictions that haven't been applied to profile owners yet. */
2275 // The following restrictions used to be applied to managed profiles by different
2277 // restrictions s
[all...]
/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManager.java75 import android.service.restrictions.RestrictionsReceiver;
1107 * to remotely control restrictions on the user.
1356 * Delegation of application restrictions management. This scope grants access to the
1359 public static final String DELEGATION_APP_RESTRICTIONS = "delegation-app-restrictions";
2070 * Called by an application that is administering the device to set the password restrictions it
2086 * {@link #getParentProfileInstance(ComponentName)} in order to set restrictions on the parent
2109 * restrictions on this user and its participating profiles. Restrictions on profiles that have
2114 * restrictions on the parent profile.
2152 * {@link #getParentProfileInstance(ComponentName)} in order to set restrictions on the parent
2173 * restrictions o
[all...]

Completed in 844 milliseconds

12