/packages/apps/Settings/src/com/android/settings/widget/ |
D | RestrictedAppPreference.java | 39 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/ |
D | AccountRestrictionHelper.java | 51 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/ |
D | RestrictedPreferenceAdapter.java | 81 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/ |
D | WifiTile.java | 60 String userRestriction = UserManager.DISALLOW_CONFIG_WIFI; in getQCItem() local 62 userRestriction); in getQCItem() 64 userRestriction); in getQCItem() 69 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | MobileDataTile.java | 65 String userRestriction = UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS; in getQCItem() local 67 userRestriction); in getQCItem() 69 userRestriction); in getQCItem() 74 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | BluetoothSwitch.java | 54 String userRestriction = UserManager.DISALLOW_CONFIG_BLUETOOTH; in getQCItem() local 56 userRestriction); in getQCItem() 58 userRestriction); in getQCItem() 63 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | HotspotTile.java | 63 String userRestriction = UserManager.DISALLOW_CONFIG_TETHERING; in getQCItem() local 65 userRestriction); in getQCItem() 67 userRestriction); in getQCItem() 72 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | AdaptiveBrightnessSwitch.java | 57 String userRestriction = UserManager.DISALLOW_CONFIG_BRIGHTNESS; in getQCItem() local 59 userRestriction); in getQCItem() 61 userRestriction); in getQCItem() 66 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | WifiRow.java | 67 String userRestriction = UserManager.DISALLOW_CONFIG_WIFI; in getQCItem() local 69 userRestriction); in getQCItem() 71 userRestriction); in getQCItem() 76 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | HotspotRow.java | 70 String userRestriction = UserManager.DISALLOW_CONFIG_TETHERING; in getQCItem() local 72 userRestriction); in getQCItem() 74 userRestriction); in getQCItem() 79 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | BrightnessSlider.java | 116 String userRestriction = UserManager.DISALLOW_CONFIG_BRIGHTNESS; in getBrightnessRowBuilder() local 118 userRestriction); in getBrightnessRowBuilder() 120 userRestriction); in getBrightnessRowBuilder() 125 : getActionDisabledDialogIntent(getContext(), userRestriction); in getBrightnessRowBuilder()
|
D | BaseVolumeSlider.java | 83 String userRestriction = UserManager.DISALLOW_ADJUST_VOLUME; in getQCItem() local 85 userRestriction); in getQCItem() 87 userRestriction); in getQCItem() 93 : getActionDisabledDialogIntent(getContext(), userRestriction); in getQCItem()
|
D | MobileDataRow.java | 74 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/ |
D | RestrictedLockUtilsInternal.java | 81 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/ |
D | DateTimeFragment.java | 126 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/ |
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/src/com/android/settings/location/ |
D | AppSettingsInjector.java | 48 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/ |
D | RestrictedPreferenceController.java | 71 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument 74 userRestriction, userId); in checkRestrictionAndSetDisabled()
|
/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/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowRestrictedLockUtilsInternal.java | 97 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/ |
D | DaydreamFragment.java | 132 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/ |
D | SliceData.java | 267 public Builder setUserRestriction(String userRestriction) { in setUserRestriction() argument 268 mUserRestriction = userRestriction; in setUserRestriction()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | ShadowRestrictedPreference.java | 28 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBuilderUtilsTest.java | 459 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()
|