Loading tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragmentTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import com.android.settings.testutils.shadow.ShadowConnectivityManager; import com.android.settings.testutils.shadow.ShadowUserManager; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -91,6 +92,7 @@ public class ConnectedDeviceDashboardFragmentTest { assertThat(indexRes.get(0).xmlResId).isEqualTo(R.xml.connected_devices); } @Ignore("b/313362757") @Test public void nonIndexableKeys_existInXmlLayout() { final List<String> niks = ConnectedDeviceDashboardFragment.SEARCH_INDEX_DATA_PROVIDER Loading tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsFunctionsControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.widget.SelectorWithWidgetPreference; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -222,6 +223,7 @@ public class UsbDetailsFunctionsControllerTest { assertThat(prefs.get(3).isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void onClickNone_mtpEnabled_shouldDisableMtp() { when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); Loading tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsPowerRoleControllerTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import com.android.settings.R; import com.android.settingslib.core.lifecycle.Lifecycle; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; Loading Loading @@ -100,6 +101,7 @@ public class UsbDetailsPowerRoleControllerTest { mDetailsPowerRoleController.mHandler = mHandler; } @Ignore("b/313362757") @Test public void displayRefresh_sink_shouldUncheck() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -112,6 +114,7 @@ public class UsbDetailsPowerRoleControllerTest { assertThat(pref.isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_source_shouldCheck() { mDetailsPowerRoleController.displayPreference(mScreen); Loading Loading @@ -149,6 +152,7 @@ public class UsbDetailsPowerRoleControllerTest { mDetailsPowerRoleController.getPreferenceKey())).isNull(); } @Ignore("b/313362757") @Test public void onClick_sink_shouldSetSource() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -162,6 +166,7 @@ public class UsbDetailsPowerRoleControllerTest { .isEqualTo(mContext.getString(R.string.usb_switching)); } @Ignore("b/313362757") @Test public void onClickTwice_sink_shouldSetSourceOnce() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -176,6 +181,7 @@ public class UsbDetailsPowerRoleControllerTest { verify(mUsbBackend, times(1)).setPowerRole(POWER_ROLE_SOURCE); } @Ignore("b/313362757") @Test public void onClickDeviceAndRefresh_success_shouldClearSubtext() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -194,6 +200,7 @@ public class UsbDetailsPowerRoleControllerTest { assertThat(pref.getSummary()).isEqualTo(""); } @Ignore("b/313362757") @Test public void onClickDeviceAndRefresh_failed_shouldShowFailureText() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -213,6 +220,7 @@ public class UsbDetailsPowerRoleControllerTest { .isEqualTo(mContext.getString(R.string.usb_switching_failed)); } @Ignore("b/313362757") @Test public void onClickDevice_timedOut_shouldShowFailureText() { mDetailsPowerRoleController.displayPreference(mScreen); Loading tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsTranscodeMtpControllerTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import androidx.preference.SwitchPreference; import com.android.settings.testutils.shadow.ShadowUtils; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -118,6 +119,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(mPreference.isEnabled()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_fileTransfer_withAbsentProp_shouldCheck() { mUnderTest.displayPreference(mScreen); Loading @@ -129,6 +131,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(getSwitchPreference().isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_fileTransfer_withUnsetProp_shouldUncheck() { mUnderTest.displayPreference(mScreen); Loading @@ -141,6 +144,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(getSwitchPreference().isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_fileTransfer_withSetProp_shouldCheck() { mUnderTest.displayPreference(mScreen); Loading @@ -153,6 +157,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(getSwitchPreference().isChecked()).isTrue(); } @Ignore("b/313362757") @Test public void click_checked_shouldSetSystemProperty() { mUnderTest.displayPreference(mScreen); Loading @@ -160,6 +165,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(SystemProperties.getBoolean(TRANSCODE_MTP_SYS_PROP_KEY, false)).isTrue(); } @Ignore("b/313362757") @Test public void click_unChecked_shouldUnsetSystemProperty() { mUnderTest.displayPreference(mScreen); Loading Loading
tests/robotests/src/com/android/settings/connecteddevice/ConnectedDeviceDashboardFragmentTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import com.android.settings.testutils.shadow.ShadowConnectivityManager; import com.android.settings.testutils.shadow.ShadowUserManager; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -91,6 +92,7 @@ public class ConnectedDeviceDashboardFragmentTest { assertThat(indexRes.get(0).xmlResId).isEqualTo(R.xml.connected_devices); } @Ignore("b/313362757") @Test public void nonIndexableKeys_existInXmlLayout() { final List<String> niks = ConnectedDeviceDashboardFragment.SEARCH_INDEX_DATA_PROVIDER Loading
tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsFunctionsControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.widget.SelectorWithWidgetPreference; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -222,6 +223,7 @@ public class UsbDetailsFunctionsControllerTest { assertThat(prefs.get(3).isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void onClickNone_mtpEnabled_shouldDisableMtp() { when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); Loading
tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsPowerRoleControllerTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import com.android.settings.R; import com.android.settingslib.core.lifecycle.Lifecycle; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; Loading Loading @@ -100,6 +101,7 @@ public class UsbDetailsPowerRoleControllerTest { mDetailsPowerRoleController.mHandler = mHandler; } @Ignore("b/313362757") @Test public void displayRefresh_sink_shouldUncheck() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -112,6 +114,7 @@ public class UsbDetailsPowerRoleControllerTest { assertThat(pref.isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_source_shouldCheck() { mDetailsPowerRoleController.displayPreference(mScreen); Loading Loading @@ -149,6 +152,7 @@ public class UsbDetailsPowerRoleControllerTest { mDetailsPowerRoleController.getPreferenceKey())).isNull(); } @Ignore("b/313362757") @Test public void onClick_sink_shouldSetSource() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -162,6 +166,7 @@ public class UsbDetailsPowerRoleControllerTest { .isEqualTo(mContext.getString(R.string.usb_switching)); } @Ignore("b/313362757") @Test public void onClickTwice_sink_shouldSetSourceOnce() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -176,6 +181,7 @@ public class UsbDetailsPowerRoleControllerTest { verify(mUsbBackend, times(1)).setPowerRole(POWER_ROLE_SOURCE); } @Ignore("b/313362757") @Test public void onClickDeviceAndRefresh_success_shouldClearSubtext() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -194,6 +200,7 @@ public class UsbDetailsPowerRoleControllerTest { assertThat(pref.getSummary()).isEqualTo(""); } @Ignore("b/313362757") @Test public void onClickDeviceAndRefresh_failed_shouldShowFailureText() { mDetailsPowerRoleController.displayPreference(mScreen); Loading @@ -213,6 +220,7 @@ public class UsbDetailsPowerRoleControllerTest { .isEqualTo(mContext.getString(R.string.usb_switching_failed)); } @Ignore("b/313362757") @Test public void onClickDevice_timedOut_shouldShowFailureText() { mDetailsPowerRoleController.displayPreference(mScreen); Loading
tests/robotests/src/com/android/settings/connecteddevice/usb/UsbDetailsTranscodeMtpControllerTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import androidx.preference.SwitchPreference; import com.android.settings.testutils.shadow.ShadowUtils; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -118,6 +119,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(mPreference.isEnabled()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_fileTransfer_withAbsentProp_shouldCheck() { mUnderTest.displayPreference(mScreen); Loading @@ -129,6 +131,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(getSwitchPreference().isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_fileTransfer_withUnsetProp_shouldUncheck() { mUnderTest.displayPreference(mScreen); Loading @@ -141,6 +144,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(getSwitchPreference().isChecked()).isFalse(); } @Ignore("b/313362757") @Test public void displayRefresh_fileTransfer_withSetProp_shouldCheck() { mUnderTest.displayPreference(mScreen); Loading @@ -153,6 +157,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(getSwitchPreference().isChecked()).isTrue(); } @Ignore("b/313362757") @Test public void click_checked_shouldSetSystemProperty() { mUnderTest.displayPreference(mScreen); Loading @@ -160,6 +165,7 @@ public class UsbDetailsTranscodeMtpControllerTest { assertThat(SystemProperties.getBoolean(TRANSCODE_MTP_SYS_PROP_KEY, false)).isTrue(); } @Ignore("b/313362757") @Test public void click_unChecked_shouldUnsetSystemProperty() { mUnderTest.displayPreference(mScreen); Loading