Remove one test from MediaCodecTest#testCreateInputSurfaceErrors.

We require apps to set this to AndroidOpaque, but we don't require it to
fail if app does not do it. What we require is that the read-back
colorformat must be AndroidOpaque.

BUG=28920689

Change-Id: I55b809fa82fefe8f47192006ca9fc149ad951dd9
(cherry picked from commit 74ae56df7f8b47101a29468f51a1ed27f86c106c)
diff --git a/tests/tests/media/src/android/media/cts/MediaCodecTest.java b/tests/tests/media/src/android/media/cts/MediaCodecTest.java
index d3ab54f..271c92b 100644
--- a/tests/tests/media/src/android/media/cts/MediaCodecTest.java
+++ b/tests/tests/media/src/android/media/cts/MediaCodecTest.java
@@ -293,7 +293,7 @@
      * Tests:
      * <br> calling createInputSurface() before configure() throws exception
      * <br> calling createInputSurface() after start() throws exception
-     * <br> calling createInputSurface() with a non-Surface color format throws exception
+     * <br> calling createInputSurface() with a non-Surface color format is not required to throw exception
      */
     public void testCreateInputSurfaceErrors() {
         if (!supportsCodec(MIME_TYPE, true)) {
@@ -323,16 +323,7 @@
                 // good
             }
             encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
-
-            try {
-                surface = encoder.createInputSurface();
-                fail("createInputSurface should require COLOR_FormatSurface");
-            } catch (IllegalStateException ise) {
-                // good
-            }
-
             encoder.start();
-
             try {
                 surface = encoder.createInputSurface();
                 fail("createInputSurface should not work post-start");