/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 152 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/ |
D | RestrictedAppPreference.java | 69 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/ |
D | RestrictedAppPreference.java | 69 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/ |
D | UnrestrictedDataAccessPreference.java | 116 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/ |
D | UnrestrictedDataAccessPreference.java | 116 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/ |
D | RestrictedListPreference.java | 72 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/ |
D | RestrictedListPreference.java | 72 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/ |
D | PrivateDnsModeDialogPreference.java | 149 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/ |
D | PrivateDnsModeDialogPreference.java | 149 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/ |
D | UserPreference.java | 95 if (isDisabledByAdmin()) { in shouldHideSecondTarget() 110 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | RoamingPreferenceControllerTest.java | 149 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/ |
D | UserPreference.java | 95 if (isDisabledByAdmin()) { in shouldHideSecondTarget() 110 final boolean disabledByAdmin = isDisabledByAdmin(); in onBindViewHolder()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | ExternalSourcesDetails.java | 121 if (!mSwitchPref.isDisabledByAdmin()) { in refreshUi() 125 if (mSwitchPref.isDisabledByAdmin()) { in refreshUi()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetails.java | 136 if (!mSwitchPref.isDisabledByAdmin()) { in refreshUi() 140 if (mSwitchPref.isDisabledByAdmin()) { in refreshUi()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/ |
D | BiometricEnrollIntroduction.java | 53 protected abstract boolean isDisabledByAdmin(); in isDisabledByAdmin() method in BiometricEnrollIntroduction 126 mBiometricUnlockDisabledByAdmin = isDisabledByAdmin(); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricEnrollIntroduction.java | 56 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/ |
D | RedactionInterstitial.java | 187 if (showUnredacted && !mShowAllButton.isDisabledByAdmin()) { in loadFromSettings() 189 } else if (!mRedactSensitiveButton.isDisabledByAdmin()) { in loadFromSettings()
|
D | DndPreferenceController.java | 53 pref.setEnabled(isChannelConfigurable() && !pref.isDisabledByAdmin()); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 164 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/ |
D | RedactionInterstitial.java | 186 if (showUnredacted && !mShowAllButton.isDisabledByAdmin()) { in loadFromSettings() 188 } else if (!mRedactSensitiveButton.isDisabledByAdmin()) { in loadFromSettings()
|
D | DndPreferenceController.java | 53 pref.setEnabled(!pref.isDisabledByAdmin()); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessPreferenceControllerTest.java | 139 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/ |
D | TimeZonePreferenceController.java | 50 if( !((RestrictedPreference) preference).isDisabledByAdmin()) { in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | ResetCredentialsPreferenceController.java | 60 if (mPreference != null && !mPreference.isDisabledByAdmin()) { in onResume()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | ResetCredentialsPreferenceController.java | 60 if (mPreference != null && !mPreference.isDisabledByAdmin()) { in onResume()
|