Home
last modified time | relevance | path

Searched refs:setDisabledByAdmin (Results 1 – 25 of 126) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DContentProtectionTogglePreferenceControllerTest.java227 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in updateState_flagDisabled_noEnforcedAdmin()
239 verify(mMockSwitchPreference).setDisabledByAdmin(mEnforcedAdmin); in updateState_flagDisabled_enforcedAdmin()
251 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in updateState_flagEnabled_noEnforcedAdmin_policyDisabled()
263 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in updateState_flagEnabled_noEnforcedAdmin_policyEnabled()
275 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in updateState_flagEnabled_noEnforcedAdmin_policyNotControlled()
288 verify(mMockSwitchPreference).setDisabledByAdmin(mEnforcedAdmin); in updateState_flagEnabled_enforcedAdmin_policyDisabled()
301 verify(mMockSwitchPreference).setDisabledByAdmin(mEnforcedAdmin); in updateState_flagEnabled_enforcedAdmin_policyEnabled()
314 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in updateState_flagEnabled_enforcedAdmin_policyNotControlled()
DContentProtectionWorkSwitchControllerTest.java227 verify(mMockSwitchPreference).setDisabledByAdmin(mEnforcedAdmin); in displayPreference_flagDisabled_managedProfile_disabledByAdmin()
239 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in displayPreference_flagDisabled_noManagedProfile_notDisabledByAdmin()
253 verify(mMockSwitchPreference).setDisabledByAdmin(mEnforcedAdmin); in displayPreference_flagEnabled_managedProfile_disabledByAdmin()
265 verify(mMockSwitchPreference, never()).setDisabledByAdmin(any()); in displayPreference_flagEnabled_noManagedProfile_notDisabledByAdmin()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DRestrictedPreferenceController.java75 setDisabledByAdmin(admin); in checkRestrictionAndSetDisabled()
112 boolean changed = setDisabledByAdmin(null); in setEnabled()
129 public boolean setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin() method in RestrictedPreferenceController
138 mPreferenceCompat.setDisabledByAdmin(mDisabledByAdmin); in setDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DMultiUserSwitchBarControllerTest.java70 verify(mSwitchWidgetController).setDisabledByAdmin(any()); in onStart_disallowUserSwitch_shouldSetDisabledByAdmin()
81 verify(mSwitchWidgetController, never()).setDisabledByAdmin(any()); in onStart_allowUserSwitch_shouldNotSetDisabledByAdmin()
92 verify(mSwitchWidgetController, never()).setDisabledByAdmin(any()); in onStart_userIsNotMain_shouldNotBeEnabled()
102 verify(mSwitchWidgetController, never()).setDisabledByAdmin(any()); in onStart_userIsMain_shouldBeEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDefaultUsbConfigurationPreferenceControllerTest.java79 verify(mPreference).setDisabledByAdmin(null); in updateState_usbDataSignalingEnabled_shouldNotDisablePreference()
89 verify(mPreference).setDisabledByAdmin(eq(new RestrictedLockUtils.EnforcedAdmin( in updateState_usbDataSignalingDisabled_shouldDisablePreference()
100 verify(mPreference).setDisabledByAdmin(null); in onDeveloperOptionsSwitchEnabled_usbEnabled_shouldNotDisablePreference()
110 verify(mPreference).setDisabledByAdmin(eq(new RestrictedLockUtils.EnforcedAdmin( in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
DUsbAudioRoutingPreferenceControllerTest.java109 verify(mPreference).setDisabledByAdmin(eq(new RestrictedLockUtils.EnforcedAdmin( in updateState_usbDataSignalingDisabled_shouldDisablePreference()
155 verify(mPreference).setDisabledByAdmin(null); in onDeveloperOptionsSwitchEnabled_usbEnabled_shouldNotDisablePreference()
165 verify(mPreference).setDisabledByAdmin(eq(new RestrictedLockUtils.EnforcedAdmin( in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiDetailsFragment.java219 mProxySettingsPref.setDisabledByAdmin(null); in update()
220 mIpSettingsPref.setDisabledByAdmin(null); in update()
221 mForgetNetworkPref.setDisabledByAdmin(null); in update()
229 mProxySettingsPref.setDisabledByAdmin(admin); in update()
230 mIpSettingsPref.setDisabledByAdmin(admin); in update()
231 mForgetNetworkPref.setDisabledByAdmin(admin); in update()
/packages/apps/Settings/src/com/android/settings/widget/
DGenericSwitchController.java107 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in GenericSwitchController
109 ((PrimarySwitchPreference) mPreference).setDisabledByAdmin(admin); in setDisabledByAdmin()
111 ((RestrictedSwitchPreference) mPreference).setDisabledByAdmin(admin); in setDisabledByAdmin()
DRestrictedAppPreference.java78 mHelper.setDisabledByAdmin(null); in setEnabled()
90 public void setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin() method in RestrictedAppPreference
91 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
DMainSwitchBarController.java84 public void setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin() method in MainSwitchBarController
85 mMainSwitch.setDisabledByAdmin(admin); in setDisabledByAdmin()
DSettingsMainSwitchPreference.java224 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in SettingsMainSwitchPreference
227 mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin); in setDisabledByAdmin()
234 mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin); in initMainSwitchBar()
DSettingsMainSwitchBar.java78 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in SettingsMainSwitchBar
95 setDisabledByAdmin(null); in setEnabled()
/packages/apps/Settings/src/com/android/settings/development/
DDefaultUsbConfigurationPreferenceController.java55 mPreference.setDisabledByAdmin( in updateState()
62 mPreference.setDisabledByAdmin( in onDeveloperOptionsSwitchEnabled()
DUsbAudioRoutingPreferenceController.java75 mPreference.setDisabledByAdmin( in updateState()
90 mPreference.setDisabledByAdmin( in onDeveloperOptionsSwitchEnabled()
DVerifyAppsOverUsbPreferenceController.java104 restrictedPreference.setDisabledByAdmin(null); in updateState()
113 restrictedPreference.setDisabledByAdmin(enforcingAdmin); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DSettingsMainSwitchBarTest.java47 mMainSwitchBar.setDisabledByAdmin(new RestrictedLockUtils.EnforcedAdmin()); in disabledByAdmin_shouldBeDisabled()
55 mMainSwitchBar.setDisabledByAdmin(null); in disabledByAdmin_setNull_shouldBeEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/combination/
DBiometricFaceStatusPreferenceControllerTest.java131 verify(restrictedPreference).setDisabledByAdmin(any()); in faceDisabled_whenAdminAndNoFingerprintsEnrolled()
145 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in faceNotDisabled_whenAdminAndFingerprintsEnrolled()
156 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in faceNotDisabled_whenNoAdmin()
DBiometricFingerprintStatusPreferenceControllerTest.java133 verify(restrictedPreference).setDisabledByAdmin(any()); in fingerprintDisabled_whenAdminAndNoFingerprintsEnrolled()
147 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in fingerprintNotDisabled_whenAdminAndFingerprintsEnrolled()
158 verify(restrictedPreference, never()).setDisabledByAdmin(any()); in fingerprintNotDisabled_whenNoAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DAddWifiNetworkPreferenceTest.java58 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreferenceForRestriction_isAddWifiConfigAllowed_prefIsEnabled()
68 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled()
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreference.java62 setDisabledByAdmin(checkIfMeteredDataUsageUserControlDisabled( in UnrestrictedDataAccessPreference()
178 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in UnrestrictedDataAccessPreference
179 mHelper.setDisabledByAdmin(admin); in setDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DTimePreferenceControllerTest.java64 mPreference.setDisabledByAdmin(null); in updateState_dateEntryDisabled_shouldDisablePref()
78 mPreference.setDisabledByAdmin(null); in updateState_dateEntryEnabled_shouldEnablePref()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java78 mSwitchBar.setDisabledByAdmin(admin); in onLocationModeChanged()
82 mSwitchBar.setDisabledByAdmin(enforcedAdmin); in onLocationModeChanged()
/packages/apps/Settings/src/com/android/settings/users/
DMultiUserSwitchBarController.java57 mSwitchBar.setDisabledByAdmin(RestrictedLockUtilsInternal in MultiUserSwitchBarController()
62 mSwitchBar.setDisabledByAdmin(RestrictedLockUtilsInternal in MultiUserSwitchBarController()
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java98 mHelper.setDisabledByAdmin(null); in setEnabled()
104 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in RestrictedListPreference
105 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/security/
DOwnerInfoPreferenceController.java98 mOwnerInfoPref.setDisabledByAdmin(admin); in updateEnableState()
100 mOwnerInfoPref.setDisabledByAdmin(null); in updateEnableState()

123456