Stops @Ignore-ing a11y robotests.

Our team is trying to determine the state of our tests in automation,
which is tough to do when some tests are skipped completely.

A11y SettingsRobotests are currently run only in postsubmit, so even
if the Ignored tests fail it should not cause presubmit issues.

Bug: 279082331
Test: Use go/abtd to ensure tests run (and some fail)
Change-Id: I767b25427e748b7e94ab05e81a2f645f8b6279cf
This commit is contained in:
Daniel Norman
2023-05-09 16:40:39 -07:00
parent 4302aeb846
commit 203d362d2d
18 changed files with 0 additions and 48 deletions

View File

@@ -39,7 +39,6 @@ import com.android.settings.testutils.XmlTestUtils;
import com.android.settings.testutils.shadow.ShadowFragment; import com.android.settings.testutils.shadow.ShadowFragment;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -53,7 +52,6 @@ import org.robolectric.annotation.Config;
import java.util.List; import java.util.List;
/** Tests for {@link AccessibilityButtonFragment}. */ /** Tests for {@link AccessibilityButtonFragment}. */
@Ignore
@Config(shadows = ShadowFragment.class) @Config(shadows = ShadowFragment.class)
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class AccessibilityButtonFragmentTest { public class AccessibilityButtonFragmentTest {

View File

@@ -51,7 +51,6 @@ import com.android.settingslib.bluetooth.LocalBluetoothProfileManager;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -246,7 +245,6 @@ public class AccessibilityHearingAidPreferenceControllerTest {
mContext.getText(R.string.accessibility_hearingaid_not_connected_summary)); mContext.getText(R.string.accessibility_hearingaid_not_connected_summary));
} }
@Ignore
@Test @Test
public void handleHearingAidPreferenceClick_noHearingAid_launchHearingAidInstructionDialog() { public void handleHearingAidPreferenceClick_noHearingAid_launchHearingAidInstructionDialog() {
mPreferenceController = spy(new AccessibilityHearingAidPreferenceController(mContext, mPreferenceController = spy(new AccessibilityHearingAidPreferenceController(mContext,
@@ -258,7 +256,6 @@ public class AccessibilityHearingAidPreferenceControllerTest {
verify(mPreferenceController).launchHearingAidInstructionDialog(); verify(mPreferenceController).launchHearingAidInstructionDialog();
} }
@Ignore
@Test @Test
public void handleHearingAidPreferenceClick_withHearingAid_launchBluetoothDeviceDetailSetting public void handleHearingAidPreferenceClick_withHearingAid_launchBluetoothDeviceDetailSetting
() { () {

View File

@@ -65,7 +65,6 @@ import com.android.settingslib.core.lifecycle.Lifecycle;
import com.android.settingslib.search.SearchIndexableRaw; import com.android.settingslib.search.SearchIndexableRaw;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -153,7 +152,6 @@ public class AccessibilitySettingsTest {
} }
@Test @Test
@Ignore
public void getRawDataToIndex_isNull() { public void getRawDataToIndex_isNull() {
final List<SearchIndexableRaw> indexableRawList = final List<SearchIndexableRaw> indexableRawList =
AccessibilitySettings.SEARCH_INDEX_DATA_PROVIDER.getRawDataToIndex(mContext, true); AccessibilitySettings.SEARCH_INDEX_DATA_PROVIDER.getRawDataToIndex(mContext, true);
@@ -257,7 +255,6 @@ public class AccessibilitySettingsTest {
assertThat(description).isEqualTo(DEFAULT_DESCRIPTION); assertThat(description).isEqualTo(DEFAULT_DESCRIPTION);
} }
@Ignore
@Test @Test
@Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) @Config(shadows = {ShadowFragment.class, ShadowUserManager.class})
public void onCreate_haveRegisterToSpecificUrisAndActions() { public void onCreate_haveRegisterToSpecificUrisAndActions() {
@@ -281,7 +278,6 @@ public class AccessibilitySettingsTest {
assertThat(intentFilter.hasAction(Intent.ACTION_PACKAGE_REMOVED)).isTrue(); assertThat(intentFilter.hasAction(Intent.ACTION_PACKAGE_REMOVED)).isTrue();
} }
@Ignore
@Test @Test
@Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) @Config(shadows = {ShadowFragment.class, ShadowUserManager.class})
public void onDestroy_unregisterObserverAndReceiver() { public void onDestroy_unregisterObserverAndReceiver() {
@@ -297,7 +293,6 @@ public class AccessibilitySettingsTest {
} }
@Ignore
@Test @Test
@Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) @Config(shadows = {ShadowFragment.class, ShadowUserManager.class})
public void onContentChanged_updatePreferenceInForeground_preferenceUpdated() { public void onContentChanged_updatePreferenceInForeground_preferenceUpdated() {
@@ -314,7 +309,6 @@ public class AccessibilitySettingsTest {
} }
@Ignore
@Test @Test
@Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) @Config(shadows = {ShadowFragment.class, ShadowUserManager.class})
public void onContentChanged_updatePreferenceInBackground_preferenceUpdated() { public void onContentChanged_updatePreferenceInBackground_preferenceUpdated() {

View File

@@ -50,7 +50,6 @@ import com.android.settings.R;
import com.android.settings.testutils.shadow.ShadowFragment; import com.android.settings.testutils.shadow.ShadowFragment;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Answers; import org.mockito.Answers;
@@ -63,7 +62,6 @@ import org.robolectric.shadow.api.Shadow;
import org.robolectric.shadows.ShadowApplication; import org.robolectric.shadows.ShadowApplication;
/** Tests for {@link AccessibilityShortcutPreferenceFragment} */ /** Tests for {@link AccessibilityShortcutPreferenceFragment} */
@Ignore
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class AccessibilityShortcutPreferenceFragmentTest { public class AccessibilityShortcutPreferenceFragmentTest {

View File

@@ -23,7 +23,6 @@ import android.content.Context;
import androidx.test.core.app.ApplicationProvider; import androidx.test.core.app.ApplicationProvider;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner; import org.robolectric.RobolectricTestRunner;
@@ -41,7 +40,6 @@ public class DisplaySizeDataTest {
mDisplaySizeData = new DisplaySizeData(mContext); mDisplaySizeData = new DisplaySizeData(mContext);
} }
@Ignore("Ignore it since a NPE is happened in ShadowWindowManagerGlobal. (Ref. b/214161063)")
@Test @Test
public void commit_success() { public void commit_success() {
final int progress = 4; final int progress = 4;

View File

@@ -30,7 +30,6 @@ import com.android.settings.R;
import com.android.settingslib.core.AbstractPreferenceController; import com.android.settingslib.core.AbstractPreferenceController;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -66,7 +65,6 @@ public class FlashNotificationsPreferenceFragmentTest {
assertThat(mFragment.getLogTag()).isEqualTo("FlashNotificationsPreferenceFragment"); assertThat(mFragment.getLogTag()).isEqualTo("FlashNotificationsPreferenceFragment");
} }
@Ignore
@Test @Test
public void getMetricsCategory_isZero() { public void getMetricsCategory_isZero() {
assertThat(mFragment.getMetricsCategory()).isEqualTo(0); // TODO assertThat(mFragment.getMetricsCategory()).isEqualTo(0); // TODO

View File

@@ -36,7 +36,6 @@ import com.android.settings.widget.SeekBarPreference;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -159,7 +158,6 @@ public class HapticFeedbackIntensityPreferenceControllerTest {
} }
@Test @Test
@Ignore
public void setProgress_updatesIntensityAndDependentSettings() throws Exception { public void setProgress_updatesIntensityAndDependentSettings() throws Exception {
mController.setSliderPosition(Vibrator.VIBRATION_INTENSITY_OFF); mController.setSliderPosition(Vibrator.VIBRATION_INTENSITY_OFF);
assertThat(readSetting(Settings.System.HAPTIC_FEEDBACK_INTENSITY)) assertThat(readSetting(Settings.System.HAPTIC_FEEDBACK_INTENSITY))

View File

@@ -35,7 +35,6 @@ import com.android.settings.core.BasePreferenceController;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -152,7 +151,6 @@ public class HapticFeedbackTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void setChecked_updatesIntensityAndDependentSettings() throws Exception { public void setChecked_updatesIntensityAndDependentSettings() throws Exception {
updateSetting(Settings.System.HAPTIC_FEEDBACK_INTENSITY, Vibrator.VIBRATION_INTENSITY_OFF); updateSetting(Settings.System.HAPTIC_FEEDBACK_INTENSITY, Vibrator.VIBRATION_INTENSITY_OFF);
mController.updateState(mPreference); mController.updateState(mPreference);

View File

@@ -36,7 +36,6 @@ import com.android.settings.widget.SeekBarPreference;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -147,7 +146,6 @@ public class NotificationVibrationIntensityPreferenceControllerTest {
@Test @Test
@Ignore
public void setProgress_updatesIntensitySetting() throws Exception { public void setProgress_updatesIntensitySetting() throws Exception {
mController.setSliderPosition(Vibrator.VIBRATION_INTENSITY_OFF); mController.setSliderPosition(Vibrator.VIBRATION_INTENSITY_OFF);
assertThat(readSetting(Settings.System.NOTIFICATION_VIBRATION_INTENSITY)) assertThat(readSetting(Settings.System.NOTIFICATION_VIBRATION_INTENSITY))

View File

@@ -36,7 +36,6 @@ import com.android.settings.core.BasePreferenceController;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -138,7 +137,6 @@ public class NotificationVibrationTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void setChecked_updatesIntensityAndDependentSettings() throws Exception { public void setChecked_updatesIntensityAndDependentSettings() throws Exception {
updateSetting(Settings.System.NOTIFICATION_VIBRATION_INTENSITY, updateSetting(Settings.System.NOTIFICATION_VIBRATION_INTENSITY,
Vibrator.VIBRATION_INTENSITY_OFF); Vibrator.VIBRATION_INTENSITY_OFF);

View File

@@ -36,7 +36,6 @@ import com.android.settings.widget.SeekBarPreference;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -167,7 +166,6 @@ public class RingVibrationIntensityPreferenceControllerTest {
} }
@Test @Test
@Ignore
public void setProgress_updatesIntensityAndDependentSettings() throws Exception { public void setProgress_updatesIntensityAndDependentSettings() throws Exception {
mController.setSliderPosition(Vibrator.VIBRATION_INTENSITY_OFF); mController.setSliderPosition(Vibrator.VIBRATION_INTENSITY_OFF);
assertThat(readSetting(Settings.System.RING_VIBRATION_INTENSITY)) assertThat(readSetting(Settings.System.RING_VIBRATION_INTENSITY))

View File

@@ -36,7 +36,6 @@ import com.android.settings.core.BasePreferenceController;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -161,7 +160,6 @@ public class RingVibrationTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void setChecked_updatesIntensityAndDependentSettings() throws Exception { public void setChecked_updatesIntensityAndDependentSettings() throws Exception {
updateSetting(Settings.System.RING_VIBRATION_INTENSITY, Vibrator.VIBRATION_INTENSITY_OFF); updateSetting(Settings.System.RING_VIBRATION_INTENSITY, Vibrator.VIBRATION_INTENSITY_OFF);
mController.updateState(mPreference); mController.updateState(mPreference);

View File

@@ -44,7 +44,6 @@ import androidx.fragment.app.FragmentActivity;
import com.android.settings.R; import com.android.settings.R;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.Robolectric; import org.robolectric.Robolectric;
@@ -54,7 +53,6 @@ import org.robolectric.shadows.ShadowContextWrapper;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@Ignore
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class ScreenFlashNotificationColorDialogFragmentTest { public class ScreenFlashNotificationColorDialogFragmentTest {

View File

@@ -43,7 +43,6 @@ import com.android.settings.testutils.XmlTestUtils;
import com.android.settings.utils.ActivityControllerWrapper; import com.android.settings.utils.ActivityControllerWrapper;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
@@ -141,7 +140,6 @@ public class TextReadingPreferenceFragmentTest {
R.xml.accessibility_text_reading_options); R.xml.accessibility_text_reading_options);
} }
@Ignore
@Test @Test
public void getLogTag_returnsCorrectTag() { public void getLogTag_returnsCorrectTag() {
assertThat(mFragment.getLogTag()).isEqualTo("TextReadingPreferenceFragment"); assertThat(mFragment.getLogTag()).isEqualTo("TextReadingPreferenceFragment");

View File

@@ -54,7 +54,6 @@ import com.android.settings.testutils.shadow.ShadowFragment;
import com.android.settingslib.widget.TopIntroPreference; import com.android.settingslib.widget.TopIntroPreference;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Answers; import org.mockito.Answers;
@@ -119,7 +118,6 @@ public class ToggleFeaturePreferenceFragmentTest {
mContext.setTheme(R.style.Theme_AppCompat); mContext.setTheme(R.style.Theme_AppCompat);
} }
@Ignore
@Test @Test
public void setupFragment_getExpectedPreferenceScreenResId() { public void setupFragment_getExpectedPreferenceScreenResId() {
FragmentController.setupFragment(mFragment, FragmentActivity.class, FragmentController.setupFragment(mFragment, FragmentActivity.class,

View File

@@ -63,7 +63,6 @@ import com.android.settings.testutils.shadow.ShadowSettingsPreferenceFragment;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -121,7 +120,6 @@ public class ToggleScreenMagnificationPreferenceFragmentTest {
when(mActivity.getContentResolver()).thenReturn(mContentResolver); when(mActivity.getContentResolver()).thenReturn(mContentResolver);
} }
@Ignore("Ignore it since a NPE is happened in ShadowWindowManagerGlobal. (Ref. b/214161063)")
@Test @Test
@Config(shadows = ShadowFragment.class) @Config(shadows = ShadowFragment.class)
public void onResume_defaultStateForFollowingTyping_switchPreferenceShouldReturnTrue() { public void onResume_defaultStateForFollowingTyping_switchPreferenceShouldReturnTrue() {
@@ -137,7 +135,6 @@ public class ToggleScreenMagnificationPreferenceFragmentTest {
assertThat(switchPreference.isChecked()).isTrue(); assertThat(switchPreference.isChecked()).isTrue();
} }
@Ignore("Ignore it since a NPE is happened in ShadowWindowManagerGlobal. (Ref. b/214161063)")
@Test @Test
@Config(shadows = ShadowFragment.class) @Config(shadows = ShadowFragment.class)
public void onResume_disableFollowingTyping_switchPreferenceShouldReturnFalse() { public void onResume_disableFollowingTyping_switchPreferenceShouldReturnFalse() {
@@ -343,7 +340,6 @@ public class ToggleScreenMagnificationPreferenceFragmentTest {
assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE | UserShortcutType.TRIPLETAP); assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE | UserShortcutType.TRIPLETAP);
} }
@Ignore("Ignore it since a NPE is happened in ShadowWindowManagerGlobal. (Ref. b/214161063)")
@Test @Test
public void onCreateView_magnificationAreaNotSupported_settingsPreferenceIsNull() { public void onCreateView_magnificationAreaNotSupported_settingsPreferenceIsNull() {
when(mResources.getBoolean( when(mResources.getBoolean(
@@ -357,7 +353,6 @@ public class ToggleScreenMagnificationPreferenceFragmentTest {
assertThat(mFragment.mSettingsPreference).isNull(); assertThat(mFragment.mSettingsPreference).isNull();
} }
@Ignore("Ignore it since a NPE is happened in ShadowWindowManagerGlobal. (Ref. b/214161063)")
@Test @Test
public void onCreateView_windowMagnificationNotSupported_settingsPreferenceIsNull() { public void onCreateView_windowMagnificationNotSupported_settingsPreferenceIsNull() {
when(mResources.getBoolean( when(mResources.getBoolean(
@@ -371,7 +366,6 @@ public class ToggleScreenMagnificationPreferenceFragmentTest {
assertThat(mFragment.mSettingsPreference).isNull(); assertThat(mFragment.mSettingsPreference).isNull();
} }
@Ignore("Ignore it since a NPE is happened in ShadowWindowManagerGlobal. (Ref. b/214161063)")
@Test @Test
public void onCreateView_setDialogDelegateAndAddTheControllerToLifeCycleObserver() { public void onCreateView_setDialogDelegateAndAddTheControllerToLifeCycleObserver() {
Lifecycle lifecycle = mock(Lifecycle.class); Lifecycle lifecycle = mock(Lifecycle.class);

View File

@@ -24,7 +24,6 @@ import static com.google.common.truth.Truth.assertThat;
import android.content.Context; import android.content.Context;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner; import org.robolectric.RobolectricTestRunner;
@@ -48,7 +47,6 @@ public class TopLevelAccessibilityPreferenceControllerTest {
assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE);
} }
@Ignore
@Test @Test
@Config(qualifiers = "mcc999") @Config(qualifiers = "mcc999")
public void getAvailabilityStatus_unsupportedWhenSet() { public void getAvailabilityStatus_unsupportedWhenSet() {

View File

@@ -40,7 +40,6 @@ import androidx.test.core.app.ApplicationProvider;
import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.core.lifecycle.Lifecycle;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -86,7 +85,6 @@ public class VibrationRampingRingerTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void getAvailabilityStatus_notVoiceCapable_returnUnsupportedOnDevice() { public void getAvailabilityStatus_notVoiceCapable_returnUnsupportedOnDevice() {
when(mTelephonyManager.isVoiceCapable()).thenReturn(false); when(mTelephonyManager.isVoiceCapable()).thenReturn(false);
when(mDeviceConfigProvider.isRampingRingerEnabledOnTelephonyConfig()).thenReturn(false); when(mDeviceConfigProvider.isRampingRingerEnabledOnTelephonyConfig()).thenReturn(false);
@@ -95,7 +93,6 @@ public class VibrationRampingRingerTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void getAvailabilityStatus_rampingRingerEnabled_returnUnsupportedOnDevice() { public void getAvailabilityStatus_rampingRingerEnabled_returnUnsupportedOnDevice() {
when(mTelephonyManager.isVoiceCapable()).thenReturn(true); when(mTelephonyManager.isVoiceCapable()).thenReturn(true);
when(mDeviceConfigProvider.isRampingRingerEnabledOnTelephonyConfig()).thenReturn(true); when(mDeviceConfigProvider.isRampingRingerEnabledOnTelephonyConfig()).thenReturn(true);
@@ -104,7 +101,6 @@ public class VibrationRampingRingerTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void getAvailabilityStatus_voiceCapableAndRampingRingerDisabled_returnAvailable() { public void getAvailabilityStatus_voiceCapableAndRampingRingerDisabled_returnAvailable() {
when(mTelephonyManager.isVoiceCapable()).thenReturn(true); when(mTelephonyManager.isVoiceCapable()).thenReturn(true);
when(mDeviceConfigProvider.isRampingRingerEnabledOnTelephonyConfig()).thenReturn(false); when(mDeviceConfigProvider.isRampingRingerEnabledOnTelephonyConfig()).thenReturn(false);
@@ -146,7 +142,6 @@ public class VibrationRampingRingerTogglePreferenceControllerTest {
} }
@Test @Test
@Ignore
public void setChecked_withRingEnabled_updatesSetting() { public void setChecked_withRingEnabled_updatesSetting() {
updateSetting(Settings.System.RING_VIBRATION_INTENSITY, Vibrator.VIBRATION_INTENSITY_HIGH); updateSetting(Settings.System.RING_VIBRATION_INTENSITY, Vibrator.VIBRATION_INTENSITY_HIGH);