Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java37 public static EnforcedAdmin getProfileOrDeviceOwner(Context context, UserHandle user) { in getProfileOrDeviceOwner()
41 public static EnforcedAdmin getProfileOrDeviceOwner( in getProfileOrDeviceOwner()
62 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
67 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
76 public static void sendShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in sendShowAdminSupportDetailsIntent()
89 public static Intent getShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in getShowAdminSupportDetailsIntent()
105 public static class EnforcedAdmin { class in RestrictedLockUtils
118 public final static EnforcedAdmin MULTIPLE_ENFORCED_ADMIN = new EnforcedAdmin();
120 public static EnforcedAdmin createDefaultEnforcedAdminWithRestriction( in createDefaultEnforcedAdminWithRestriction()
122 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()
148 public boolean setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
DRestrictedPreference.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
110 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.java66 mHelper.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in bindPreference_disabled_shouldDisplayDisabledSummary()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DToggleSeekBar.java33 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin = null;
74 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
DToggleSliderView.java99 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.java28 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
112 private EnforcedAdmin mEnforcedAdmin;
481 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkIfRestrictionEnforcedByAdminOnly()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java21 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
714 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkIfAddUserDisallowedByAdminOnly()
746 public EnforcedAdmin enforcedAdmin;