commit | 5e90380336523b4ba90dc53ec2ae98600a8b7edf | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Thu Jun 17 21:43:33 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 17 21:43:33 2021 +0000 |
tree | 32094f804abf8837354669c127229d4643b67e81 | |
parent | c1134f6a6cc4788621a4cbce0f6781ff263406c9 [diff] | |
parent | 9947fd85b4c46d29870aa47fba7c474838daa561 [diff] |
Merge "Improving diagnostics when Launcher dies while in ContentProvider call" into sc-dev am: 26cd946f29 am: 9947fd85b4 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14991671 Change-Id: I667fc64aaff7b2fb49695f565e0407e99cdc5361
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); }