commit | 5e786cce6860c62bc59f7003cf7ddcad9de7ff6a | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Thu Jun 17 21:34:27 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 17 21:34:27 2021 +0000 |
tree | 54d76de68cfed6c4aeb2df0c1f7564483735ac06 | |
parent | 4f597a42ffda1d837f16fc10cd27f2b262cff929 [diff] | |
parent | 26cd946f29b2de90f40b20372f41619e8026e7f8 [diff] |
Merge "Improving diagnostics when Launcher dies while in ContentProvider call" into sc-dev am: 26cd946f29 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14991671 Change-Id: Idc247cda0081067529352bc389f8144de35eaf3e
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index f5c1efa..96e8222 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -39,6 +39,7 @@ import android.graphics.Rect; import android.net.Uri; import android.os.Bundle; +import android.os.DeadObjectException; import android.os.Parcelable; import android.os.RemoteException; import android.os.SystemClock; @@ -269,6 +270,9 @@ try (ContentProviderClient client = getContext().getContentResolver() .acquireContentProviderClient(mTestProviderUri)) { return client.call(request, null, null); + } catch (DeadObjectException e) { + fail("Launcher crashed"); + return null; } catch (RemoteException e) { throw new RuntimeException(e); }