/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | ContentProtectionTogglePreferenceControllerTest.java | 227 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()
|
D | ContentProtectionWorkSwitchControllerTest.java | 227 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/ |
D | RestrictedPreferenceController.java | 75 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/ |
D | MultiUserSwitchBarControllerTest.java | 70 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/ |
D | DefaultUsbConfigurationPreferenceControllerTest.java | 79 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()
|
D | UsbAudioRoutingPreferenceControllerTest.java | 109 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/ |
D | WifiDetailsFragment.java | 219 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/ |
D | GenericSwitchController.java | 107 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in GenericSwitchController 109 ((PrimarySwitchPreference) mPreference).setDisabledByAdmin(admin); in setDisabledByAdmin() 111 ((RestrictedSwitchPreference) mPreference).setDisabledByAdmin(admin); in setDisabledByAdmin()
|
D | RestrictedAppPreference.java | 78 mHelper.setDisabledByAdmin(null); in setEnabled() 90 public void setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin() method in RestrictedAppPreference 91 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
|
D | MainSwitchBarController.java | 84 public void setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin() method in MainSwitchBarController 85 mMainSwitch.setDisabledByAdmin(admin); in setDisabledByAdmin()
|
D | SettingsMainSwitchPreference.java | 224 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in SettingsMainSwitchPreference 227 mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin); in setDisabledByAdmin() 234 mMainSwitchBar.setDisabledByAdmin(mEnforcedAdmin); in initMainSwitchBar()
|
D | SettingsMainSwitchBar.java | 78 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() method in SettingsMainSwitchBar 95 setDisabledByAdmin(null); in setEnabled()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DefaultUsbConfigurationPreferenceController.java | 55 mPreference.setDisabledByAdmin( in updateState() 62 mPreference.setDisabledByAdmin( in onDeveloperOptionsSwitchEnabled()
|
D | UsbAudioRoutingPreferenceController.java | 75 mPreference.setDisabledByAdmin( in updateState() 90 mPreference.setDisabledByAdmin( in onDeveloperOptionsSwitchEnabled()
|
D | VerifyAppsOverUsbPreferenceController.java | 104 restrictedPreference.setDisabledByAdmin(null); in updateState() 113 restrictedPreference.setDisabledByAdmin(enforcingAdmin); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | SettingsMainSwitchBarTest.java | 47 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/ |
D | BiometricFaceStatusPreferenceControllerTest.java | 131 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()
|
D | BiometricFingerprintStatusPreferenceControllerTest.java | 133 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/ |
D | AddWifiNetworkPreferenceTest.java | 58 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreferenceForRestriction_isAddWifiConfigAllowed_prefIsEnabled() 68 mPreference.setDisabledByAdmin(enforcedAdmin); in updatePreferenceForRestriction_isAddWifiConfigNotAllowed_prefIsDisabled()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessPreference.java | 62 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/ |
D | TimePreferenceControllerTest.java | 64 mPreference.setDisabledByAdmin(null); in updateState_dateEntryDisabled_shouldDisablePref() 78 mPreference.setDisabledByAdmin(null); in updateState_dateEntryEnabled_shouldEnablePref()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationSwitchBarController.java | 78 mSwitchBar.setDisabledByAdmin(admin); in onLocationModeChanged() 82 mSwitchBar.setDisabledByAdmin(enforcedAdmin); in onLocationModeChanged()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | MultiUserSwitchBarController.java | 57 mSwitchBar.setDisabledByAdmin(RestrictedLockUtilsInternal in MultiUserSwitchBarController() 62 mSwitchBar.setDisabledByAdmin(RestrictedLockUtilsInternal in MultiUserSwitchBarController()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RestrictedListPreference.java | 98 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/ |
D | OwnerInfoPreferenceController.java | 98 mOwnerInfoPref.setDisabledByAdmin(admin); in updateEnableState() 100 mOwnerInfoPref.setDisabledByAdmin(null); in updateEnableState()
|