Home
last modified time | relevance | path

Searched refs:userRestriction (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/widget/
DRestrictedAppPreference.java40 private String userRestriction; field in RestrictedAppPreference
47 public RestrictedAppPreference(Context context, String userRestriction) { in RestrictedAppPreference() argument
49 initialize(null, userRestriction); in RestrictedAppPreference()
52 public RestrictedAppPreference(Context context, AttributeSet attrs, String userRestriction) { in RestrictedAppPreference() argument
54 initialize(attrs, userRestriction); in RestrictedAppPreference()
57 private void initialize(AttributeSet attrs, String userRestriction) { in initialize() argument
60 this.userRestriction = userRestriction; in initialize()
109 if (TextUtils.isEmpty(userRestriction)) { in checkRestrictionAndSetDisabled()
112 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
115 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DRestrictedAppPreference.java40 private String userRestriction; field in RestrictedAppPreference
47 public RestrictedAppPreference(Context context, String userRestriction) { in RestrictedAppPreference() argument
49 initialize(null, userRestriction); in RestrictedAppPreference()
52 public RestrictedAppPreference(Context context, AttributeSet attrs, String userRestriction) { in RestrictedAppPreference() argument
54 initialize(attrs, userRestriction); in RestrictedAppPreference()
57 private void initialize(AttributeSet attrs, String userRestriction) { in initialize() argument
60 this.userRestriction = userRestriction; in initialize()
109 if (TextUtils.isEmpty(userRestriction)) { in checkRestrictionAndSetDisabled()
112 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
115 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountRestrictionHelper.java42 String userRestriction, @UserIdInt int userId) { in enforceRestrictionOnPreference() argument
46 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference()
49 preference.checkRestrictionAndSetDisabled(userRestriction, userId); in enforceRestrictionOnPreference()
53 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() argument
54 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountRestrictionHelper.java42 String userRestriction, @UserIdInt int userId) { in enforceRestrictionOnPreference() argument
46 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference()
49 preference.checkRestrictionAndSetDisabled(userRestriction, userId); in enforceRestrictionOnPreference()
53 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() argument
54 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DUserRestrictionTest.java131 final String userRestriction = getDataUserRestrictions(mContext, attrs); in verifyUserRestriction() local
132 if (userRestriction != null) { in verifyUserRestriction()
133 if(!isValidRestriction(userRestriction)) { in verifyUserRestriction()
142 boolean isValidRestriction(String userRestriction) { in isValidRestriction() argument
143 return USER_RESTRICTIONS.contains(userRestriction); in isValidRestriction()
/packages/apps/Settings/src/com/android/settings/security/
DRestrictedEncryptionPreferenceController.java34 public RestrictedEncryptionPreferenceController(Context context, String userRestriction) { in RestrictedEncryptionPreferenceController() argument
38 mUserRestriction = userRestriction; in RestrictedEncryptionPreferenceController()
/packages/apps/Settings/src/com/android/settings/location/
DAppSettingsInjector.java40 return TextUtils.isEmpty(setting.userRestriction) in createPreference()
42 : new RestrictedAppPreference(prefContext, setting.userRestriction); in createPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DAppSettingsInjector.java40 return TextUtils.isEmpty(setting.userRestriction) in createPreference()
42 : new RestrictedAppPreference(prefContext, setting.userRestriction); in createPreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DRestrictedEncryptionPreferenceController.java34 public RestrictedEncryptionPreferenceController(Context context, String userRestriction) { in RestrictedEncryptionPreferenceController() argument
38 mUserRestriction = userRestriction; in RestrictedEncryptionPreferenceController()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowRestrictedLockUtilsInternal.java55 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
61 String userRestriction, int userId) { in hasBaseUserRestriction() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java91 String userRestriction, int userId) { in hasBaseUserRestriction() argument
97 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
/packages/apps/Settings/src/com/android/settings/development/
DVerifyAppsOverUsbPreferenceController.java59 Context context, String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
60 return RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, userRestriction, in checkIfRestrictionEnforced()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DVerifyAppsOverUsbPreferenceController.java59 Context context, String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
60 return RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, userRestriction, in checkIfRestrictionEnforced()