Home | History | Annotate | Download | only in os

Lines Matching refs:restrictions

40      * Key for user restrictions. Specifies if a user is disallowed from adding and removing
51 * Key for user restrictions. Specifies if a user is disallowed from changing Wi-Fi
62 * Key for user restrictions. Specifies if a user is disallowed from installing applications.
72 * Key for user restrictions. Specifies if a user is disallowed from uninstalling applications.
82 * Key for user restrictions. Specifies if a user is disallowed from toggling location sharing.
93 * Key for user restrictions. Specifies if a user is disallowed from enabling the
104 * Key for user restrictions. Specifies if a user is disallowed from configuring bluetooth.
114 * Key for user restrictions. Specifies if a user is disallowed from transferring files over
124 * Key for user restrictions. Specifies if a user is disallowed from configuring user
134 * Key for user restrictions. Specifies if a user is disallowed from removing users.
203 * a reduced number of available apps, app restrictions and account restrictions.
266 * Returns the user-wide restrictions imposed on this user.
267 * @return a Bundle containing all the restrictions.
274 * Returns the user-wide restrictions imposed on the user specified by <code>userHandle</code>.
275 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
276 * @return a Bundle containing all the restrictions.
282 Log.w(TAG, "Could not get user restrictions", re);
288 * Sets all the user-wide restrictions for this user.
290 * @param restrictions the Bundle containing all the restrictions.
292 public void setUserRestrictions(Bundle restrictions) {
293 setUserRestrictions(restrictions, Process.myUserHandle());
297 * Sets all the user-wide restrictions for the specified user.
299 * @param restrictions the Bundle containing all the restrictions.
300 * @param userHandle the UserHandle of the user for whom to set the restrictions.
302 public void setUserRestrictions(Bundle restrictions, UserHandle userHandle) {
304 mService.setUserRestrictions(restrictions, userHandle.getIdentifier());
306 Log.w(TAG, "Could not set user restrictions", re);
584 * Returns a Bundle containing any saved application restrictions for this user, for the
587 * @return a Bundle with the restrictions as key/value pairs, or null if there are no
588 * saved restrictions. The values can be of type Boolean, String or String[], depending
595 Log.w(TAG, "Could not get application restrictions for package " + packageName);
607 Log.w(TAG, "Could not get application restrictions for user " + user.getIdentifier());
615 public void setApplicationRestrictions(String packageName, Bundle restrictions,
618 mService.setApplicationRestrictions(packageName, restrictions, user.getIdentifier());
620 Log.w(TAG, "Could not set application restrictions for user " + user.getIdentifier());