diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-08-12 19:40:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-08-12 19:40:32 +0000 |
commit | 3b37b9002d4da88f1ed931c9758a0b15dce15ea8 (patch) | |
tree | 59584472490519744780385270dfc6da29a4ad3a | |
parent | 595c55917feb6a33c8a8a2ca9977f758dff908a6 (diff) | |
parent | 9375195e66fb2118b7b8b71b4aabac016911b983 (diff) | |
download | cts-3b37b9002d4da88f1ed931c9758a0b15dce15ea8.tar.gz |
Merge "Merge "Merge "Revert "Workaround the stale notification window issue"" into android12-tests-dev am: a5837f3233" into android12L-tests-dev am: 84de9e9063"
-rw-r--r-- | tests/tests/textclassifier/src/android/view/textclassifier/cts/TextViewIntegrationTest.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/tests/textclassifier/src/android/view/textclassifier/cts/TextViewIntegrationTest.java b/tests/tests/textclassifier/src/android/view/textclassifier/cts/TextViewIntegrationTest.java index 4e71d2a14cd..14f022efe01 100644 --- a/tests/tests/textclassifier/src/android/view/textclassifier/cts/TextViewIntegrationTest.java +++ b/tests/tests/textclassifier/src/android/view/textclassifier/cts/TextViewIntegrationTest.java @@ -91,28 +91,16 @@ public class TextViewIntegrationTest { private static float sOriginalTransitionAnimationDurationScale; @Before - public void setup() throws Exception { + public void setup() throws RemoteException { Assume.assumeTrue( ApplicationProvider.getApplicationContext().getPackageManager() .hasSystemFeature(FEATURE_TOUCHSCREEN)); - workAroundNotificationShadeWindowIssue(); mSimpleTextClassifier = new SimpleTextClassifier(); UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()).wakeUp(); dismissKeyguard(); closeSystemDialog(); } - // Somehow there is a stale "NotificationShade" window from SysUI stealing the inputs. - // The window is in the "exiting" state and seems never finish exiting. - // The workaround here is to (hopefully) reset its state by expanding the notification panel - // and collapsing it again. - private void workAroundNotificationShadeWindowIssue() throws InterruptedException { - ShellUtils.runShellCommand("cmd statusbar expand-notifications"); - Thread.sleep(1000); - ShellUtils.runShellCommand("cmd statusbar collapse"); - Thread.sleep(1000); - } - private void dismissKeyguard() { ShellUtils.runShellCommand("wm dismiss-keyguard"); } |