/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 105 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/ |
D | Enable2gPreferenceController.java | 107 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/ |
D | RestrictedAppPreference.java | 77 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/ |
D | RedactNotificationPreferenceControllerTest.java | 169 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/ |
D | UnrestrictedDataAccessPreference.java | 126 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/ |
D | RestrictedPreferenceController.java | 111 if (enabled && isDisabledByAdmin()) { in setEnabled() 142 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedPreferenceController
|
/packages/apps/Settings/src/com/android/settings/ |
D | RestrictedListPreference.java | 97 if (enabled && isDisabledByAdmin()) { in setEnabled() 110 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedListPreference 111 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
|
D | RestrictedCheckBox.java | 73 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedCheckBox
|
D | RestrictedRadioButton.java | 78 public boolean isDisabledByAdmin() { in isDisabledByAdmin() method in RestrictedRadioButton
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetails.java | 121 if (!mSwitchPref.isDisabledByAdmin()) { in refreshUi() 125 if (mSwitchPref.isDisabledByAdmin()) { in refreshUi()
|
/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
D | TrustAgentListPreferenceController.java | 220 if (trustAgentPreference.isDisabledByAdmin()) { in updateTrustAgents() 224 } else if (!trustAgentPreference.isDisabledByAdmin() && !hasSecurity) { in updateTrustAgents()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 168 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/ |
D | RoamingPreferenceControllerTest.java | 194 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/ |
D | RedactionInterstitial.java | 205 if (showUnredacted && !mShowAllButton.isDisabledByAdmin()) { in loadFromSettings() 207 } else if (!mRedactSensitiveButton.isDisabledByAdmin()) { in loadFromSettings()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | AppChannelsBypassingDndPreferenceController.java | 87 && (mAdmin == null || !mAllNotificationsToggle.isDisabledByAdmin())); in displayPreference() 189 (mAdmin == null || !channelPreference.isDisabledByAdmin()) in populateList()
|
D | DndPreferenceController.java | 59 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
|
D | InvalidConversationPreferenceController.java | 68 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
|
D | VibrationPreferenceController.java | 66 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
|
D | LightsPreferenceController.java | 66 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | TimeZonePreferenceController.java | 58 && ((RestrictedPreference) preference).isDisabledByAdmin()) { in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | MemtagPagePreferenceControllerTest.java | 64 assertThat(preference.isDisabledByAdmin()).isTrue(); in displayPreference_disabledByAdmin_disablesPreference()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | PrivateDnsModeDialogPreference.java | 133 if (isDisabledByAdmin()) { in onBindViewHolder() 240 private boolean isDisabledByAdmin() { in isDisabledByAdmin() method in PrivateDnsModeDialogPreference
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | NetworkFragment.java | 220 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/ |
D | UserPreference.java | 86 dimIcon(isDisabledByAdmin()); in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | LegacyVpnPreference.java | 83 if (v.getId() == R.id.settings_button && isDisabledByAdmin()) { in onClick()
|