/packages/apps/Settings/src/com/android/settings/widget/ |
D | RestrictedAppPreference.java | 40 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/ |
D | RestrictedAppPreference.java | 40 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/ |
D | AccountRestrictionHelper.java | 42 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/ |
D | AccountRestrictionHelper.java | 42 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/ |
D | UserRestrictionTest.java | 131 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/ |
D | RestrictedEncryptionPreferenceController.java | 34 public RestrictedEncryptionPreferenceController(Context context, String userRestriction) { in RestrictedEncryptionPreferenceController() argument 38 mUserRestriction = userRestriction; in RestrictedEncryptionPreferenceController()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | AppSettingsInjector.java | 40 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/ |
D | AppSettingsInjector.java | 40 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/ |
D | RestrictedEncryptionPreferenceController.java | 34 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/ |
D | ShadowRestrictedLockUtilsInternal.java | 55 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/ |
D | ShadowRestrictedLockUtilsInternal.java | 91 String userRestriction, int userId) { in hasBaseUserRestriction() argument 97 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | VerifyAppsOverUsbPreferenceController.java | 59 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/ |
D | VerifyAppsOverUsbPreferenceController.java | 59 Context context, String userRestriction, int userId) { in checkIfRestrictionEnforced() argument 60 return RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, userRestriction, in checkIfRestrictionEnforced()
|