Home
last modified time | relevance | path

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

123456789

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtils.java37 public static EnforcedAdmin getProfileOrDeviceOwner( in getProfileOrDeviceOwner()
42 public static RestrictedLockUtils.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 RestrictedLockUtils.EnforcedAdmin MULTIPLE_ENFORCED_ADMIN =
119 new EnforcedAdmin();
121 public static EnforcedAdmin createDefaultEnforcedAdminWithRestriction( in createDefaultEnforcedAdminWithRestriction()
[all …]
DRestrictedLockUtilsInternal.java80 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced()
95 return EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
110 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
117 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
142 public static EnforcedAdmin checkIfKeyguardFeaturesDisabled(Context context, in checkIfKeyguardFeaturesDisabled()
182 private static EnforcedAdmin findEnforcedAdmin(@Nullable List<ComponentName> admins, in findEnforcedAdmin()
190 EnforcedAdmin enforcedAdmin = null; in findEnforcedAdmin()
194 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin()
196 return EnforcedAdmin.MULTIPLE_ENFORCED_ADMIN; in findEnforcedAdmin()
203 public static EnforcedAdmin checkIfUninstallBlocked(Context context, in checkIfUninstallBlocked()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java25 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
59 protected static EnforcedAdmin checkIfMeteredDataUsageUserControlDisabled(Context context, in checkIfMeteredDataUsageUserControlDisabled()
62 return new EnforcedAdmin(); in checkIfMeteredDataUsageUserControlDisabled()
65 return new EnforcedAdmin(); in checkIfMeteredDataUsageUserControlDisabled()
71 protected static EnforcedAdmin checkIfAccountManagementDisabled(Context context, in checkIfAccountManagementDisabled()
86 return new EnforcedAdmin(); in checkIfAccountManagementDisabled()
90 protected static EnforcedAdmin checkIfKeyguardFeaturesDisabled(Context context, in checkIfKeyguardFeaturesDisabled()
92 return (sKeyguardDisabledFeatures & features) == 0 ? null : new EnforcedAdmin(); in checkIfKeyguardFeaturesDisabled()
102 protected static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced()
104 return sIsRestricted ? new EnforcedAdmin() : null; in checkIfRestrictionEnforced()
[all …]
DShadowRestrictionUtils.java6 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
16 protected EnforcedAdmin checkIfRestrictionEnforced(Context context, String restriction) { in checkIfRestrictionEnforced()
18 return new EnforcedAdmin(); in checkIfRestrictionEnforced()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DContentProtectionTogglePreferenceControllerTest.java69 @Nullable private RestrictedLockUtils.EnforcedAdmin mEnforcedAdmin;
146 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in isChecked_enforcedAdmin_flagDisabled_false()
157 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in isChecked_enforcedAdmin_flagEnabled_policyDisabled_false()
168 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in isChecked_enforcedAdmin_flagEnabled_policyEnabled_true()
180 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in isChecked_enforcedAdmin_flagEnabled_policyNotControlled_readsSettingsTrue()
191 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in isChecked_enforcedAdmin_flagEnabled_policyNotControlled_readsSettingsFalse()
203 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in isChecked_enforcedAdmin_flagEnabled_policyNotControlled_readsSettingsDefaultTrue()
233 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in updateState_flagDisabled_enforcedAdmin()
281 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in updateState_flagEnabled_enforcedAdmin_policyDisabled()
294 mEnforcedAdmin = new RestrictedLockUtils.EnforcedAdmin(); in updateState_flagEnabled_enforcedAdmin_policyEnabled()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DResetNetworkRestrictionViewBuilderTest.java31 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
69 protected EnforcedAdmin getEnforceAdminByRestriction() { return null; } in build_getNull_whenNoRestriction()
92 EnforcedAdmin admin = RestrictedLockUtils.EnforcedAdmin in build_getView_whenEnforceAdminRestriction()
99 protected EnforcedAdmin getEnforceAdminByRestriction() { return admin; } in build_getView_whenEnforceAdminRestriction()
101 protected AlertDialog.Builder createRestrictDialogBuilder(EnforcedAdmin admin) { in build_getView_whenEnforceAdminRestriction()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DActionDisabledByAdminDialog.java29 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
39 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate()
52 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent()
58 EnforcedAdmin getAdminDetailsFromIntent(Intent intent) { in getAdminDetailsFromIntent()
59 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent()
DActionDisabledByAdminDialogHelper.java38 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
50 @VisibleForTesting EnforcedAdmin mEnforcedAdmin;
59 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId()
72 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder()
100 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog()
125 setAdminSupportDetails(mActivity, root, new EnforcedAdmin(admin, user)); in initializeDialogViews()
165 final EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails()
192 void showAdminPolicies(final EnforcedAdmin enforcedAdmin, final Activity activity) { in showAdminPolicies()
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialog.java27 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
37 final RestrictedLockUtils.EnforcedAdmin enforcedAdmin = in onCreate()
49 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent()
55 EnforcedAdmin getAdminDetailsFromIntent(Intent intent) { in getAdminDetailsFromIntent()
56 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent()
DActionDisabledByAdminDialogHelper.java41 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
55 @VisibleForTesting EnforcedAdmin mEnforcedAdmin;
82 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId()
91 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder()
104 EnforcedAdmin enforcedAdmin) { in prepareDialogBuilder()
115 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog()
125 private void initializeDialogViews(View root, EnforcedAdmin enforcedAdmin, int userId, in initializeDialogViews()
148 setAdminSupportDetails(mActivity, root, new EnforcedAdmin(admin, user)); in initializeDialogViews()
176 final EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogTest.java26 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
47 final EnforcedAdmin expectedAdmin = new EnforcedAdmin(component, UserHandle.of(userId)); in testGetAdminDetailsFromIntent()
58 final EnforcedAdmin expectedAdmin = new EnforcedAdmin(null, UserHandle.of(userId)); in testGetAdminDetailsFromNullIntent()
DActionDisabledByAdminDialogHelperTest.java48 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
72 private static final EnforcedAdmin ENFORCED_ADMIN =
73 new EnforcedAdmin(ADMIN_COMPONENT, new UserHandle(USER_ID));
147 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails()
168 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails_shortSupportMessageIsNull()
190 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetailsNotAdmin()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowRestrictedLockUtilsInternal.java31 private static RestrictedLockUtils.EnforcedAdmin sEnforcedAdmin;
40 public static void setEnforcedAdmin(RestrictedLockUtils.EnforcedAdmin enforcedAdmin) { in setEnforcedAdmin()
49 RestrictedLockUtils.EnforcedAdmin admin) { in sendShowAdminSupportDetailsIntent()
54 protected static RestrictedLockUtils.EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced()
/packages/apps/Settings/src/com/android/settings/widget/
DRestrictedButton.java25 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
56 EnforcedAdmin admin = getEnforcedAdmin(); in performClick()
76 private EnforcedAdmin getEnforcedAdmin() { in getEnforcedAdmin()
78 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in getEnforcedAdmin()
/packages/apps/Settings/src/com/android/settings/biometrics/
DParentalControlsUtils.java47 public static RestrictedLockUtils.EnforcedAdmin parentConsentRequired(@NonNull Context context, in parentConsentRequired()
56 return new RestrictedLockUtils.EnforcedAdmin(testComponentName, in parentConsentRequired()
70 static RestrictedLockUtils.EnforcedAdmin parentConsentRequiredInternal( in parentConsentRequiredInternal()
77 return new RestrictedLockUtils.EnforcedAdmin(cn, UserManager.DISALLOW_BIOMETRIC, in parentConsentRequiredInternal()
/packages/apps/Settings/src/com/android/settings/network/
DResetNetworkRestrictionViewBuilder.java32 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
78 EnforcedAdmin admin = getEnforceAdminByRestriction(); in build()
103 protected EnforcedAdmin getEnforceAdminByRestriction() { in getEnforceAdminByRestriction()
109 protected AlertDialog.Builder createRestrictDialogBuilder(EnforcedAdmin admin) { in createRestrictDialogBuilder()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledByAdminDialogFragment.java42 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
131 EnforcedAdmin enforcedAdmin = hasValidIntent in initialize()
159 private static @UserIdInt int getEnforcementAdminUserId(@Nullable EnforcedAdmin admin) { in getEnforcementAdminUserId()
165 @Nullable EnforcedAdmin enforcedAdmin, @UserIdInt int userId) { in initializeDialogViews()
188 private boolean isNotValidEnforcedAdmin(Context context, EnforcedAdmin enforcedAdmin) { in isNotValidEnforcedAdmin()
211 EnforcedAdmin deviceOwner = RestrictedLockUtilsInternal.getDeviceOwner(context); in isNotDeviceOwner()
225 @Nullable EnforcedAdmin enforcedAdmin) { in setAdminSupportDetails()
DEnterpriseUtils.java41 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
258 public static EnforcedAdmin getEnforcedAdminFromIntent(Context context, Intent intent) { in getEnforcedAdminFromIntent()
259 EnforcedAdmin admin = new EnforcedAdmin(null, context.getUser()); in getEnforcedAdminFromIntent()
299 public static EnforcedAdmin getEnforcedAdmin(Context context, @UserIdInt int adminUser, in getEnforcedAdmin()
304 EnforcedAdmin admin = null; in getEnforcedAdmin()
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/
DBiometricNavigationUtilsTest.java41 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
183 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin( in getBiometricSettingsIntent_whenDisabledByAdmin_quietMode_returnsBlockedIntent()
195 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin( in getBiometricSettingsIntent_whenDisabledByAdmin_emptyExtras_returnsBlockedIntent()
207 final EnforcedAdmin enforcedAdmin = new EnforcedAdmin( in getBiometricSettingsIntent_whenDisabledByAdmin_withExtras_returnsBlockedIntent()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/enterprise/
DBaseActionDisabledByAdminController.java24 import com.android.tv.settings.library.settingslib.RestrictedLockUtils.EnforcedAdmin;
34 protected EnforcedAdmin mEnforcedAdmin;
48 public final void updateEnforcedAdmin(EnforcedAdmin admin, int adminUserId) { in updateEnforcedAdmin()
/packages/apps/Settings/src/com/android/settings/biometrics/combination/
DCombinedBiometricStatusUtils.java31 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
73 public EnforcedAdmin getDisablingAdmin() { in getDisablingAdmin()
77 final EnforcedAdmin faceAdmin = ParentalControlsUtils in getDisablingAdmin()
79 final EnforcedAdmin fpAdmin = ParentalControlsUtils in getDisablingAdmin()
/packages/apps/Settings/src/com/android/settings/
DRestrictedCheckBox.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
36 private EnforcedAdmin mEnforcedAdmin;
56 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
DRestrictedRadioButton.java19 import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
33 private EnforcedAdmin mEnforcedAdmin;
62 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DAddWifiNetworkPreferenceTest.java56 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = null; in updatePreferenceForRestriction_isAddWifiConfigAllowed_prefIsEnabled()
65 RestrictedLockUtils.EnforcedAdmin enforcedAdmin = new RestrictedLockUtils.EnforcedAdmin( in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DExternalSources.java31 import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
88 EnforcedAdmin admin = checkIfRestrictionEnforcedByAdmin(entry); in bindPreference()
99 private EnforcedAdmin checkIfRestrictionEnforcedByAdmin(ApplicationsState.AppEntry entry) { in checkIfRestrictionEnforcedByAdmin()
101 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getContext(), in checkIfRestrictionEnforcedByAdmin()

123456789