From e5ea6a27985b42b86602481247e374db261bb2cc Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Thu, 21 Sep 2023 16:34:03 +0000 Subject: [PATCH] Add getter for ExpectedRotationCheckEnabled Used by flicker to disable and then reset this value when performing certain actions that require ExpectedRotationCheckEnabled to be false but then we want to restore to the initial value. Bug: 300065764 Test: n/a Change-Id: I650e15b206984b5fd7a2313fb63308e4c551c30a --- .../com/android/launcher3/tapl/LauncherInstrumentation.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 872fe6fe5c..71ca77f066 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -721,6 +721,10 @@ public final class LauncherInstrumentation { mExpectedRotationCheckEnabled = expectedRotationCheckEnabled; } + public boolean getExpectedRotationCheckEnabled() { + return mExpectedRotationCheckEnabled; + } + public String getNavigationModeMismatchError(boolean waitForCorrectState) { final int waitTime = waitForCorrectState ? WAIT_TIME_MS : 0; final NavigationModel navigationModel = getNavigationModel();