Delete a bad CTS test.

This test calls WakeLock.release() without previously
having acquired the WakeLock (because it does not have
permissions to do so).  The release() turns into a no-op
on the client side because the WakeLock is not held.
Consequently the system will not check permissions
(it doesn't have to) so no SecurityException is thrown.

That said, the system does check permissions on release()
but we can't test that through the API.

Bug: 6950370
Change-Id: I4a94b33b223e8010c285b756ae7d6bbbb4f308a1
diff --git a/tests/tests/permission/src/android/permission/cts/NoWakeLockPermissionTest.java b/tests/tests/permission/src/android/permission/cts/NoWakeLockPermissionTest.java
index 6a8f5d0..ec11a0c 100644
--- a/tests/tests/permission/src/android/permission/cts/NoWakeLockPermissionTest.java
+++ b/tests/tests/permission/src/android/permission/cts/NoWakeLockPermissionTest.java
@@ -86,7 +86,7 @@
     public void testPowerManagerWakeLockAcquire() {
         try {
             mWakeLock.acquire();
-            fail("MediaPlayer.setWakeMode() did not throw SecurityException as expected");
+            fail("WakeLock.acquire() did not throw SecurityException as expected");
         } catch (SecurityException e) {
             // expected
         }
@@ -102,23 +102,7 @@
         // Tset acquire(long)
         try {
             mWakeLock.acquire(1);
-            fail("MediaPlayer.setWakeMode(long) did not throw SecurityException as expected");
-        } catch (SecurityException e) {
-            // expected
-        }
-    }
-
-    /**
-     * Verify that PowerManager.WakeLock.release() requires permissions.
-     * <p>Requires Permission:
-     *   {@link android.Manifest.permission#WAKE_LOCK}.
-     */
-    @SmallTest
-    public void testPowerManagerWakeLockRelease() {
-        mWakeLock.setReferenceCounted(false);
-        try {
-            mWakeLock.release();
-            fail("MediaPlayer.setWakeMode(long) did not throw SecurityException as expected");
+            fail("WakeLock.acquire(long) did not throw SecurityException as expected");
         } catch (SecurityException e) {
             // expected
         }