Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourcesDetailsTest.java105 assertThat(mSwitchPref.isDisabledByAdmin()).isFalse(); in refreshUi_hasApplicationInfo_shouldReturnTrue()
132 when(mSwitchPref.isDisabledByAdmin()).thenReturn(true); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
144 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
171 when(mSwitchPref.isDisabledByAdmin()).thenReturn(true); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
183 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
212 when(mSwitchPref.isDisabledByAdmin()).thenReturn(true); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
227 assertThat(mSwitchPref.isDisabledByAdmin()).isTrue(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnable2gPreferenceController.java107 if (isDisabledByAdmin()) { in updateState()
188 if (isDisabledByAdmin()) { in isChecked()
210 if (isDisabledByAdmin()) { in setChecked()
238 private boolean isDisabledByAdmin() { in isDisabledByAdmin() method in Enable2gPreferenceController
239 return (mRestrictedPreference != null && mRestrictedPreference.isDisabledByAdmin()); in isDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/widget/
DRestrictedAppPreference.java77 if (enabled && isDisabledByAdmin()) { in setEnabled()
96 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedAppPreference
97 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactNotificationPreferenceControllerTest.java169 assertThat(primaryPref.isDisabledByAdmin()).isTrue(); in displayPreference_adminSaysNoRedaction()
173 assertThat(workPref.isDisabledByAdmin()).isTrue(); in displayPreference_adminSaysNoRedaction()
184 assertThat(primaryPref.isDisabledByAdmin()).isTrue(); in displayPreference_adminSaysNoSecure()
188 assertThat(workPref.isDisabledByAdmin()).isTrue(); in displayPreference_adminSaysNoSecure()
198 assertThat(primaryPref.isDisabledByAdmin()).isFalse(); in displayPreference()
202 assertThat(workPref.isDisabledByAdmin()).isFalse(); in displayPreference()
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreference.java126 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
169 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in UnrestrictedDataAccessPreference
170 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
196 if (isDisabledByAdmin()) { in updateState()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DRestrictedPreferenceController.java111 if (enabled && isDisabledByAdmin()) { in setEnabled()
142 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedPreferenceController
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java97 if (enabled && isDisabledByAdmin()) { in setEnabled()
110 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedListPreference
111 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
DRestrictedCheckBox.java73 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedCheckBox
DRestrictedRadioButton.java78 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedRadioButton
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DExternalSourcesDetails.java121 if (!mSwitchPref.isDisabledByAdmin()) { in refreshUi()
125 if (mSwitchPref.isDisabledByAdmin()) { in refreshUi()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentListPreferenceController.java220 if (trustAgentPreference.isDisabledByAdmin()) { in updateTrustAgents()
224 } else if (!trustAgentPreference.isDisabledByAdmin() && !hasSecurity) { in updateTrustAgents()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java168 assertThat(preference.isDisabledByAdmin()).isFalse(); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences()
190 assertThat(preference.isDisabledByAdmin()).isTrue(); in onStart_hasRestrictedTructAgent_shouldAddThreeUnchangeablePreferences()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DRoamingPreferenceControllerTest.java194 when(mPreference.isDisabledByAdmin()).thenReturn(false); in updateState_isNotDisabledByAdmin_shouldInvokeSetEnabled()
203 when(mPreference.isDisabledByAdmin()).thenReturn(true); in updateState_isDisabledByAdmin_shouldNotInvokeSetEnabled()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactionInterstitial.java205 if (showUnredacted && !mShowAllButton.isDisabledByAdmin()) { in loadFromSettings()
207 } else if (!mRedactSensitiveButton.isDisabledByAdmin()) { in loadFromSettings()
/packages/apps/Settings/src/com/android/settings/notification/app/
DAppChannelsBypassingDndPreferenceController.java87 && (mAdmin == null || !mAllNotificationsToggle.isDisabledByAdmin())); in displayPreference()
189 (mAdmin == null || !channelPreference.isDisabledByAdmin()) in populateList()
DDndPreferenceController.java59 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
DInvalidConversationPreferenceController.java68 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
DVibrationPreferenceController.java66 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
DLightsPreferenceController.java66 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
/packages/apps/Settings/src/com/android/settings/datetime/
DTimeZonePreferenceController.java58 && ((RestrictedPreference) preference).isDisabledByAdmin()) { in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DMemtagPagePreferenceControllerTest.java64 assertThat(preference.isDisabledByAdmin()).isTrue(); in displayPreference_disabledByAdmin_disablesPreference()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java133 if (isDisabledByAdmin()) { in onBindViewHolder()
240 private boolean isDisabledByAdmin() { in isDisabledByAdmin() method in PrivateDnsModeDialogPreference
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkFragment.java220 if (!mAddPref.isDisabledByAdmin()) { in onCreatePreferences()
231 if (!mAddPref.isDisabledByAdmin()) { in onCreatePreferences()
234 if (!mAddEasyConnectPref.isDisabledByAdmin()) { in onCreatePreferences()
/packages/apps/Settings/src/com/android/settings/users/
DUserPreference.java86 dimIcon(isDisabledByAdmin()); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/vpn2/
DLegacyVpnPreference.java83 if (v.getId() == R.id.settings_button && isDisabledByAdmin()) { in onClick()

123