Home
last modified time | relevance | path

Searched refs:isDisabledByAdmin (Results 1 – 25 of 71) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourcesDetailsTest.java152 assertThat(mSwitchPref.isDisabledByAdmin()).isFalse(); in refreshUi_hasApplicationInfo_shouldReturnTrue()
179 when(mSwitchPref.isDisabledByAdmin()).thenReturn(true); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
191 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
218 when(mSwitchPref.isDisabledByAdmin()).thenReturn(true); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
230 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
259 when(mSwitchPref.isDisabledByAdmin()).thenReturn(true); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
274 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
/packages/apps/Settings/src/com/android/settings/widget/
DRestrictedAppPreference.java69 restrictedIcon.setVisibility(isDisabledByAdmin() ? View.VISIBLE : View.GONE); in onBindViewHolder()
82 if (isDisabledByAdmin() && enabled) { in setEnabled()
94 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedAppPreference
95 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DRestrictedAppPreference.java69 restrictedIcon.setVisibility(isDisabledByAdmin() ? View.VISIBLE : View.GONE); in onBindViewHolder()
82 if (isDisabledByAdmin() && enabled) { in setEnabled()
94 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedAppPreference
95 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreference.java116 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
162 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in UnrestrictedDataAccessPreference
163 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
175 if (isDisabledByAdmin()) { in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DUnrestrictedDataAccessPreference.java116 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
162 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in UnrestrictedDataAccessPreference
163 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
175 if (isDisabledByAdmin()) { in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRestrictedListPreference.java72 restrictedIcon.setVisibility(isDisabledByAdmin() ? View.VISIBLE : View.GONE); in onBindViewHolder()
103 if (enabled && isDisabledByAdmin()) { in setEnabled()
116 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedListPreference
117 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java72 restrictedIcon.setVisibility(isDisabledByAdmin() ? View.VISIBLE : View.GONE); in onBindViewHolder()
103 if (enabled && isDisabledByAdmin()) { in setEnabled()
116 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedListPreference
117 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DPrivateDnsModeDialogPreference.java149 if (isDisabledByAdmin()) { in onBindViewHolder()
160 restrictedIcon.setVisibility(isDisabledByAdmin() ? View.VISIBLE : View.GONE); in onBindViewHolder()
255 private boolean isDisabledByAdmin() { in isDisabledByAdmin() method in PrivateDnsModeDialogPreference
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java149 if (isDisabledByAdmin()) { in onBindViewHolder()
160 restrictedIcon.setVisibility(isDisabledByAdmin() ? View.VISIBLE : View.GONE); in onBindViewHolder()
251 private boolean isDisabledByAdmin() { in isDisabledByAdmin() method in PrivateDnsModeDialogPreference
/packages/apps/Settings/src/com/android/settings/users/
DUserPreference.java95 if (isDisabledByAdmin()) { in shouldHideSecondTarget()
110 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DRoamingPreferenceControllerTest.java149 when(mPreference.isDisabledByAdmin()).thenReturn(false); in updateState_isNotDisabledByAdmin_shouldInvokeSetEnabled()
158 when(mPreference.isDisabledByAdmin()).thenReturn(true); in updateState_isDisabledByAdmin_shouldNotInvokeSetEnabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserPreference.java95 if (isDisabledByAdmin()) { in shouldHideSecondTarget()
110 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DExternalSourcesDetails.java121 if (!mSwitchPref.isDisabledByAdmin()) { in refreshUi()
125 if (mSwitchPref.isDisabledByAdmin()) { in refreshUi()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DExternalSourcesDetails.java136 if (!mSwitchPref.isDisabledByAdmin()) { in refreshUi()
140 if (mSwitchPref.isDisabledByAdmin()) { in refreshUi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/
DBiometricEnrollIntroduction.java53 protected abstract boolean isDisabledByAdmin(); in isDisabledByAdmin() method in BiometricEnrollIntroduction
126 mBiometricUnlockDisabledByAdmin = isDisabledByAdmin(); in onCreate()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricEnrollIntroduction.java56 protected abstract boolean isDisabledByAdmin(); in isDisabledByAdmin() method in BiometricEnrollIntroduction
138 mBiometricUnlockDisabledByAdmin = isDisabledByAdmin(); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DRedactionInterstitial.java187 if (showUnredacted && !mShowAllButton.isDisabledByAdmin()) { in loadFromSettings()
189 } else if (!mRedactSensitiveButton.isDisabledByAdmin()) { in loadFromSettings()
DDndPreferenceController.java53 pref.setEnabled(isChannelConfigurable() && !pref.isDisabledByAdmin()); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java164 assertThat(preference.isDisabledByAdmin()).isFalse(); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences()
185 assertThat(preference.isDisabledByAdmin()).isTrue(); in onStart_hasRestrictedTructAgent_shouldAddThreeUnchangeablePreferences()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactionInterstitial.java186 if (showUnredacted && !mShowAllButton.isDisabledByAdmin()) { in loadFromSettings()
188 } else if (!mRedactSensitiveButton.isDisabledByAdmin()) { in loadFromSettings()
DDndPreferenceController.java53 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreferenceControllerTest.java139 assertThat(preference.isDisabledByAdmin()).isFalse(); in onRebuildComplete_restricted_shouldBeDisabled()
142 assertThat(preference.isDisabledByAdmin()).isTrue(); in onRebuildComplete_restricted_shouldBeDisabled()
/packages/apps/Settings/src/com/android/settings/datetime/
DTimeZonePreferenceController.java50 if( !((RestrictedPreference) preference).isDisabledByAdmin()) { in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DResetCredentialsPreferenceController.java60 if (mPreference != null && !mPreference.isDisabledByAdmin()) { in onResume()
/packages/apps/Settings/src/com/android/settings/security/
DResetCredentialsPreferenceController.java60 if (mPreference != null && !mPreference.isDisabledByAdmin()) { in onResume()

123