/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceControllerTest.java | 122 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_noSecureLockscreen() 123 assertThat(mWorkController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_noSecureLockscreen() 141 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_noWorkProfile() 142 assertThat(mWorkController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_noWorkProfile() 159 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_adminSaysNoRedaction() 160 assertThat(mWorkController.getAvailabilityStatus()).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_adminSaysNoRedaction() 177 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_adminSaysNoNotifications() 178 assertThat(mWorkController.getAvailabilityStatus()).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_adminSaysNoNotifications() 192 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_noNotifications() 193 assertThat(mWorkController.getAvailabilityStatus()).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_noNotifications() [all …]
|
D | AssistantCapabilityPreferenceControllerTest.java | 85 assertThat(mPrioritizerController.getAvailabilityStatus()) in getAvailabilityStatus_NAS() 87 assertThat(mChipController.getAvailabilityStatus()) in getAvailabilityStatus_NAS() 94 assertThat(mPrioritizerController.getAvailabilityStatus()) in getAvailabilityStatus_noNAS() 96 assertThat(mChipController.getAvailabilityStatus()) in getAvailabilityStatus_noNAS()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | PreferenceController.java | 239 if (getAvailabilityStatus() == AVAILABLE) { in refreshUi() 258 if (getAvailabilityStatus() == UNSUPPORTED_ON_DEVICE) { in onCreate() 274 if (getAvailabilityStatus() == UNSUPPORTED_ON_DEVICE) { in onStart() 287 if (getAvailabilityStatus() == UNSUPPORTED_ON_DEVICE) { in onResume() 299 if (getAvailabilityStatus() == UNSUPPORTED_ON_DEVICE) { in onPause() 311 if (getAvailabilityStatus() == UNSUPPORTED_ON_DEVICE) { in onStop() 324 if (getAvailabilityStatus() == UNSUPPORTED_ON_DEVICE) { in onDestroy() 353 protected int getAvailabilityStatus() { in getAvailabilityStatus() method in PreferenceController
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 97 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_isManagedProfile_shouldReturnDisabled() 104 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_noCallback_shouldReturnUnsupported() 113 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_noCallbackForIsRoleNotVisible_shouldReturnUnsupported() 122 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_RoleIsNotVisible_shouldReturnUnsupported() 131 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_noCallbackForIsApplicationQualifiedForRole_shouldReturnUnsupported() 140 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_applicationIsNotQualifiedForRole_shouldReturnUnsupported() 149 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_RoleVisibleAndApplicationQualified_shouldReturnAvailable()
|
D | AppDataUsagePreferenceControllerTest.java | 76 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_bandwidthControlEnabled_shouldReturnAvailable() 84 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_bandwidthControlDisabled_shouldReturnDisabled() 91 …turn(BasePreferenceController.CONDITIONALLY_UNAVAILABLE).when(mController).getAvailabilityStatus(); in onResume_notAvailable_shouldNotRestartDataLoader() 106 doReturn(BasePreferenceController.AVAILABLE).when(mController).getAvailabilityStatus(); in onResume_isAvailable_shouldRestartDataLoader() 119 doReturn(BasePreferenceController.AVAILABLE).when(mController).getAvailabilityStatus(); in onPause_shouldDestroyDataLoader()
|
D | DrawOverlayDetailPreferenceControllerTest.java | 73 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_managedProfile_shouldReturnDisabled() 82 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled() 93 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noSystemAlertWindowPermission_shouldReturnDisabled() 104 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_hasSystemAlertWindowPermission_shouldReturnAvailable()
|
D | WriteSystemSettingsPreferenceControllerTest.java | 73 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_managedProfile_shouldReturnDisabled() 82 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled() 93 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noWriteSettingsPermission_shouldReturnDisabled() 104 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_hasWriteSettingsPermission_shouldReturnAvailable()
|
D | TimeSpentInAppPreferenceControllerTest.java | 81 assertThat(mController.getAvailabilityStatus()) in noPackageName_shouldBeDisabled() 89 assertThat(mController.getAvailabilityStatus()) in noIntentHandler_shouldBeDisabled() 98 assertThat(mController.getAvailabilityStatus()) in hasIntentHandler_notSystemApp_shouldBeDisabled() 111 assertThat(mController.getAvailabilityStatus()) in hasIntentHandler_resolvedToSystemApp_shouldBeAvailable()
|
D | AppMemoryPreferenceControllerTest.java | 85 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_developmentSettingsEnabled_shouldReturnAvailable() 94 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_devSettingsEnabled_butNotVisible_shouldReturnUnsupported() 103 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_devSettingsDisabled_butNotVisible_shouldReturnUnsupported() 113 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_developmentSettingsDisabled_shouldReturnDisabled()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/ |
D | DefaultVoiceInputPickerEntryPreferenceControllerTest.java | 105 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable() 111 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable() 120 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_differentComponents_returnsAvailable() 127 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_assistNull_returnsAvailable() 134 assertThat(mController.getAvailabilityStatus()).isEqualTo( in getAvailabilityStatus_voiceInputNull_returnsAvailable() 160 assertThat(mController.getAvailabilityStatus()).isEqualTo(PreferenceController.AVAILABLE); in onChange_changeRegisteredSetting_callsRefreshUi() 168 assertThat(mController.getAvailabilityStatus()).isEqualTo( in onChange_changeRegisteredSetting_callsRefreshUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | PreferenceControllerListHelperTest.java | 76 public int getAvailabilityStatus() { in filterControllers_noFilter_shouldReturnSameList() 90 public int getAvailabilityStatus() { in filterControllers_noDuplicationFromFilter_shouldReturnSameList() 97 public int getAvailabilityStatus() { in filterControllers_noDuplicationFromFilter_shouldReturnSameList() 111 public int getAvailabilityStatus() { in filterControllers_hasDuplicationFromFilter_shouldReturnSameList() 118 public int getAvailabilityStatus() { in filterControllers_hasDuplicationFromFilter_shouldReturnSameList()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/ |
D | MasterClearEntryPreferenceControllerTest.java | 79 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_nonAdminUser_disabledForUser() 86 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_adminUser_available() 95 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_adminUser_restricted_disabledForUser() 105 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_demoMode_demoUser_available() 117 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_demoMode_demoUser_restricted_disabledForUser()
|
D | ResetEsimPreferenceControllerTest.java | 66 assertThat(mController.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_disabledEuiccManager_unsupportedOnDevice() 73 assertThat(mController.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_euiccNotProvisioned_unsupportedOnDevice() 82 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_euiccNotProvisioned_developer_available() 90 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_euiccProvisioned_available()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/ |
D | GameDriverFooterPreferenceControllerTest.java | 73 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_UNSEARCHABLE); in getAvailabilityStatus_gameDriverOff_availableUnsearchable() 81 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_gameDriverDefault_conditionallyUnavailable() 89 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_gameDriverAllApps_conditionallyUnavailable() 110 when(mController.getAvailabilityStatus()).thenReturn(AVAILABLE_UNSEARCHABLE); in updateState_available_visible() 118 when(mController.getAvailabilityStatus()).thenReturn(CONDITIONALLY_UNAVAILABLE); in updateState_unavailable_invisible()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/ |
D | BasePreferenceController.java | 167 public abstract int getAvailabilityStatus(); in getAvailabilityStatus() method in BasePreferenceController 190 final int availabilityStatus = getAvailabilityStatus(); in isAvailable() 204 return getAvailabilityStatus() != UNSUPPORTED_ON_DEVICE; in isSupported() 213 if (getAvailabilityStatus() == DISABLED_DEPENDENT_SETTING) { in displayPreference() 237 || getAvailabilityStatus() == AVAILABLE_UNSEARCHABLE; in updateNonIndexableKeys()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | BasePreferenceController.java | 167 public abstract int getAvailabilityStatus(); in getAvailabilityStatus() method in BasePreferenceController 190 final int availabilityStatus = getAvailabilityStatus(); in isAvailable() 204 return getAvailabilityStatus() != UNSUPPORTED_ON_DEVICE; in isSupported() 213 if (getAvailabilityStatus() == DISABLED_DEPENDENT_SETTING) { in displayPreference() 237 || getAvailabilityStatus() == AVAILABLE_UNSEARCHABLE; in updateNonIndexableKeys()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | GameControllerPreferenceControllerTest.java | 84 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable() 94 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled() 103 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_hasNoPhysicalDevice_shouldReturnDisabled() 110 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_hasNoDevice_shouldReturnDisabled() 118 assertThat(mController.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_ifDisabled_shouldReturnDisabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcForegroundPreferenceControllerTest.java | 78 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noNFC_DISABLED() 86 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPaymentBackend_DISABLED() 96 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPaymentApps_DISABLED() 101 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPaymentApps_DISABLED() 117 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
|
D | NfcPaymentPreferenceControllerTest.java | 73 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noNFC_DISABLED() 83 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPaymentApps_DISABLED() 88 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noPaymentApps_DISABLED() 100 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | ApnPreferenceControllerTest.java | 95 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable() 105 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable() 115 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable() 123 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_carrierConfigNull_returnUnavailable() 135 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable()
|
D | MmsMessagePreferenceControllerTest.java | 80 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_invalidSubscription_returnUnavailable() 87 assertThat(mController.getAvailabilityStatus(SUB_ID)).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_mobileDataOn_returnUnavailable() 94 assertThat(mController.getAvailabilityStatus(SUB_ID)).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_meteredOff_returnUnavailable() 103 assertThat(mController.getAvailabilityStatus(SUB_ID)).isEqualTo(AVAILABLE); in getAvailabilityStatus_mobileDataOffWithValidSubId_returnAvailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/ |
D | LockScreenPreferenceControllerTest.java | 94 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_notSecure_lockscreenDisabled_DISABLED() 102 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_UNSEARCHABLE); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE() 111 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE_UNSEARCHABLE); in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE() 120 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_secure_noLockScreen_DISABLED()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | SimLockPreferenceControllerTest.java | 89 assertThat(mController.getAvailabilityStatus()) in isAvailable_notAdmin_false() 97 assertThat(mController.getAvailabilityStatus()) in isAvailable_simIccNotReady_false() 109 assertThat(mController.getAvailabilityStatus()) in isAvailable_carrierConfigDisabled_false() 120 assertThat(mController.getAvailabilityStatus()) in isAvailable_true()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | CrossProfileCalendarPreferenceControllerTest.java | 90 assertThat(mController.getAvailabilityStatus()) in getAvailabilityStatus_noManagedUser_shouldBeDisabled() 98 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_noPackageAllowed_shouldBeDisabledForUser() 107 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_somePackagesAllowed_shouldBeAvailable() 115 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_allPackagesAllowed_shouldBeAvailable()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | AddTrustedDevicePreferenceControllerTest.java | 154 assertThat(mController.getAvailabilityStatus()).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice() 164 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser() 174 assertThat(mController.getAvailabilityStatus()).isEqualTo(DISABLED_FOR_USER); in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser() 183 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_available()
|