Delete Gallery testDispatchSetSelected

Bug 2558585

Delete testDispatchSetSelected since it is testing a no-op method.

Change-Id: I1fa72f5b027c36ba292f6397a6d29851ba269ad2
diff --git a/tests/tests/widget/src/android/widget/cts/GalleryTest.java b/tests/tests/widget/src/android/widget/cts/GalleryTest.java
index 9923ec8..e95deb7 100644
--- a/tests/tests/widget/src/android/widget/cts/GalleryTest.java
+++ b/tests/tests/widget/src/android/widget/cts/GalleryTest.java
@@ -349,37 +349,6 @@
 
     @TestTargetNew(
         level = TestLevel.NOT_FEASIBLE,
-        method = "dispatchSetSelected",
-        args = {boolean.class}
-    )
-    @ToBeFixed(bug = "1695243", explanation = "Android API javadocs are not right, "
-            + "dispatchSetSelected() does not dispatch setSelected to all child views.")
-    public void testDispatchSetSelected() {
-        int count = mGallery.getChildCount();
-
-        mGallery.dispatchSetSelected(false);
-        for (int i = 0; i < count; i++) {
-            // the child view should not be selected, but a item still is selected.
-            if (i == mGallery.getSelectedItemPosition()) {
-                assertTrue(mGallery.getChildAt(i).isSelected());
-            } else {
-                assertFalse(mGallery.getChildAt(i).isSelected());
-            }
-        }
-
-        mGallery.dispatchSetSelected(true);
-        for (int i = 0; i < count; i++) {
-            // the child view should be selected, but some items still are selected.
-            if (i == mGallery.getSelectedItemPosition()) {
-                assertTrue(mGallery.getChildAt(i).isSelected());
-            } else {
-                assertFalse(mGallery.getChildAt(i).isSelected());
-            }
-        }
-    }
-
-    @TestTargetNew(
-        level = TestLevel.NOT_FEASIBLE,
         method = "showContextMenuForChild",
         args = {android.view.View.class}
     )