aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInsaf Latypov <saferif@google.com>2017-04-21 12:00:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-04-21 12:00:06 +0000
commit27ecdf315e5b895a69ba0487fbc803eb91865aa5 (patch)
tree617c601f77344fb9aad00f80a7b25c68eb8ba254
parent1e3540b3019545dc8e38f25eb4806256b3af8faf (diff)
parent282a19d8ae52b2098d8cb473df78f22e5ac57cc9 (diff)
downloadAfwTestHarness-27ecdf315e5b895a69ba0487fbc803eb91865aa5.tar.gz
Merge "Revert "Fix issue with closing add account page. am: ead36201ce"" into oc-dev
-rw-r--r--libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/utils/WidgetUtils.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/utils/WidgetUtils.java b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/utils/WidgetUtils.java
index 073bed9..4a3d692 100644
--- a/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/utils/WidgetUtils.java
+++ b/libs/UiAutomatorLib/src/com/android/afwtest/uiautomator/utils/WidgetUtils.java
@@ -654,23 +654,4 @@ public class WidgetUtils {
return result;
}
-
- /**
- * Waits until keyboard is visible.
- *
- * @param uiDevice current {@link UiDevice}.
- * @param maxAttempts maximum attempts to find keyboard before reporting failure.
- * @return {@code true} if keyboard was found and is visible, {@code false} otherwise.
- * @throws IOException if could not run shell command to get dumpsys info.
- */
- public static boolean waitForKeyboard(UiDevice uiDevice, int maxAttempts) throws IOException {
- while ((maxAttempts--) > 0) {
- SystemClock.sleep(KEYBOARD_START_TIME_MS);
- final String output = uiDevice.executeShellCommand(FIND_KEYBOARD_COMMAND);
- if (output.contains(KEYBOARD_IS_SHOWN_STRING)) {
- return true;
- }
- }
- return false;
- }
}