Loading tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +17 −12 Original line number Diff line number Diff line Loading @@ -332,6 +332,7 @@ public final class LauncherInstrumentation { private String getSystemAnomalyMessage() { try { { final StringBuilder sb = new StringBuilder(); UiObject2 object = mDevice.findObject(By.res("android", "alertTitle")); Loading @@ -348,10 +349,14 @@ public final class LauncherInstrumentation { if (sb.length() != 0) { return "System alert popup is visible: " + sb; } } if (hasSystemUiObject("keyguard_status_view")) return "Phone is locked"; if (!mDevice.hasObject(By.textStartsWith(""))) return "Screen is empty"; final String navigationModeError = getNavigationModeMismatchError(); if (navigationModeError != null) return navigationModeError; } catch (Throwable e) { Log.w(TAG, "getSystemAnomalyMessage failed", e); } Loading Loading
tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +17 −12 Original line number Diff line number Diff line Loading @@ -332,6 +332,7 @@ public final class LauncherInstrumentation { private String getSystemAnomalyMessage() { try { { final StringBuilder sb = new StringBuilder(); UiObject2 object = mDevice.findObject(By.res("android", "alertTitle")); Loading @@ -348,10 +349,14 @@ public final class LauncherInstrumentation { if (sb.length() != 0) { return "System alert popup is visible: " + sb; } } if (hasSystemUiObject("keyguard_status_view")) return "Phone is locked"; if (!mDevice.hasObject(By.textStartsWith(""))) return "Screen is empty"; final String navigationModeError = getNavigationModeMismatchError(); if (navigationModeError != null) return navigationModeError; } catch (Throwable e) { Log.w(TAG, "getSystemAnomalyMessage failed", e); } Loading