Searched refs:EnforcedAdmin (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 37 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/ |
D | RestrictedLockUtilsInternal.java | 86 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 …]
|
D | RestrictedPreferenceHelper.java | 19 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()
|
D | RestrictedPreference.java | 19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 110 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
|
D | RestrictedSwitchPreference.java | 19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 170 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 25 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 …]
|
D | RestrictedPreferenceHelperTest.java | 66 mHelper.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in bindPreference_disabled_shouldDisplayDisabledSummary()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | ToggleSeekBar.java | 33 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin = null; 74 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
|
D | ToggleSliderView.java | 99 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodPreference.java | 19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 210 EnforcedAdmin admin = in updatePreferenceViews()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 28 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 104 private EnforcedAdmin mEnforcedAdmin; 397 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkIfRestrictionEnforcedByAdminOnly()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherController.java | 19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 696 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkIfAddUserDisallowedByAdminOnly() 721 public EnforcedAdmin enforcedAdmin;
|