Merge "Adding message popups to anomaly diagnoser" into ub-launcher3-qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d3bff6043a
@@ -266,11 +266,17 @@ public final class LauncherInstrumentation {
|
||||
}
|
||||
|
||||
private String getAnomalyMessage() {
|
||||
final UiObject2 object = mDevice.findObject(By.res("android", "alertTitle"));
|
||||
UiObject2 object = mDevice.findObject(By.res("android", "alertTitle"));
|
||||
if (object != null) {
|
||||
return "System alert popup is visible: " + object.getText();
|
||||
}
|
||||
|
||||
object = mDevice.findObject(By.res("android", "message"));
|
||||
if (object != null) {
|
||||
return "Message popup by " + object.getApplicationPackage() + " is visible: "
|
||||
+ object.getText();
|
||||
}
|
||||
|
||||
if (hasSystemUiObject("keyguard_status_view")) return "Phone is locked";
|
||||
|
||||
if (!mDevice.hasObject(By.textStartsWith(""))) return "Screen is empty";
|
||||
|
||||
Reference in New Issue
Block a user