Loading core/java/com/android/internal/app/TEST_MAPPING +2 −5 Original line number Diff line number Diff line Loading @@ -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" }, Loading core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java +21 −21 Original line number Diff line number Diff line Loading @@ -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<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -298,7 +298,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } @Test @Test @Ignore public void fourOptionsStackedIntoOneTarget() throws InterruptedException { Intent sendIntent = createSendTextIntent(); Loading Loading @@ -351,7 +351,7 @@ public class ChooserActivityTest { } } @Test @Test @Ignore public void updateChooserCountsAndModelAfterUserSelection() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -595,7 +595,7 @@ public class ChooserActivityTest { } @Test @Test @Ignore public void testNearbyShareLogging() throws Exception { Intent sendIntent = createSendTextIntent(); List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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/" Loading Loading @@ -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 Loading Loading @@ -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 Loading Loading @@ -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( Loading Loading @@ -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, Loading Loading @@ -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); Loading Loading @@ -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; Loading Loading @@ -1714,7 +1714,7 @@ public class ChooserActivityTest { .check(matches(isDisplayed())); } @Test @Test @Ignore public void testAppTargetLogging() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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 Loading Loading @@ -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 Loading Loading @@ -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<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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; Loading Loading
core/java/com/android/internal/app/TEST_MAPPING +2 −5 Original line number Diff line number Diff line Loading @@ -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" }, Loading
core/tests/coretests/src/com/android/internal/app/ChooserActivityTest.java +21 −21 Original line number Diff line number Diff line Loading @@ -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<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -298,7 +298,7 @@ public class ChooserActivityTest { assertThat(chosen[0], is(toChoose)); } @Test @Test @Ignore public void fourOptionsStackedIntoOneTarget() throws InterruptedException { Intent sendIntent = createSendTextIntent(); Loading Loading @@ -351,7 +351,7 @@ public class ChooserActivityTest { } } @Test @Test @Ignore public void updateChooserCountsAndModelAfterUserSelection() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -595,7 +595,7 @@ public class ChooserActivityTest { } @Test @Test @Ignore public void testNearbyShareLogging() throws Exception { Intent sendIntent = createSendTextIntent(); List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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/" Loading Loading @@ -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 Loading Loading @@ -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 Loading Loading @@ -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( Loading Loading @@ -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, Loading Loading @@ -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); Loading Loading @@ -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; Loading Loading @@ -1714,7 +1714,7 @@ public class ChooserActivityTest { .check(matches(isDisplayed())); } @Test @Test @Ignore public void testAppTargetLogging() throws InterruptedException { Intent sendIntent = createSendTextIntent(); List<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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 Loading Loading @@ -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 Loading Loading @@ -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<ResolvedComponentInfo> resolvedComponentInfos = createResolvedComponentsForTest(2); Loading Loading @@ -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; Loading