Remove testWarpedDng

Bug: 78878033
Bug: 79474588
Bug: 78120086
Test: This is just removing a test

The prior fix to only run this test on devices with 2 gigs of memory was
not enough to fix it. This image requires an extraordinary amount of
memory, which we cannot rely on being available.

The test was originally introduced as part of b/78120086, but that
already has a CTS test, so this one is superfluous.

Change-Id: Ide58f96e2b0047c0a787ed0bab65b8458c6f1a98
diff --git a/tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java b/tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java
index 371d6b6..cf91079 100644
--- a/tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java
+++ b/tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java
@@ -24,7 +24,6 @@
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
-import android.app.ActivityManager;
 import android.content.ContentResolver;
 import android.content.Context;
 import android.content.res.AssetManager;
@@ -2214,27 +2213,4 @@
         ImageDecoder.Source src = mCreators[0].apply(R.drawable.animated);
         testReuse(src, "animated.gif");
     }
-
-    @Test
-    public void testWarpedDng() {
-        Context context = InstrumentationRegistry.getTargetContext();
-        ActivityManager activityManager = (ActivityManager) context
-                .getSystemService(Context.ACTIVITY_SERVICE);
-        ActivityManager.MemoryInfo info = new ActivityManager.MemoryInfo();
-        activityManager.getMemoryInfo(info);
-
-        // Decoding this image requires a lot of memory. Only attempt if the
-        // device has a total memory of at least 2 Gigs.
-        if (info.totalMem < 2 * 1024 * 1024 * 1024) {
-            return;
-        }
-
-        String name = "b78120086.dng";
-        ImageDecoder.Source src = ImageDecoder.createSource(mRes.getAssets(), name);
-        try {
-            ImageDecoder.decodeDrawable(src);
-        } catch (IOException e) {
-            fail("Failed to decode " + name + " with exception " + e);
-        }
-    }
 }