Home
last modified time | relevance | path

Searched refs:mEnforcedAdmin (Results 1 – 22 of 22) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DActionDisabledByAdminDialogHelper.java50 @VisibleForTesting EnforcedAdmin mEnforcedAdmin; field in ActionDisabledByAdminDialogHelper
68 return getEnforcementAdminUserId(mEnforcedAdmin); in getEnforcementAdminUserId()
73 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder()
78 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in prepareDialogBuilder()
91 getEnforcementAdminUserId(mEnforcedAdmin), in maybeSetLearnMoreButton()
94 showAdminPolicies(mEnforcedAdmin, mActivity); in maybeSetLearnMoreButton()
101 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog()
104 mEnforcedAdmin = admin; in updateDialog()
106 initializeDialogViews(mDialogView, mEnforcedAdmin.component, getEnforcementAdminUserId(), in updateDialog()
DRestrictedSettingsFragment.java70 private EnforcedAdmin mEnforcedAdmin; field in RestrictedSettingsFragment
220 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin()
222 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin()
223 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
225 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
/packages/apps/Settings/src/com/android/settings/users/
DUserCapabilities.java43 RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in UserCapabilities
77 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, in updateAddUserCapabilities()
81 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities()
82 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities()
115 return mEnforcedAdmin; in getEnforcedAdmin()
129 ", mEnforcedAdmin=" + mEnforcedAdmin + in toString()
DUserSettings.java1497 mUserCaps.mDisallowAddUser ? mUserCaps.mEnforcedAdmin : null);
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java54 @VisibleForTesting EnforcedAdmin mEnforcedAdmin; field in ActionDisabledByAdminDialogHelper
86 return getEnforcementAdminUserId(mEnforcedAdmin); in getEnforcementAdminUserId()
106 mEnforcedAdmin = enforcedAdmin; in prepareDialogBuilder()
108 initializeDialogViews(mDialogView, mEnforcedAdmin, getEnforcementAdminUserId(), in prepareDialogBuilder()
114 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog()
117 mEnforcedAdmin = admin; in updateDialog()
119 initializeDialogViews(mDialogView, mEnforcedAdmin, getEnforcementAdminUserId(), in updateDialog()
/packages/apps/Settings/src/com/android/settings/
DRestrictedSettingsFragment.java74 private EnforcedAdmin mEnforcedAdmin; field in RestrictedSettingsFragment
222 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin()
224 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin()
225 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
227 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
DRestrictedCheckBox.java36 private EnforcedAdmin mEnforcedAdmin; field in RestrictedCheckBox
50 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick()
58 mEnforcedAdmin = admin; in setDisabledByAdmin()
DRestrictedRadioButton.java33 private EnforcedAdmin mEnforcedAdmin; field in RestrictedRadioButton
56 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in performClick()
64 mEnforcedAdmin = admin; in setDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/dashboard/
DRestrictedDashboardFragment.java74 private EnforcedAdmin mEnforcedAdmin; field in RestrictedDashboardFragment
216 mEnforcedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getActivity(), in getRestrictionEnforcedAdmin()
218 if (mEnforcedAdmin != null && mEnforcedAdmin.user == null) { in getRestrictionEnforcedAdmin()
219 mEnforcedAdmin.user = UserHandle.of(UserHandle.myUserId()); in getRestrictionEnforcedAdmin()
221 return mEnforcedAdmin; in getRestrictionEnforcedAdmin()
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsMainSwitchPreference.java54 private EnforcedAdmin mEnforcedAdmin; field in SettingsMainSwitchPreference
86 mEnforcedAdmin = mRestrictedHelper.checkRestrictionEnforced(); in onBindViewHolder()
240 mEnforcedAdmin = admin; in setDisabledByAdmin()
242 mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin); in setDisabledByAdmin()
249 mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin); in initMainSwitchBar()
DSettingsMainSwitchBar.java48 private EnforcedAdmin mEnforcedAdmin; field in SettingsMainSwitchBar
81 mEnforcedAdmin = admin; in setDisabledByAdmin()
152 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), mEnforcedAdmin); in performRestrictedClick() local
DSwitchBar.java88 private EnforcedAdmin mEnforcedAdmin = null; field in SwitchBar
156 mEnforcedAdmin); in SwitchBar()
247 mEnforcedAdmin = admin; in setDisabledByAdmin()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceControllerTest.java92 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in StorageApplicationActionButtonsPreferenceControllerTest
185 mPreferenceController.setAppsControlDisallowedAdmin(mEnforcedAdmin); in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache()
209 mPreferenceController.setAppsControlDisallowedAdmin(mEnforcedAdmin); in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache()
233 mPreferenceController.setAppsControlDisallowedAdmin(mEnforcedAdmin); in handleClearDataClick_disallowedBySystem_shouldNotShowDialogToClear()
255 mPreferenceController.setAppsControlDisallowedAdmin(mEnforcedAdmin); in handleClearDataClick_allowedBySystem_shouldShowDialogToClear()
282 mPreferenceController.setAppsControlDisallowedAdmin(mEnforcedAdmin); in handleClearDataClick_hasValidManageSpaceActivity_shouldNotShowDialogToClear()
311 mPreferenceController.setAppsControlDisallowedAdmin(mEnforcedAdmin); in handleClearDataClick_hasInvalidManageSpaceActivity_shouldShowDialogToClear()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutListPreferenceTest.java46 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in TimeoutListPreferenceTest
61 ReflectionHelpers.setField(mPreference, "mAdmin", mEnforcedAdmin); in setUp()
67 mPreference.removeUnusableTimeouts(480000L, mEnforcedAdmin); // max allowed is 8 minutes in removeUnusableTimeouts_selectedValueRemoved_shouldSetValueToLargestAllowedValue()
DAdaptiveSleepPreferenceControllerTest.java71 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in AdaptiveSleepPreferenceControllerTest
163 eq(UserManager.DISALLOW_CONFIG_SCREEN_TIMEOUT))).thenReturn(mEnforcedAdmin); in addToScreen_enforcedAdmin_disablePreference()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DRestrictedPreferenceController.java32 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in RestrictedPreferenceController
98 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, mEnforcedAdmin); in handlePreferenceTreeClick()
131 mEnforcedAdmin = admin; in setDisabledByAdmin()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/enterprise/
DBaseActionDisabledByAdminController.java34 protected EnforcedAdmin mEnforcedAdmin; field in BaseActionDisabledByAdminController
51 mEnforcedAdmin = requireNonNull(admin, "admin cannot be null"); in updateEnforcedAdmin()
DFinancedDeviceActionDisabledByAdminController.java38 mEnforcedAdmin); in setupLearnMoreButton()
DManagedDeviceActionDisabledByAdminController.java84 mEnforcedAdmin); in setupLearnMoreButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DSettingsMainSwitchPreferenceTest.java45 private EnforcedAdmin mEnforcedAdmin; field in SettingsMainSwitchPreferenceTest
55 ReflectionHelpers.setField(mPreference, "mEnforcedAdmin", mEnforcedAdmin); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetAppPrefFragmentTest.java93 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin; field in ResetAppPrefFragmentTest
182 .thenReturn(mEnforcedAdmin); in resetClicked_adminDisallowResetsApplicationPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java410 mUserCapabilities.mEnforcedAdmin = enforcedAdmin; in updateUserList_addUserDisallowedByAdmin_shouldNotShowAddUser()