diff --git a/core/java/com/android/internal/app/TEST_MAPPING b/core/java/com/android/internal/app/TEST_MAPPING index 8bd791297e9d2..08e1d57515291 100644 --- a/core/java/com/android/internal/app/TEST_MAPPING +++ b/core/java/com/android/internal/app/TEST_MAPPING @@ -3,17 +3,14 @@ { "name": "CtsSuspendAppsTestCases", "file_patterns": ["(/|^)SuspendedAppActivity\\.java"] - } - ], - "postsubmit": [ + }, { "name": "FrameworksCoreTests", "options": [ { "include-filter": "com.android.internal.app." }, - - // Many tests failing - do not enable for continuous execution + // Exclude currently failing tests from presubmit { "exclude-filter": "com.android.internal.app.IntentForwarderActivityTest" }, diff --git a/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java b/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java index a064af95f48d9..b5ab2825ae41d 100644 --- a/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java +++ b/core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java @@ -269,7 +269,7 @@ public class ChooserActivityTest { onView(withId(R.id.content_preview_thumbnail)).check(matches(isDisplayed())); } - @Test + @Test @Ignore public void twoOptionsAndUserSelectsOne() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -298,7 +298,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } - @Test + @Test @Ignore public void fourOptionsStackedIntoOneTarget() throws InterruptedException { Intent sendIntent = createSendTextIntent(); @@ -351,7 +351,7 @@ public class ChooserActivityTest { } } - @Test + @Test @Ignore public void updateChooserCountsAndModelAfterUserSelection() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -424,7 +424,7 @@ public class ChooserActivityTest { assertThat(activity.isFinishing(), is(true)); } - @Test + @Test @Ignore public void hasOtherProfileOneOption() throws Exception { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -461,7 +461,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } - @Test + @Test @Ignore public void hasOtherProfileTwoOptionsAndUserSelectsOne() throws Exception { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -500,7 +500,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } - @Test + @Test @Ignore public void hasLastChosenActivityAndOtherProfile() throws Exception { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -564,7 +564,7 @@ public class ChooserActivityTest { assertEquals(mActivityRule.getActivityResult().getResultCode(), RESULT_OK); } - @Test + @Test @Ignore public void copyTextToClipboardLogging() throws Exception { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -595,7 +595,7 @@ public class ChooserActivityTest { } - @Test + @Test @Ignore public void testNearbyShareLogging() throws Exception { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -643,7 +643,7 @@ public class ChooserActivityTest { - @Test + @Test @Ignore public void testEditImageLogs() throws Exception { Intent sendIntent = createSendImageIntent( Uri.parse("android.resource://com.android.frameworks.coretests/" @@ -1129,7 +1129,7 @@ public class ChooserActivityTest { } // This test is too long and too slow and should not be taken as an example for future tests. - @Test + @Test @Ignore public void testDirectTargetSelectionLogging() throws InterruptedException { Intent sendIntent = createSendTextIntent(); // We need app targets for direct targets to get displayed @@ -1199,7 +1199,7 @@ public class ChooserActivityTest { } // This test is too long and too slow and should not be taken as an example for future tests. - @Test + @Test @Ignore public void testDirectTargetLoggingWithRankedAppTarget() throws InterruptedException { Intent sendIntent = createSendTextIntent(); // We need app targets for direct targets to get displayed @@ -1264,7 +1264,7 @@ public class ChooserActivityTest { .getAllValues().get(2).getTaggedData(MetricsEvent.FIELD_RANKED_POSITION), is(0)); } - @Test + @Test @Ignore public void testShortcutTargetWithApplyAppLimits() throws InterruptedException { // Set up resources sOverrides.resources = Mockito.spy( @@ -1320,7 +1320,7 @@ public class ChooserActivityTest { activity.getAdapter().getItem(0).getDisplayLabel(), is("testTitle0")); } - @Test + @Test @Ignore public void testShortcutTargetWithoutApplyAppLimits() throws InterruptedException { DeviceConfig.setProperty(DeviceConfig.NAMESPACE_SYSTEMUI, SystemUiDeviceConfigFlags.APPLY_SHARING_APP_LIMITS_IN_SYSUI, @@ -1383,13 +1383,13 @@ public class ChooserActivityTest { } // This test is too long and too slow and should not be taken as an example for future tests. - @Test + @Test @Ignore public void testDirectTargetLoggingWithAppTargetNotRankedPortrait() throws InterruptedException { testDirectTargetLoggingWithAppTargetNotRanked(Configuration.ORIENTATION_PORTRAIT, 4); } - @Test + @Test @Ignore public void testDirectTargetLoggingWithAppTargetNotRankedLandscape() throws InterruptedException { testDirectTargetLoggingWithAppTargetNotRanked(Configuration.ORIENTATION_LANDSCAPE, 8); @@ -1549,7 +1549,7 @@ public class ChooserActivityTest { assertThat(activity.getWorkListAdapter().getCount(), is(workProfileTargets)); } - @Test + @Test @Ignore public void testWorkTab_selectingWorkTabAppOpensAppInWorkProfile() throws InterruptedException { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true; @@ -1714,7 +1714,7 @@ public class ChooserActivityTest { .check(matches(isDisplayed())); } - @Test + @Test @Ignore public void testAppTargetLogging() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -1770,7 +1770,7 @@ public class ChooserActivityTest { .SharesheetTargetSelectedEvent.SHARESHEET_APP_TARGET_SELECTED.getId())); } - @Test + @Test @Ignore public void testDirectTargetLogging() throws InterruptedException { Intent sendIntent = createSendTextIntent(); // We need app targets for direct targets to get displayed @@ -1850,7 +1850,7 @@ public class ChooserActivityTest { .SharesheetTargetSelectedEvent.SHARESHEET_SERVICE_TARGET_SELECTED.getId())); } - @Test + @Test @Ignore public void testEmptyDirectRowLogging() throws InterruptedException { Intent sendIntent = createSendTextIntent(); // We need app targets for direct targets to get displayed @@ -1901,7 +1901,7 @@ public class ChooserActivityTest { .SharesheetStandardEvent.SHARESHEET_EMPTY_DIRECT_SHARE_ROW.getId())); } - @Test + @Test @Ignore public void testCopyTextToClipboardLogging() throws Exception { Intent sendIntent = createSendTextIntent(); List resolvedComponentInfos = createResolvedComponentsForTest(2); @@ -1947,7 +1947,7 @@ public class ChooserActivityTest { .SharesheetTargetSelectedEvent.SHARESHEET_COPY_TARGET_SELECTED.getId())); } - @Test + @Test @Ignore public void testSwitchProfileLogging() throws InterruptedException { // enable the work tab feature flag ResolverActivity.ENABLE_TABBED_VIEW = true;