Home
last modified time | relevance | path

Searched refs:availabilityStatus (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DMmsMessagePreferenceControllerTest.kt69 val availabilityStatus = controller.getAvailabilityStatus(INVALID_SUBSCRIPTION_ID) in getAvailabilityStatus_invalidSubscription_unavailable() constant
71 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_invalidSubscription_unavailable()
80 val availabilityStatus = controller.getAvailabilityStatus(SUB_2_ID) in getAvailabilityStatus_mobileDataOn_unavailable() constant
82 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_mobileDataOn_unavailable()
91 val availabilityStatus = controller.getAvailabilityStatus(SUB_2_ID) in getAvailabilityStatus_meteredOff_unavailable() constant
93 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_meteredOff_unavailable()
106 val availabilityStatus = controller.getAvailabilityStatus(SUB_2_ID) in getAvailabilityStatus_isDefaultDataAndDataOnAndAutoDataSwitchOn_unavailable() constant
108 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_isDefaultDataAndDataOnAndAutoDataSwitchOn_unavailable()
121 val availabilityStatus = controller.getAvailabilityStatus(SUB_2_ID) in getAvailabilityStatus_isDefaultDataAndDataOffAndAutoDataSwitchOn_available() constant
123 assertThat(availabilityStatus).isEqualTo(AVAILABLE) in getAvailabilityStatus_isDefaultDataAndDataOffAndAutoDataSwitchOn_available()
[all …]
DDisableSimFooterPreferenceControllerTest.kt54 val availabilityStatus = controller.getAvailabilityStatus(INVALID_SUBSCRIPTION_ID) in getAvailabilityStatus_invalidId_notAvailable() constant
56 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_invalidId_notAvailable()
65 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_eSim_notAvailable() constant
67 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_eSim_notAvailable()
79 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_pSimAndCannotDisable_available() constant
81 assertThat(availabilityStatus).isEqualTo(AVAILABLE) in getAvailabilityStatus_pSimAndCannotDisable_available()
93 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_pSimAndCanDisable_notAvailable() constant
95 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_pSimAndCanDisable_notAvailable()
DTelephonyStatusControlSessionTest.kt43 waitUntil { controller.availabilityStatus == STATUS } in <lambda>()
57 assertThat(controller.availabilityStatus).isNull() in <lambda>()
68 var availabilityStatus: Int? = null variable in com.android.settings.network.telephony.TelephonyStatusControlSessionTest
72 availabilityStatus = status in getAvailabilityStatus()
76 availabilityStatus = null in unsetAvailabilityStatus()
DMobileNetworkPhoneNumberPreferenceControllerTest.kt119 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant
121 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notSimHardwareVisible()
DMobileNetworkEidPreferenceControllerTest.kt139 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant
141 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notSimHardwareVisible()
DMobileNetworkImeiPreferenceControllerTest.kt161 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant
163 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notSimHardwareVisible()
DDataUsagePreferenceControllerTest.kt105 assertThat(controller.availabilityStatus).isEqualTo(AVAILABLE) in getAvailabilityStatus_validSubId_returnAvailable()
110 val availabilityStatus = in getAvailabilityStatus_invalidSubId_returnUnsearchable() constant
113 assertThat(availabilityStatus).isEqualTo(AVAILABLE_UNSEARCHABLE) in getAvailabilityStatus_invalidSubId_returnUnsearchable()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/deviceinfo/simstatus/
DSimEidPreferenceControllerTest.kt60 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_isSimHardwareVisible() constant
62 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.AVAILABLE) in getAvailabilityStatus_isSimHardwareVisible()
69 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant
71 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.UNSUPPORTED_ON_DEVICE) in getAvailabilityStatus_notSimHardwareVisible()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DTetherPreferenceControllerTest.kt63 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_whenTetherAvailable() constant
65 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.AVAILABLE) in getAvailabilityStatus_whenTetherAvailable()
72 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_whenTetherNotAvailable() constant
74 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_whenTetherNotAvailable()
DBluetoothWiFiResetPreferenceControllerTest.kt72 val availabilityStatus = controller.getAvailabilityStatus() in getAvailabilityStatus_isAdminUser_returnAvailable() constant
74 assertThat(availabilityStatus).isEqualTo(AVAILABLE) in getAvailabilityStatus_isAdminUser_returnAvailable()
83 val availabilityStatus = controller.getAvailabilityStatus() in getAvailabilityStatus_notAdminUser_returnConditionallyUnavailable() constant
85 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notAdminUser_returnConditionallyUnavailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DTapScreenGesturePreferenceControllerTest.java73 final int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_gestureNotSupported_UNSUPPORTED_ON_DEVICE() local
75 assertThat(availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_gestureNotSupported_UNSUPPORTED_ON_DEVICE()
81 final int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_gestureSupported_AVAILABLE() local
83 assertThat(availabilityStatus).isEqualTo(AVAILABLE); in getAvailabilityStatus_gestureSupported_AVAILABLE()
DPickupGesturePreferenceControllerTest.java99 final int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE() local
101 assertThat(availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
108 final int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE() local
110 assertThat(availabilityStatus).isEqualTo(AVAILABLE); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
DDoubleTapScreenPreferenceControllerTest.java110 final int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE() local
112 assertThat(availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_aodNotSupported_UNSUPPORTED_ON_DEVICE()
119 final int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE() local
121 assertThat(availabilityStatus).isEqualTo(AVAILABLE); in getAvailabilityStatus_aodSupported_aodOff_AVAILABLE()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/appinfo/
DAppAllServicesPreferenceControllerTest.kt74 PreferenceControllerTestUtil.assertAvailability(controller.availabilityStatus, AVAILABLE) in getAvailabilityStatus_shouldReturnAvailable()
89 controller.availabilityStatus, in getAvailabilityStatus_isNotLocationProvider_shouldReturnConditionallyUnavailable()
107 controller.availabilityStatus, in getAvailabilityStatus_canNotHandleIntent_shouldReturnConditionallyUnavailable()
124 controller.availabilityStatus, in getAvailabilityStatus_shouldReturnConditionallyUnavailable()
135 controller.availabilityStatus, in canPackageHandleIntent_nullPackageInfo_shouldNotCrash()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/system/
DDeveloperOptionsControllerTest.kt66 val availabilityStatus = controller.getAvailabilityStatus() in getAvailabilityStatus_isAdminUser_returnAvailable() constant
68 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.AVAILABLE) in getAvailabilityStatus_isAdminUser_returnAvailable()
77 val availabilityStatus = controller.getAvailabilityStatus() in getAvailabilityStatus_notAdminUser_returnDisabledForUser() constant
79 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.DISABLED_FOR_USER) in getAvailabilityStatus_notAdminUser_returnDisabledForUser()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.kt117 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_noMobileData_conditionallyUnavailable() constant
119 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_noMobileData_conditionallyUnavailable()
128 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_hasSubInfo_available() constant
130 assertThat(availabilityStatus).isEqualTo(AVAILABLE) in getAvailabilityStatus_hasSubInfo_available()
139 val availabilityStatus = controller.getAvailabilityStatus(SUB_ID) in getAvailabilityStatus_noSubInfo_conditionallyUnavailable() constant
141 assertThat(availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_noSubInfo_conditionallyUnavailable()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreferenceController.java88 int availabilityStatus = super.getDefaultAvailabilityStatus(); in getDefaultAvailabilityStatus() local
89 if (availabilityStatus == AVAILABLE in getDefaultAvailabilityStatus()
93 return availabilityStatus; in getDefaultAvailabilityStatus()
DBluetoothUnbondedDevicesPreferenceController.java77 int availabilityStatus = super.getDefaultAvailabilityStatus(); in getDefaultAvailabilityStatus() local
78 if (availabilityStatus == AVAILABLE in getDefaultAvailabilityStatus()
82 return availabilityStatus; in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DRestartSystemPreferenceController.java122 int availabilityStatus = super.getDefaultAvailabilityStatus();
123 if (availabilityStatus == AVAILABLE && !isRebootEnabled()) {
126 return availabilityStatus;
/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/
DThreadNetworkFragmentControllerTest.kt74 assertThat(controller.availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in availabilityStatus_flagDisabled_returnsConditionallyUnavailable()
83 assertThat(controller.availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE) in availabilityStatus_threadFeatureNotSupported_returnsUnsupported()
91 assertThat(controller.availabilityStatus).isEqualTo(AVAILABLE) in availabilityStatus_threadFeatureSupported_returnsAvailable()
DThreadNetworkToggleControllerTest.kt80 assertThat(controller.availabilityStatus).isEqualTo(CONDITIONALLY_UNAVAILABLE) in availabilityStatus_flagDisabled_returnsConditionallyUnavailable()
89 assertThat(controller.availabilityStatus).isEqualTo(UNSUPPORTED_ON_DEVICE) in availabilityStatus_threadFeatureNotSupported_returnsUnsupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DSmartAutoRotateControllerTest.java141 int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_deviceStateRotationLocked_returnDisableDependentSetting() local
143 assertThat(availabilityStatus).isEqualTo(DISABLED_DEPENDENT_SETTING); in getAvailabilityStatus_deviceStateRotationLocked_returnDisableDependentSetting()
155 int availabilityStatus = mController.getAvailabilityStatus(); in getAvailabilityStatus_deviceStateRotationUnlocked_returnAvailable() local
157 assertThat(availabilityStatus).isEqualTo(AVAILABLE); in getAvailabilityStatus_deviceStateRotationUnlocked_returnAvailable()
/packages/apps/Settings/src/com/android/settings/core/
DBasePreferenceController.java260 final int availabilityStatus = getAvailabilityStatus(); in isAvailable() local
261 return (availabilityStatus == AVAILABLE in isAvailable()
262 || availabilityStatus == AVAILABLE_UNSEARCHABLE in isAvailable()
263 || availabilityStatus == DISABLED_DEPENDENT_SETTING); in isAvailable()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DFakePreferenceController.java77 void setAvailabilityStatus(@AvailabilityStatus int availabilityStatus) { in setAvailabilityStatus() argument
78 mAvailabilityStatus = availabilityStatus; in setAvailabilityStatus()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DFakePreferenceController.java77 void setAvailabilityStatus(@AvailabilityStatus int availabilityStatus) { in setAvailabilityStatus() argument
78 mAvailabilityStatus = availabilityStatus; in setAvailabilityStatus()

12