Home
last modified time | relevance | path

Searched refs:EnforcedAdmin (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java43 public static EnforcedAdmin getProfileOrDeviceOwner(Context context, UserHandle user) { in getProfileOrDeviceOwner()
51 public static EnforcedAdmin getProfileOrDeviceOwner( in getProfileOrDeviceOwner()
72 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
77 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
87 public static void sendShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in sendShowAdminSupportDetailsIntent()
100 public static Intent getShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in getShowAdminSupportDetailsIntent()
120 public static class EnforcedAdmin { class in RestrictedLockUtils
133 public final static EnforcedAdmin MULTIPLE_ENFORCED_ADMIN = new EnforcedAdmin();
135 public static EnforcedAdmin createDefaultEnforcedAdminWithRestriction( in createDefaultEnforcedAdminWithRestriction()
137 EnforcedAdmin enforcedAdmin = new EnforcedAdmin(); in createDefaultEnforcedAdminWithRestriction()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java86 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced()
102 return EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
117 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
124 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
152 public static EnforcedAdmin checkIfKeyguardFeaturesDisabled(Context context, in checkIfKeyguardFeaturesDisabled()
194 private static EnforcedAdmin findEnforcedAdmin(@Nullable List<ComponentName> admins, in findEnforcedAdmin()
202 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin()
206 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin()
208 return EnforcedAdmin.MULTIPLE_ENFORCED_ADMIN; in findEnforcedAdmin()
215 public static EnforcedAdmin checkIfUninstallBlocked(Context context, in checkIfUninstallBlocked()
[all …]
DRestrictedPreferenceHelper.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
41 private EnforcedAdmin mEnforcedAdmin;
136 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkRestrictionAndSetDisabled()
144 public EnforcedAdmin checkRestrictionEnforced() { in checkRestrictionEnforced()
160 public boolean setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
DRestrictedTopLevelPreference.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
115 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
DRestrictedPreference.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
112 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
DRestrictedSwitchPreference.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
183 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java25 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
99 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_deviceOwner()
117 EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfRestrictionEnforced_profileOwner()
128 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfDevicePolicyServiceDisabled_noEnforceAdminForManagedProfile()
138 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfDeviceAdminFeatureDisabled_noEnforceAdminForManagedProfile()
148 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfKeyguardFeaturesDisabled_noEnforcedAdminForManagedProfile()
161 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfKeyguardFeaturesDisabled_oneEnforcedAdminForManagedProfile()
164 assertThat(enforcedAdmin).isEqualTo(new EnforcedAdmin(mAdmin1, UserHandle.of(mUserId))); in checkIfKeyguardFeaturesDisabled_oneEnforcedAdminForManagedProfile()
176 final EnforcedAdmin enforcedAdmin = RestrictedLockUtilsInternal in checkIfKeyguardFeaturesDisabled_multipleEnforcedAdminForManagedProfile()
179 assertThat(enforcedAdmin).isEqualTo(EnforcedAdmin.MULTIPLE_ENFORCED_ADMIN); in checkIfKeyguardFeaturesDisabled_multipleEnforcedAdminForManagedProfile()
[all …]
DRestrictedPreferenceHelperTest.java68 mHelper.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in bindPreference_disabled_shouldDisplayDisabledSummary()
94 mHelper.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in setDisabledByAdmin_RestrictedPreference_shouldDisablePreference()
104 mHelper.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in setDisabledByAdmin_TopLevelRestrictedPreference_shouldNotDisablePreference()
DRestrictedTopLevelPreferenceTest.java70 mPreference.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in setDisabledByAdmin_shouldNotCallSetEnabled()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/
DActionDisabledByAdminControllerTestUtils.java26 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
41 static final EnforcedAdmin ENFORCED_ADMIN = new EnforcedAdmin(
43 static final EnforcedAdmin ENFORCED_ADMIN_WITHOUT_COMPONENT = new EnforcedAdmin(
DBiometricActionDisabledByAdminControllerTest.java62 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin( in buttonClicked()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DBaseActionDisabledByAdminController.java24 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
33 protected EnforcedAdmin mEnforcedAdmin;
47 public final void updateEnforcedAdmin(EnforcedAdmin admin, int adminUserId) { in updateEnforcedAdmin()
DActionDisabledByAdminController.java58 void updateEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin, @UserIdInt int adminUserId); in updateEnforcedAdmin()
65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener()
DActionDisabledLearnMoreButtonLauncher.java31 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
53 int enforcementAdminUserId, EnforcedAdmin enforcedAdmin) { in setupLearnMoreButtonToShowAdminPolicies()
134 private void showAdminPolicies(Context context, EnforcedAdmin enforcedAdmin) { in showAdminPolicies()
DBiometricActionDisabledByAdminController.java63 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DToggleSeekBar.java33 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin = null;
74 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
DToggleSlider.java29 void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin); in setEnforcedAdmin()
DBrightnessSliderView.java118 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
DBrightnessSlider.java118 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodPreference.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
211 EnforcedAdmin admin = in updatePreferenceViews()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java30 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
119 private EnforcedAdmin mEnforcedAdmin;
562 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkIfRestrictionEnforcedByAdminOnly()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
DBrightnessSliderTest.kt53 private lateinit var enforcedAdmin: RestrictedLockUtils.EnforcedAdmin
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java21 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
908 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkIfAddUserDisallowedByAdminOnly()
940 public EnforcedAdmin enforcedAdmin;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DEditUserPhotoController.java443 private final RestrictedLockUtils.EnforcedAdmin mAdmin;