/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 43 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/ |
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() 144 public EnforcedAdmin checkRestrictionEnforced() { in checkRestrictionEnforced() 160 public boolean setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
|
D | RestrictedTopLevelPreference.java | 19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 115 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
|
D | RestrictedPreference.java | 19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 112 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
|
D | RestrictedSwitchPreference.java | 19 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/ |
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 | 68 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()
|
D | RestrictedTopLevelPreferenceTest.java | 70 mPreference.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in setDisabledByAdmin_shouldNotCallSetEnabled()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/ |
D | ActionDisabledByAdminControllerTestUtils.java | 26 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 41 static final EnforcedAdmin ENFORCED_ADMIN = new EnforcedAdmin( 43 static final EnforcedAdmin ENFORCED_ADMIN_WITHOUT_COMPONENT = new EnforcedAdmin(
|
D | BiometricActionDisabledByAdminControllerTest.java | 62 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin( in buttonClicked()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/ |
D | BaseActionDisabledByAdminController.java | 24 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 33 protected EnforcedAdmin mEnforcedAdmin; 47 public final void updateEnforcedAdmin(EnforcedAdmin admin, int adminUserId) { in updateEnforcedAdmin()
|
D | ActionDisabledByAdminController.java | 58 void updateEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin, @UserIdInt int adminUserId); in updateEnforcedAdmin() 65 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener()
|
D | ActionDisabledLearnMoreButtonLauncher.java | 31 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin; 53 int enforcementAdminUserId, EnforcedAdmin enforcedAdmin) { in setupLearnMoreButtonToShowAdminPolicies() 134 private void showAdminPolicies(Context context, EnforcedAdmin enforcedAdmin) { in showAdminPolicies()
|
D | BiometricActionDisabledByAdminController.java | 63 @NonNull RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in getPositiveButtonListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | ToggleSeekBar.java | 33 private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin = null; 74 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
|
D | ToggleSlider.java | 29 void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin); in setEnforcedAdmin()
|
D | BrightnessSliderView.java | 118 public void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setEnforcedAdmin()
|
D | BrightnessSlider.java | 118 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; 211 EnforcedAdmin admin = in updatePreferenceViews()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 30 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/ |
D | BrightnessSliderTest.kt | 53 private lateinit var enforcedAdmin: RestrictedLockUtils.EnforcedAdmin
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherController.java | 21 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/ |
D | EditUserPhotoController.java | 443 private final RestrictedLockUtils.EnforcedAdmin mAdmin;
|