/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/ |
D | MmsMessagePreferenceControllerTest.kt | 69 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 …]
|
D | DisableSimFooterPreferenceControllerTest.kt | 54 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()
|
D | TelephonyStatusControlSessionTest.kt | 43 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()
|
D | MobileNetworkPhoneNumberPreferenceControllerTest.kt | 119 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant 121 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notSimHardwareVisible()
|
D | MobileNetworkEidPreferenceControllerTest.kt | 139 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant 141 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notSimHardwareVisible()
|
D | MobileNetworkImeiPreferenceControllerTest.kt | 161 val availabilityStatus = controller.availabilityStatus in getAvailabilityStatus_notSimHardwareVisible() constant 163 assertThat(availabilityStatus).isEqualTo(BasePreferenceController.CONDITIONALLY_UNAVAILABLE) in getAvailabilityStatus_notSimHardwareVisible()
|
D | DataUsagePreferenceControllerTest.kt | 105 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/ |
D | SimEidPreferenceControllerTest.kt | 60 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/ |
D | TetherPreferenceControllerTest.kt | 63 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()
|
D | BluetoothWiFiResetPreferenceControllerTest.kt | 72 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/ |
D | TapScreenGesturePreferenceControllerTest.java | 73 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()
|
D | PickupGesturePreferenceControllerTest.java | 99 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()
|
D | DoubleTapScreenPreferenceControllerTest.java | 110 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/ |
D | AppAllServicesPreferenceControllerTest.kt | 74 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/ |
D | DeveloperOptionsControllerTest.kt | 66 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/ |
D | DataUsageSummaryPreferenceControllerTest.kt | 117 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/ |
D | BluetoothDevicePreferenceController.java | 88 int availabilityStatus = super.getDefaultAvailabilityStatus(); in getDefaultAvailabilityStatus() local 89 if (availabilityStatus == AVAILABLE in getDefaultAvailabilityStatus() 93 return availabilityStatus; in getDefaultAvailabilityStatus()
|
D | BluetoothUnbondedDevicesPreferenceController.java | 77 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/ |
D | RestartSystemPreferenceController.java | 122 int availabilityStatus = super.getDefaultAvailabilityStatus(); 123 if (availabilityStatus == AVAILABLE && !isRebootEnabled()) { 126 return availabilityStatus;
|
/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/ |
D | ThreadNetworkFragmentControllerTest.kt | 74 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()
|
D | ThreadNetworkToggleControllerTest.kt | 80 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/ |
D | SmartAutoRotateControllerTest.java | 141 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/ |
D | BasePreferenceController.java | 260 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/ |
D | FakePreferenceController.java | 77 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/ |
D | FakePreferenceController.java | 77 void setAvailabilityStatus(@AvailabilityStatus int availabilityStatus) { in setAvailabilityStatus() argument 78 mAvailabilityStatus = availabilityStatus; in setAvailabilityStatus()
|