HomeSort by relevance Sort by last modified time
    Searched defs:restrictions (Results 1 - 25 of 36) sorted by null

1 2

  /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
  /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)));
  /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);
  /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...]
  /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/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));
  /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;
  /external/chromium_org/ppapi/proxy/
flash_resource.cc 169 int32_t restrictions; local
172 PpapiHostMsg_Flash_GetLocalDataRestrictions(), &restrictions);
175 return PP_MakeInt32(restrictions);
pdf_resource_unittest.cc 117 int restrictions = 5; local
118 pdf_iface->SetContentRestriction(pp_instance(), restrictions); local
  /frameworks/base/services/restrictions/java/com/android/server/restrictions/
RestrictionsManagerService.java 17 package com.android.server.restrictions;
119 // Check if there is a restrictions provider
122 "Cannot request permission without a restrictions provider registered");
152 // Check if there is a restrictions provider
155 "Cannot request permission without a restrictions provider registered");
185 throw new SecurityException("No restrictions provider registered for user");
188 "Restrictions provider does not match caller ");
  /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...]
  /packages/apps/Launcher3/src/com/android/launcher3/
LauncherClings.java 237 Bundle restrictions = um.getUserRestrictions(); local
238 if (restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false)) {
DeleteDropTarget.java 201 Bundle restrictions = userManager.getUserRestrictions(); local
202 if (restrictions.getBoolean(UserManager.DISALLOW_APPS_CONTROL, false)
203 || restrictions.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS, false)) {
  /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/ui/
browser_command_controller.cc 1130 int restrictions = GetContentRestrictions(browser_); local
    [all...]
  /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/core/java/android/accounts/
ChooseTypeAndAccountActivity.java 149 Bundle restrictions = UserManager.get(this) local
152 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false);
  /frameworks/base/core/java/android/os/
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...]
  /prebuilts/eclipse/maven/apache-maven-3.2.1/lib/
maven-artifact-3.2.1.jar 
  /frameworks/base/services/core/java/com/android/server/
AppOpsService.java 1197 final SparseArray<Restriction> restrictions = mAudioRestrictions.valueAt(o); local
    [all...]
  /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...]

Completed in 710 milliseconds

1 2