Revert "Add test checking view recycling is always tested"
Revert submission 16149646-betterRecycling
Reason for revert: Droidfood Blocking Bug: 205503898
Reverted Changes:
Ib01c511e4:Always check if the view can be recycled.
If11dcd323:Add test checking view recycling is always tested
Change-Id: I733a222dd06afa6853193348764151c27f70b067
(cherry picked from commit 97f1e988c0958ac3fa878d980da3a1d62fdb2772)
diff --git a/tests/tests/widget/src/android/widget/cts/RemoteViewsRecyclingTest.java b/tests/tests/widget/src/android/widget/cts/RemoteViewsRecyclingTest.java
index e2294ed..ec4c0c7 100644
--- a/tests/tests/widget/src/android/widget/cts/RemoteViewsRecyclingTest.java
+++ b/tests/tests/widget/src/android/widget/cts/RemoteViewsRecyclingTest.java
@@ -369,31 +369,6 @@
recycleWhenViewIdDoesntMatchFailsInMultipleLayout(true /* async */);
}
- private void recycleWhenViewIdDoesntMatchFailsInSimpleLayout(boolean async) throws Throwable {
- RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle, 2);
- applyRemoteViews(rv);
-
- RemoteViews rv2 = createRemoteViews(R.layout.remoteviews_recycle, 3);
- try {
- reapplyRemoteViews(rv2, async);
- } catch (RuntimeException ex) {
- return; // success
- } catch (Throwable t) {
- fail("Excepted a RuntimeException, received " + t.toString());
- }
- fail("Excepted a RuntimeException, no exception received.");
- }
-
- @Test
- public void recycleWhenViewIdDoesntMatchFailsInSimpleLayoutSync() throws Throwable {
- recycleWhenViewIdDoesntMatchFailsInSimpleLayout(false /* async */);
- }
-
- @Test
- public void recycleWhenViewIdDoesntMatchFailsInSimpleLayoutAsync() throws Throwable {
- recycleWhenViewIdDoesntMatchFailsInSimpleLayout(true /* async */);
- }
-
private void recycleWhenRemovingFromEndAndInsertInMiddleAtManyLevels(boolean async)
throws Throwable {
RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle);