/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
ApplicationRestrictionsTest.java | 35 * Tests for application restrictions persisting via profile owner: 91 Bundle restrictions = new Bundle(); local 92 restrictions.putString("KEY_STRING", "Foo"); 94 sDpm.setApplicationRestrictions(sAdminReceiver, RESTRICTED_APP, restrictions); 105 Bundle restrictions = new Bundle(); local 106 restrictions.putString("KEY_STRING", "Foo"); 107 restrictions.putInt("KEY_INT", 7); 108 restrictions.putBoolean("KEY_BOOLEAN", true); 109 restrictions.putBoolean("KEY_BOOLEAN_2", false); 110 restrictions.putString("KEY_STRING_2", "Bar") 129 Bundle restrictions = new Bundle(); local [all...] |
/developers/build/prebuilts/gradle/AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/ |
AppRestrictionSchemaFragment.java | 35 * disabled according to the restrictions set by device/profile owner. You can use the 63 // Update the UI according to the configured restrictions 66 Bundle restrictions = restrictionsManager.getApplicationRestrictions(); local 67 updateUI(restrictions); 70 private void updateUI(Bundle restrictions) { 71 if (canSayHello(restrictions)) { 83 * @param restrictions The application restrictions 86 private boolean canSayHello(Bundle restrictions) { 88 boolean canSayHello = restrictions == null ? defaultValue [all...] |
/developers/samples/android/admin/AppRestrictionSchema/Application/src/main/java/com/example/android/apprestrictionschema/ |
AppRestrictionSchemaFragment.java | 35 * disabled according to the restrictions set by device/profile owner. You can use the 63 // Update the UI according to the configured restrictions 66 Bundle restrictions = restrictionsManager.getApplicationRestrictions(); local 67 updateUI(restrictions); 70 private void updateUI(Bundle restrictions) { 71 if (canSayHello(restrictions)) { 83 * @param restrictions The application restrictions 86 private boolean canSayHello(Bundle restrictions) { 88 boolean canSayHello = restrictions == null ? defaultValue [all...] |
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/ |
AppRestrictionSchemaFragment.java | 35 * disabled according to the restrictions set by device/profile owner. You can use the 63 // Update the UI according to the configured restrictions 66 Bundle restrictions = restrictionsManager.getApplicationRestrictions(); local 67 updateUI(restrictions); 70 private void updateUI(Bundle restrictions) { 71 if (canSayHello(restrictions)) { 83 * @param restrictions The application restrictions 86 private boolean canSayHello(Bundle restrictions) { 88 boolean canSayHello = restrictions == null ? defaultValue [all...] |
/frameworks/base/services/restrictions/ |
Android.mk | 5 LOCAL_MODULE := services.restrictions
|
/frameworks/base/core/java/android/os/ |
IUserManager.aidl | 45 void setUserRestrictions(in Bundle restrictions, int userHandle); 46 void setApplicationRestrictions(in String packageName, in Bundle restrictions, 54 void setDefaultGuestRestrictions(in Bundle restrictions);
|
UserManager.java | 49 * <p/>Key for user restrictions. 60 * <p/>Key for user restrictions. 71 * <p/>Key for user restrictions. 82 * <p/>Key for user restrictions. 93 * <p/>Key for user restrictions. 105 * <p/>Key for user restrictions. 116 * <p/>Key for user restrictions. 128 * <p/>Key for user restrictions. 139 * <p/>Key for user restrictions. 150 * <p/>Key for user restrictions [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
UserManagerService.java | 101 private static final String TAG_RESTRICTIONS = "restrictions"; 466 * If default guest restrictions haven't been initialized yet, add the basic 467 * restrictions. 485 public void setDefaultGuestRestrictions(Bundle restrictions) { 489 mGuestRestrictions.putAll(restrictions); 497 Bundle restrictions = mUserRestrictions.get(userId); local 498 return restrictions != null ? restrictions.getBoolean(restrictionKey) : false; 507 Bundle restrictions = mUserRestrictions.get(userId); local 508 return restrictions != null ? new Bundle(restrictions) : new Bundle() 730 Bundle restrictions = new Bundle(); local 799 Bundle restrictions = mUserRestrictions.get(userInfo.id); local 906 Bundle restrictions = new Bundle(); local 1192 Bundle restrictions = new Bundle(); local 1652 final Bundle restrictions = new Bundle(); local [all...] |
/external/chromium_org/chrome/browser/renderer_host/pepper/ |
pepper_flash_browser_host.cc | 150 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE; local 154 restrictions = PP_FLASHLSORESTRICTIONS_BLOCK; 156 restrictions = PP_FLASHLSORESTRICTIONS_IN_MEMORY; 160 static_cast<int32_t>(restrictions)));
|
/external/chromium_org/ppapi/thunk/ |
ppb_pdf_api.h | 25 virtual void SetContentRestriction(int restrictions) = 0;
|
ppb_pdf_thunk.cc | 84 void SetContentRestriction(PP_Instance instance, int restrictions) { 87 enter.functions()->SetContentRestriction(restrictions);
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
ApplicationRestrictionActivity.java | 30 * The actual test will set restrictions for this package, and the purpose of this 55 Bundle restrictions = mUserManager.getApplicationRestrictions(getPackageName()); local 57 intent.putExtra("value", restrictions);
|
/external/chromium_org/base/win/ |
metro.cc | 100 unsigned long restrictions = 0; local 101 settings->GetRestrictions(&restrictions); 104 (restrictions & WPCFLAG_LOGGING_REQUIRED) == WPCFLAG_LOGGING_REQUIRED;
|
/frameworks/base/core/java/android/content/ |
RestrictionsManager.java | 29 import android.service.restrictions.RestrictionsReceiver; 44 * Provides a mechanism for apps to query restrictions imposed by an entity that 46 * device administrator to override default app-specific restrictions or any other 49 * Apps can expose a set of restrictions via an XML file specified in the manifest. 51 * If the user has an active Restrictions Provider, dynamic requests can be made in 52 * addition to the statically imposed restrictions. Dynamic requests are app-specific 56 * Restrictions Provider. The Restrictions Provider can respond back to requests by calling 62 * Static restrictions are specified by an XML file referenced by a meta-data attribute 64 * to be able to read the list of available restrictions from the apk 540 List<RestrictionEntry> restrictions = loadManifestRestrictions(packageName, xml); local 553 ArrayList<RestrictionEntry> restrictions = new ArrayList<RestrictionEntry>(); local [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerTest.java | 80 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); local 82 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); 185 Bundle restrictions = new Bundle(); local 186 restrictions.putBoolean(UserManager.DISALLOW_INSTALL_APPS, true); 187 restrictions.putBoolean(UserManager.DISALLOW_CONFIG_WIFI, false); 188 mUserManager.setUserRestrictions(restrictions, new UserHandle(users.get(1).id));
|
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 42 * This fragment provides UI and functionality to set restrictions on the AppRestrictionSchema 179 * Loads the restrictions for the AppRestrictionSchema sample. In this implementation, we just 187 List<RestrictionEntry> restrictions = local 189 for (RestrictionEntry restriction : restrictions) { 217 Bundle restrictions = new Bundle(); local 218 restrictions.putBoolean(RESTRICTION_KEY_SAY_HELLO, allow); 221 PACKAGE_NAME_APP_RESTRICTION_SCHEMA, restrictions); local 222 // The profile/device owner needs to remember the current state of restrictions on its own
|
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 42 * This fragment provides UI and functionality to set restrictions on the AppRestrictionSchema 179 * Loads the restrictions for the AppRestrictionSchema sample. In this implementation, we just 187 List<RestrictionEntry> restrictions = local 189 for (RestrictionEntry restriction : restrictions) { 217 Bundle restrictions = new Bundle(); local 218 restrictions.putBoolean(RESTRICTION_KEY_SAY_HELLO, allow); 221 PACKAGE_NAME_APP_RESTRICTION_SCHEMA, restrictions); local 222 // The profile/device owner needs to remember the current state of restrictions on its own
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 42 * This fragment provides UI and functionality to set restrictions on the AppRestrictionSchema 179 * Loads the restrictions for the AppRestrictionSchema sample. In this implementation, we just 187 List<RestrictionEntry> restrictions = local 189 for (RestrictionEntry restriction : restrictions) { 217 Bundle restrictions = new Bundle(); local 218 restrictions.putBoolean(RESTRICTION_KEY_SAY_HELLO, allow); 221 PACKAGE_NAME_APP_RESTRICTION_SCHEMA, restrictions); local 222 // The profile/device owner needs to remember the current state of restrictions on its own
|
/frameworks/base/core/java/com/android/internal/app/ |
IAppOpsService.aidl | 43 void setUserRestrictions(in Bundle restrictions, int userHandle);
|
/packages/apps/Settings/src/com/android/settings/users/ |
AppRestrictionsFragment.java | 158 private ArrayList<RestrictionEntry> restrictions; field in class:AppRestrictionsFragment.AppRestrictionsPreference 173 void setRestrictions(ArrayList<RestrictionEntry> restrictions) { 174 this.restrictions = restrictions; 186 if (restrictions == null) return null; 187 for (RestrictionEntry entry : restrictions) { 196 return restrictions; 349 Log.e(TAG, "Cannot apply application restrictions on another user!"); 684 // If the app is required and has no restrictions, skip showing it 688 // Only do this for restricted profiles, not single-user restrictions 796 ArrayList<RestrictionEntry> restrictions = appPref.getRestrictions(); local 822 RestrictionUtils.setRestrictions(getActivity(), restrictions, mUser); local 851 ArrayList<RestrictionEntry> restrictions = RestrictionUtils.getRestrictions( local 900 final ArrayList<RestrictionEntry> restrictions = results.getParcelableArrayList( local [all...] |
/external/chromium_org/ppapi/cpp/private/ |
pdf.h | 46 int restrictions);
|
pdf.cc | 101 int restrictions) { 104 restrictions);
|
/external/chromium_org/ppapi/proxy/ |
pdf_resource.h | 47 virtual void SetContentRestriction(int restrictions) OVERRIDE;
|
pdf_resource.cc | 119 void PDFResource::SetContentRestriction(int restrictions) { 120 Post(RENDERER, PpapiHostMsg_PDF_SetContentRestriction(restrictions));
|
/frameworks/base/core/java/android/service/restrictions/ |
RestrictionsReceiver.java | 17 package android.service.restrictions; 28 * Abstract implementation of a Restrictions Provider BroadcastReceiver. To implement a 29 * Restrictions Provider, extend from this class and implement the abstract methods. 31 * component as a Restrictions Provider using 34 * The function of a Restrictions Provider is to transport permission requests from apps on this 47 * authorization by a local or remote administrator other than the user. The Restrictions 69 * Intercept standard Restrictions Provider broadcasts. Implementations
|