Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/widget/
DRestrictedAppPreference.java39 private String userRestriction; field in RestrictedAppPreference
46 public RestrictedAppPreference(Context context, String userRestriction) { in RestrictedAppPreference() argument
48 initialize(null, userRestriction); in RestrictedAppPreference()
51 public RestrictedAppPreference(Context context, AttributeSet attrs, String userRestriction) { in RestrictedAppPreference() argument
53 initialize(attrs, userRestriction); in RestrictedAppPreference()
56 private void initialize(AttributeSet attrs, String userRestriction) { in initialize() argument
58 this.userRestriction = userRestriction; in initialize()
115 if (TextUtils.isEmpty(userRestriction)) { in checkRestrictionAndSetDisabled()
118 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
121 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountRestrictionHelper.java51 String userRestriction, @UserIdInt int userId) { in enforceRestrictionOnPreference() argument
55 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference()
56 if (userRestriction.equals(DISALLOW_REMOVE_MANAGED_PROFILE) in enforceRestrictionOnPreference()
58 preference.setDisabledByAdmin(getEnforcedAdmin(userRestriction, userId)); in enforceRestrictionOnPreference()
63 preference.checkRestrictionAndSetDisabled(userRestriction, userId); in enforceRestrictionOnPreference()
67 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() argument
68 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
81 private EnforcedAdmin getEnforcedAdmin(String userRestriction, int userId) { in getEnforcedAdmin() argument
90 return new EnforcedAdmin(adminComponent, userRestriction, in getEnforcedAdmin()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRestrictedPreferenceAdapter.java81 String userRestriction) { in RestrictedPreferenceAdapter() argument
82 this(context, originalPreference, Collections.singletonList(userRestriction)); in RestrictedPreferenceAdapter()
93 String userRestriction) { in adapt() argument
95 preference.getContext(), preference, userRestriction); in adapt()
120 for (String userRestriction : mUserRestrictions) { in isRestricted()
121 if (userManager.hasUserRestriction(userRestriction)) { in isRestricted()
143 for (String userRestriction : mUserRestrictions) { in isRestrictedByAdmin()
145 userRestriction, UserHandle.myUserId()); in isRestrictedByAdmin()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiTile.java60 String userRestriction = UserManager.DISALLOW_CONFIG_WIFI; in getQCItem() local
62 userRestriction); in getQCItem()
64 userRestriction); in getQCItem()
69 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DMobileDataTile.java65 String userRestriction = UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS; in getQCItem() local
67 userRestriction); in getQCItem()
69 userRestriction); in getQCItem()
74 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DBluetoothSwitch.java54 String userRestriction = UserManager.DISALLOW_CONFIG_BLUETOOTH; in getQCItem() local
56 userRestriction); in getQCItem()
58 userRestriction); in getQCItem()
63 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DHotspotTile.java63 String userRestriction = UserManager.DISALLOW_CONFIG_TETHERING; in getQCItem() local
65 userRestriction); in getQCItem()
67 userRestriction); in getQCItem()
72 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DAdaptiveBrightnessSwitch.java57 String userRestriction = UserManager.DISALLOW_CONFIG_BRIGHTNESS; in getQCItem() local
59 userRestriction); in getQCItem()
61 userRestriction); in getQCItem()
66 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DWifiRow.java67 String userRestriction = UserManager.DISALLOW_CONFIG_WIFI; in getQCItem() local
69 userRestriction); in getQCItem()
71 userRestriction); in getQCItem()
76 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DHotspotRow.java70 String userRestriction = UserManager.DISALLOW_CONFIG_TETHERING; in getQCItem() local
72 userRestriction); in getQCItem()
74 userRestriction); in getQCItem()
79 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DBrightnessSlider.java116 String userRestriction = UserManager.DISALLOW_CONFIG_BRIGHTNESS; in getBrightnessRowBuilder() local
118 userRestriction); in getBrightnessRowBuilder()
120 userRestriction); in getBrightnessRowBuilder()
125 : getActionDisabledDialogIntent(getContext(), userRestriction); in getBrightnessRowBuilder()
DBaseVolumeSlider.java83 String userRestriction = UserManager.DISALLOW_ADJUST_VOLUME; in getQCItem() local
85 userRestriction); in getQCItem()
87 userRestriction); in getQCItem()
93 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
DMobileDataRow.java74 String userRestriction = UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS; in getQCItem() local
76 userRestriction); in getQCItem()
78 userRestriction); in getQCItem()
83 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtilsInternal.java81 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
89 um.getUserRestrictionSources(userRestriction, UserHandle.of(userId)); in checkIfRestrictionEnforced()
95 return EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
103 return getProfileOwner(context, userRestriction, adminUserId); in checkIfRestrictionEnforced()
109 ? getProfileOwner(context, userRestriction, adminUserId) in checkIfRestrictionEnforced()
110 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
116 ? getDeviceOwner(context, userRestriction) in checkIfRestrictionEnforced()
117 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
125 String userRestriction, int userId) { in hasBaseUserRestriction() argument
127 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); in hasBaseUserRestriction()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeFragment.java126 final String userRestriction = UserManager.DISALLOW_CONFIG_DATE_TIME; in onCreatePreferences() local
127 mDatePref = RestrictedPreferenceAdapter.adapt(datePref, userRestriction); in onCreatePreferences()
128 mTimePref = RestrictedPreferenceAdapter.adapt(timePref, userRestriction); in onCreatePreferences()
129 mTimeZone = RestrictedPreferenceAdapter.adapt(timeZonePref, userRestriction); in onCreatePreferences()
130 RestrictedPreferenceAdapter.adapt(autoDateTimePref, userRestriction); in onCreatePreferences()
/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/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/src/com/android/settings/location/
DAppSettingsInjector.java48 return TextUtils.isEmpty(setting.userRestriction) in createPreference()
50 : new RestrictedAppPreference(prefContext, setting.userRestriction); in createPreference()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DRestrictedPreferenceController.java71 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
74 userRestriction, userId); in checkRestrictionAndSetDisabled()
/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/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java97 String userRestriction, int userId) { in hasBaseUserRestriction() argument
103 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DDaydreamFragment.java132 final String userRestriction = UserManager.DISALLOW_CONFIG_SCREEN_TIMEOUT; in onCreatePreferences() local
138 mActiveDreamPref = RestrictedPreferenceAdapter.adapt(activeDreamPref, userRestriction); in onCreatePreferences()
145 mDreamTimePref = RestrictedPreferenceAdapter.adapt(dreamTimePref, userRestriction); in onCreatePreferences()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceData.java267 public Builder setUserRestriction(String userRestriction) { in setUserRestriction() argument
268 mUserRestriction = userRestriction; in setUserRestriction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DShadowRestrictedPreference.java28 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java459 private SliceData getMockData(Class prefController, int sliceType, String userRestriction) { in getMockData() argument
461 null /* unavailableSliceSubtitle */, userRestriction); in getMockData()
471 String screenTitle, int icon, String unavailableSliceSubtitle, String userRestriction) { in getMockData() argument
484 .setUserRestriction(userRestriction) in getMockData()

12