Home
last modified time | relevance | path

Searched refs:restriction (Results 1 – 25 of 32) sorted by relevance

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DActionDisabledByAdminDialogHelper.java79 public AlertDialog.Builder prepareDialogBuilder(String restriction, in prepareDialogBuilder() argument
82 mRestriction = restriction; in prepareDialogBuilder()
107 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument
108 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog()
112 mRestriction = restriction; in updateDialog()
118 String restriction) { in initializeDialogViews() argument
142 setAdminSupportTitle(root, restriction); in initializeDialogViews()
155 void setAdminSupportTitle(View root, String restriction) { in setAdminSupportTitle() argument
160 if (restriction == null) { in setAdminSupportTitle()
164 switch (restriction) { in setAdminSupportTitle()
DActionDisabledByAdminDialog.java39 final String restriction = getRestrictionFromIntent(getIntent()); in onCreate() local
41 mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
50 final String restriction = getRestrictionFromIntent(intent); in onNewIntent() local
51 mDialogHelper.updateDialog(restriction, admin); in onNewIntent()
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java79 public AlertDialog.Builder prepareDialogBuilder(String restriction, in prepareDialogBuilder() argument
82 mRestriction = restriction; in prepareDialogBuilder()
107 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument
108 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog()
112 mRestriction = restriction; in updateDialog()
118 String restriction) { in initializeDialogViews() argument
142 setAdminSupportTitle(root, restriction); in initializeDialogViews()
155 void setAdminSupportTitle(View root, String restriction) { in setAdminSupportTitle() argument
160 if (restriction == null) { in setAdminSupportTitle()
164 switch (restriction) { in setAdminSupportTitle()
DActionDisabledByAdminDialog.java39 final String restriction = getRestrictionFromIntent(getIntent()); in onCreate() local
41 mDialogHelper.prepareDialogBuilder(restriction, enforcedAdmin) in onCreate()
50 final String restriction = getRestrictionFromIntent(intent); in onNewIntent() local
51 mDialogHelper.updateDialog(restriction, admin); in onNewIntent()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java277 for (String restriction : DEFAULT_GUEST_RESTRICTIONS) { in initDefaultGuestRestrictions()
278 defaultGuestRestrictions.putBoolean(restriction, true); in initDefaultGuestRestrictions()
610 public boolean hasUserRestriction(String restriction, UserInfo userInfo) { in hasUserRestriction() argument
611 return mUserManager.hasUserRestriction(restriction, userInfo.getUserHandle()); in hasUserRestriction()
620 public boolean foregroundUserHasUserRestriction(String restriction) { in foregroundUserHasUserRestriction() argument
621 return hasUserRestriction(restriction, getCurrentForegroundUserInfo()); in foregroundUserHasUserRestriction()
701 public boolean isCurrentProcessUserHasRestriction(String restriction) { in isCurrentProcessUserHasRestriction() argument
702 return mUserManager.hasUserRestriction(restriction); in isCurrentProcessUserHasRestriction()
835 for (String restriction : DEFAULT_NON_ADMIN_RESTRICTIONS) { in setDefaultNonAdminRestrictions()
836 setUserRestriction(userInfo, restriction, enable); in setDefaultNonAdminRestrictions()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java157 protected boolean isCurrentProcessUserHasRestriction(String restriction) { in isCurrentProcessUserHasRestriction() argument
158 return sMockInstance.isCurrentProcessUserHasRestriction(restriction); in isCurrentProcessUserHasRestriction()
167 protected void setUserRestriction(UserInfo userInfo, String restriction, boolean enable) { in setUserRestriction() argument
170 permissionsMap.put(restriction, enable); in setUserRestriction()
175 protected boolean hasUserRestriction(String restriction, UserInfo userInfo) { in hasUserRestriction() argument
180 return sUserRestrictionMap.get(userInfo.id).getOrDefault(restriction, false); in hasUserRestriction()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java133 RestrictionsPerSpeedRange restriction = null; in getUxRestrictions() local
135 restriction = findUxRestrictionsInList(currentSpeed, in getUxRestrictions()
139 if (restriction == null) { in getUxRestrictions()
148 restriction = findUxRestrictionsInList( in getUxRestrictions()
154 if (restriction == null) { in getUxRestrictions()
161 return createUxRestrictionsEvent(restriction.mReqOpt, restriction.mRestrictions); in getUxRestrictions()
860 restriction -> restriction.mSpeedRange == null)) { in validateBaselineModeRestrictions()
862 for (RestrictionsPerSpeedRange restriction : restrictions) { in validateBaselineModeRestrictions()
863 error.append(restriction.toString()).append('\n'); in validateBaselineModeRestrictions()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogTest.java65 final String restriction = "someRestriction"; in testGetRestrictionFromIntent() local
68 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, restriction); in testGetRestrictionFromIntent()
69 assertEquals(restriction, mDialog.getRestrictionFromIntent(intent)); in testGetRestrictionFromIntent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DWallpaperPreferenceController.java101 final String restriction = DISALLOW_SET_WALLPAPER; in disablePreferenceIfManaged() local
105 restriction, UserHandle.myUserId())) { in disablePreferenceIfManaged()
108 pref.checkRestrictionAndSetDisabled(restriction); in disablePreferenceIfManaged()
/packages/apps/Settings/src/com/android/settings/display/
DWallpaperPreferenceController.java118 final String restriction = DISALLOW_SET_WALLPAPER; in disablePreferenceIfManaged() local
122 restriction, UserHandle.myUserId())) { in disablePreferenceIfManaged()
125 pref.checkRestrictionAndSetDisabled(restriction); in disablePreferenceIfManaged()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRestrictionUtils.java38 public EnforcedAdmin checkIfRestrictionEnforced(Context context, String restriction) { in checkIfRestrictionEnforced() argument
40 context, restriction, UserHandle.myUserId()); in checkIfRestrictionEnforced()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DRestrictionUtils.java38 public EnforcedAdmin checkIfRestrictionEnforced(Context context, String restriction) { in checkIfRestrictionEnforced() argument
40 context, restriction, UserHandle.myUserId()); in checkIfRestrictionEnforced()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java88 public void addBaseUserRestriction(String restriction) { in addBaseUserRestriction() argument
89 mRestrictions.add(restriction); in addBaseUserRestriction()
DShadowRestrictionUtils.java16 protected EnforcedAdmin checkIfRestrictionEnforced(Context context, String restriction) { in checkIfRestrictionEnforced() argument
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DPermissionsPreferenceControllerTest.java134 PreferenceGroup preferenceGroup, String restriction) { in getPreferenceForRestriction() argument
137 if (restriction.equals(preference.getExtras().getString( in getPreferenceForRestriction()
/packages/apps/Settings/src/com/android/settings/users/
DEditUserPhotoController.java416 public RestrictedMenuItem(Context context, String title, String restriction, in RestrictedMenuItem() argument
424 restriction, myUserId); in RestrictedMenuItem()
426 restriction, myUserId); in RestrictedMenuItem()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DEditUserPhotoController.java416 public RestrictedMenuItem(Context context, String title, String restriction, in RestrictedMenuItem() argument
424 restriction, myUserId); in RestrictedMenuItem()
426 restriction, myUserId); in RestrictedMenuItem()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEditUserPhotoController.java411 public RestrictedMenuItem(Context context, String title, String restriction, in RestrictedMenuItem() argument
419 restriction, myUserId); in RestrictedMenuItem()
421 restriction, myUserId); in RestrictedMenuItem()
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java139 final String restriction = UserManager.DISALLOW_CONFIG_CREDENTIALS; in onCreateDialog() local
141 if (!RestrictedLockUtilsInternal.hasBaseUserRestriction(getContext(), restriction, in onCreateDialog()
146 .checkIfRestrictionEnforced(getContext(), restriction, myUserId); in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUserCredentialsSettings.java139 final String restriction = UserManager.DISALLOW_CONFIG_CREDENTIALS; in onCreateDialog() local
141 if (!RestrictedLockUtilsInternal.hasBaseUserRestriction(getContext(), restriction, in onCreateDialog()
146 .checkIfRestrictionEnforced(getContext(), restriction, myUserId); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSettings.java462 private boolean wasAdminSupportIntentShown(@NonNull String restriction) { in onCreateDialog()
464 .checkIfRestrictionEnforced(getActivity(), restriction, in onCreateDialog()
468 getActivity(), restriction, UserHandle.myUserId()); in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageSettings.java462 private boolean wasAdminSupportIntentShown(@NonNull String restriction) { in onCreateDialog()
464 .checkIfRestrictionEnforced(getActivity(), restriction, in onCreateDialog()
468 getActivity(), restriction, UserHandle.myUserId()); in onCreateDialog()
/packages/services/Telecomm/proto/
Dtelecom.proto235 // Disconnected because of a restriction on placing the call,
/packages/apps/TV/res/raw/
Dthird_party_licenses11 in the Software without restriction, including without limitation the rights
3376 without restriction, including without limitation the rights to use,
3418 "Software"), to deal in the Software without restriction, including
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile1528 # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.

12