Revert "DO NOT MERGE - Set minimum density when running testTapLink_changeOrientationThenTapBack"
This reverts commit bd5f45cec7086fb3e4e0a246e7a4bfaa64ca90ca.
Change-Id: Ic382b9837a9642f3aaf9b1ed6f5812b7f02f6498
diff --git a/tests/autofillservice/src/android/autofillservice/cts/CustomDescriptionWithLinkTestCase.java b/tests/autofillservice/src/android/autofillservice/cts/CustomDescriptionWithLinkTestCase.java
index d02e396..33f0943 100644
--- a/tests/autofillservice/src/android/autofillservice/cts/CustomDescriptionWithLinkTestCase.java
+++ b/tests/autofillservice/src/android/autofillservice/cts/CustomDescriptionWithLinkTestCase.java
@@ -15,8 +15,6 @@
*/
package android.autofillservice.cts;
-import static android.autofillservice.cts.Helper.runShellCommand;
-
import static com.google.common.truth.Truth.assertThat;
import android.app.Activity;
@@ -65,11 +63,9 @@
public final void testTapLink_changeOrientationThenTapBack() throws Exception {
sUiBot.setScreenOrientation(UiBot.PORTRAIT);
try {
- runShellCommand("wm density 420");
saveUiRestoredAfterTappingLinkTest(
PostSaveLinkTappedAction.ROTATE_THEN_TAP_BACK_BUTTON);
} finally {
- runShellCommand("wm density reset");
sUiBot.setScreenOrientation(UiBot.PORTRAIT);
}
}
@@ -87,9 +83,6 @@
protected abstract void saveUiRestoredAfterTappingLinkTest(PostSaveLinkTappedAction type)
throws Exception;
- protected void cleanUpAfterScreenOrientationIsBackToPortrait() throws Exception {
- }
-
/**
* Tests scenarios when user taps a link in the custom description, taps back to return to the
* activity with the Save UI, and touch outside the Save UI to dismiss it.
diff --git a/tests/autofillservice/src/android/autofillservice/cts/SimpleSaveActivityTest.java b/tests/autofillservice/src/android/autofillservice/cts/SimpleSaveActivityTest.java
index a1d74de..9fb16a2 100644
--- a/tests/autofillservice/src/android/autofillservice/cts/SimpleSaveActivityTest.java
+++ b/tests/autofillservice/src/android/autofillservice/cts/SimpleSaveActivityTest.java
@@ -516,11 +516,6 @@
}
@Override
- protected void cleanUpAfterScreenOrientationIsBackToPortrait() throws Exception {
- sReplier.getNextFillRequest();
- }
-
- @Override
protected void tapLinkThenTapBackThenStartOverTest(PostSaveLinkTappedAction action,
boolean manualRequest) throws Exception {
startActivity();