Remove ActivityTransitionTests#testTaskTransitionOverride

This test tests the behavior of a test API which isn't a public API, so
it shouldn't be done in CTS.

Bug: 235496520
Bug: 228938091
Test: Presubmit is enough.
Change-Id: Ib237dc80864cb8456578ee60895387f11eee9f61
diff --git a/tests/framework/base/windowmanager/src/android/server/wm/ActivityTransitionTests.java b/tests/framework/base/windowmanager/src/android/server/wm/ActivityTransitionTests.java
index d46db6a..83b4301 100644
--- a/tests/framework/base/windowmanager/src/android/server/wm/ActivityTransitionTests.java
+++ b/tests/framework/base/windowmanager/src/android/server/wm/ActivityTransitionTests.java
@@ -64,8 +64,6 @@
 import androidx.annotation.Nullable;
 import androidx.test.platform.app.InstrumentationRegistry;
 
-import com.android.compatibility.common.util.SystemUtil;
-
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -215,39 +213,6 @@
                 + "actual=" + totalTime, !CUSTOM_ANIMATION_DURATION_RANGE.contains(totalTime));
     }
 
-    @Test
-    public void testTaskTransitionOverride() {
-        final CountDownLatch latch = new CountDownLatch(1);
-        AtomicLong transitionStartTime = new AtomicLong();
-        AtomicLong transitionEndTime = new AtomicLong();
-
-        final ActivityOptions.OnAnimationStartedListener startedListener = transitionStartTime::set;
-        final ActivityOptions.OnAnimationFinishedListener finishedListener = (t) -> {
-            transitionEndTime.set(t);
-            latch.countDown();
-        };
-
-        SystemUtil.runWithShellPermissionIdentity(() -> {
-            // Overriding task transit animation is enabled, so custom animation is played.
-            final Bundle bundle = ActivityOptions.makeCustomTaskAnimation(mContext,
-                    R.anim.alpha, 0, new Handler(Looper.getMainLooper()), startedListener,
-                    finishedListener).toBundle();
-            final Intent intent = new Intent().setComponent(TEST_ACTIVITY)
-                    .addFlags(FLAG_ACTIVITY_NEW_TASK);
-            mContext.startActivity(intent, bundle);
-            mWmState.waitForAppTransitionIdleOnDisplay(DEFAULT_DISPLAY);
-            waitAndAssertTopResumedActivity(TEST_ACTIVITY, DEFAULT_DISPLAY,
-                    "Activity must be launched");
-
-            latch.await(5, TimeUnit.SECONDS);
-            final long totalTime = transitionEndTime.get() - transitionStartTime.get();
-            assertTrue("Actual transition duration should be in the range "
-                    + "<" + CUSTOM_ANIMATION_DURATION_RANGE.getLower() + ", "
-                    + CUSTOM_ANIMATION_DURATION_RANGE.getUpper() + "> ms, "
-                    + "actual=" + totalTime, CUSTOM_ANIMATION_DURATION_RANGE.contains(totalTime));
-        });
-    }
-
     /**
      * Checks that the activity's theme's background color is used as the default animation's
      * background color when no override is specified.