Home
last modified time | relevance | path

Searched refs:restrictions (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/core/java/android/content/
DRestrictionsManager.java29 import android.service.restrictions.RestrictionsReceiver;
559 ArrayList<RestrictionEntry> restrictions = new ArrayList<>(); in loadManifestRestrictions() local
568 restrictions.add(restriction); in loadManifestRestrictions()
581 return restrictions; in loadManifestRestrictions()
717 RestrictionEntry[] restrictions = entry.getRestrictions(); in addRestrictionToBundle() local
718 Bundle childBundle = convertRestrictionsToBundle(Arrays.asList(restrictions)); in addRestrictionToBundle()
722 restrictions = entry.getRestrictions(); in addRestrictionToBundle()
723 Bundle[] bundleArray = new Bundle[restrictions.length]; in addRestrictionToBundle()
724 for (int i = 0; i < restrictions.length; i++) { in addRestrictionToBundle()
725 bundleArray[i] = addRestrictionToBundle(new Bundle(), restrictions[i]); in addRestrictionToBundle()
DRestrictionEntry.java370 public void setRestrictions(RestrictionEntry[] restrictions) { in setRestrictions() argument
371 mRestrictions = restrictions; in setRestrictions()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java168 @Nullable Bundle restrictions, @NonNull String tag) throws IOException { in writeRestrictions() argument
169 if (restrictions == null) { in writeRestrictions()
174 for (String key : restrictions.keySet()) { in writeRestrictions()
179 if (restrictions.getBoolean(key)) { in writeRestrictions()
189 public static void readRestrictions(XmlPullParser parser, Bundle restrictions) { in readRestrictions() argument
193 restrictions.putBoolean(key, Boolean.parseBoolean(value)); in readRestrictions()
454 public static void dumpRestrictions(PrintWriter pw, String prefix, Bundle restrictions) { in dumpRestrictions() argument
456 if (restrictions != null) { in dumpRestrictions()
457 for (String key : restrictions.keySet()) { in dumpRestrictions()
458 if (restrictions.getBoolean(key, false)) { in dumpRestrictions()
DUserManagerService.java1105 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument
1109 mGuestRestrictions.putAll(restrictions); in setDefaultGuestRestrictions()
1206 Bundle restrictions = mCachedEffectiveUserRestrictions.get(userId); in getEffectiveUserRestrictions() local
1207 if (restrictions == null) { in getEffectiveUserRestrictions()
1208 restrictions = computeEffectiveUserRestrictionsLR(userId); in getEffectiveUserRestrictions()
1209 mCachedEffectiveUserRestrictions.put(userId, restrictions); in getEffectiveUserRestrictions()
1211 return restrictions; in getEffectiveUserRestrictions()
1221 Bundle restrictions = getEffectiveUserRestrictions(userId); in hasUserRestriction() local
1222 return restrictions != null && restrictions.getBoolean(restrictionKey); in hasUserRestriction()
1827 Bundle restrictions = new Bundle(); in fallbackToSingleUserLP() local
[all …]
/frameworks/base/docs/html/work/
Dmanaged-configurations.jd21 Managed configurations, previously known as <em>application restrictions</em>,
46 <em>restrictions,</em> and are implemented with files and classes that use this
48 restrictions can actually implement a wide range of configuration options,
49 not just restrictions on app functionality.
124 single top-level <code>&lt;restrictions&gt;</code> element, which contains
159 &lt;restrictions xmlns:android="http://schemas.android.com/apk/res/android"&gt;
168 &lt;/restrictions&gt;
186 <p id="nested-restrictions">
198 &lt;restrictions xmlns:android="http://schemas.android.com/apk/res/android" &gt;
218 &lt;/restrictions&gt;
[all …]
/frameworks/base/core/java/android/os/
DIUserManager.aidl66 void setApplicationRestrictions(in String packageName, in Bundle restrictions, in setApplicationRestrictions() argument
70 void setDefaultGuestRestrictions(in Bundle restrictions); in setDefaultGuestRestrictions() argument
DUserManager.java1160 public void setUserRestrictions(Bundle restrictions) { in setUserRestrictions() argument
1170 public void setUserRestrictions(Bundle restrictions, UserHandle userHandle) { in setUserRestrictions() argument
2110 public void setApplicationRestrictions(String packageName, Bundle restrictions, in setApplicationRestrictions() argument
2113 mService.setApplicationRestrictions(packageName, restrictions, user.getIdentifier()); in setApplicationRestrictions()
2135 public void setDefaultGuestRestrictions(Bundle restrictions) { in setDefaultGuestRestrictions() argument
2137 mService.setDefaultGuestRestrictions(restrictions); in setDefaultGuestRestrictions()
/frameworks/base/services/restrictions/
DAndroid.mk5 LOCAL_MODULE := services.restrictions
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestUtils.java60 public static Bundle newRestrictions(String... restrictions) { in newRestrictions() argument
62 for (String restriction : restrictions) { in newRestrictions()
/frameworks/base/services/
DAndroid.mk30 restrictions \
/frameworks/base/core/java/android/service/restrictions/
DRestrictionsReceiver.java17 package android.service.restrictions;
/frameworks/compile/mclinker/
DLICENSE.TXT48 This file will describe the copyrights, license, and restrictions which apply
58 licenses, and/or restrictions:
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl47 void setUserRestrictions(in Bundle restrictions, IBinder token, int userHandle); in setUserRestrictions() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java100 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser() local
102 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); in testAddUser()
/frameworks/base/services/core/java/com/android/server/
DAppOpsService.java2099 final SparseArray<Restriction> restrictions = mAudioRestrictions.valueAt(o); in dump() local
2100 for (int i=0; i<restrictions.size(); i++) { in dump()
2106 final int usage = restrictions.keyAt(i); in dump()
2109 Restriction r = restrictions.valueAt(i); in dump()
2177 public void setUserRestrictions(Bundle restrictions, IBinder token, int userHandle) { in setUserRestrictions() argument
2179 Preconditions.checkNotNull(restrictions); in setUserRestrictions()
2184 setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token, in setUserRestrictions()
2375 boolean[] restrictions = perUserRestrictions.get(userId); in hasRestriction()
2376 if (restrictions == null) { in hasRestriction()
2379 if (!restrictions[restriction]) { in hasRestriction()
[all …]
/frameworks/base/docs/html/training/monitoring-device-state/
Ddoze-standby.jd21 <li><a href="#restrictions">Doze restrictions</a></li>
98 <h3 id="restrictions">Doze restrictions</h3>
101 The following restrictions apply to your apps while in Doze:
312 restrictions still apply</strong> to the whitelisted app, just as they do to
/frameworks/base/docs/html/about/versions/nougat/
Dandroid-7.0-changes.jd80 enhancements to Doze by applying a subset of CPU and network restrictions
90 system activity restrictions to improve battery life.
95 time, the device enters Doze and applies the first subset of restrictions: It
98 rest of the Doze restrictions to {@link android.os.PowerManager.WakeLock},
100 whether some or all Doze restrictions are being applied, the system wakes the
110 system activity restrictions after the device is stationary for a certain time.
115 removes these processing restrictions. The additional behavior does not
686 <li>Reset password restrictions for device admins now apply to profile
693 <li>Device and profile owners can manage accounts even if restrictions are
695 even if <code>DISALLOW_MODIFY_ACCOUNTS</code> user restrictions are in place.
/frameworks/native/opengl/specs/
DEGL_ANDROID_framebuffer_target.txt40 some device-specific restrictions. Because of this, some EGLConfigs may
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java17 package com.android.server.restrictions;
/frameworks/base/core/java/android/accounts/
DChooseTypeAndAccountActivity.java148 Bundle restrictions = UserManager.get(this) in onCreate() local
151 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false); in onCreate()
/frameworks/compile/slang/
DNOTICE248 This file will describe the copyrights, license, and restrictions which apply
258 licenses, and/or restrictions:
320 This file will describe the copyrights, license, and restrictions which apply
330 licenses, and/or restrictions:
/frameworks/base/docs/html/
Dlegal.jd60 restrictions for re-use, read the complete <a href="license.html">Content License</a>.</p>
70 restrictions. Such services include:</p>
/frameworks/base/docs/html/training/basics/network-ops/
Ddata-saver.jd63 restrictions are being applied. The {@code getRestrictBackgroundStatus()}
82 usage in the foreground and gracefully handle restrictions to background
/frameworks/base/docs/html/topic/performance/
Dbackground-optimization.jd2 page.metaDescription=New restrictions to implicit broadcasts.
60 restrictions:
98 restrictions.
/frameworks/base/docs/html/about/versions/
Dandroid-4.3.jd237 When users create a restricted profile, they can enable restrictions such as which apps are
243 <p>The UI for users to control the restrictions you've built is managed by the system's
245 you must declare the restrictions your app provides by creating a {@link
247 all apps for available restrictions, then builds the UI to allow the primary user to
248 manage restrictions for each restricted profile. </p>
269 <p>The system creates the UI for your app's restrictions in the Settings app and saves each
271 object. When the user opens your app, you can query for any current restrictions by
276 <p>If you want to provide more specific restrictions that can't be handled by boolean, single
278 restrictions and allow users to open that activity from the restriction settings. In your
284 When the primary user enters your activity to set custom restrictions, your
[all …]

123