From 5f88b7bee5f068505f0ada07bc96dde30badd1d9 Mon Sep 17 00:00:00 2001 From: Eugene Susla Date: Wed, 12 Feb 2020 15:01:48 -0800 Subject: [PATCH] Make companion callback calls oneway These were never meant to be 2way, and are calling application callbacks, from system server which can potentially take long time. Thses should not be sensitive to ordering with any other IPCs, so moving them from 2way to 1way should be safe. Fixes: 147705675 Test: presubmit Change-Id: Ie4e8941fba2c8a388697c3a42ad6ef76512eba9f --- core/java/android/companion/IFindDeviceCallback.aidl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/companion/IFindDeviceCallback.aidl b/core/java/android/companion/IFindDeviceCallback.aidl index 4e9fa19e5ce5d..405277b50f5bb 100644 --- a/core/java/android/companion/IFindDeviceCallback.aidl +++ b/core/java/android/companion/IFindDeviceCallback.aidl @@ -21,6 +21,6 @@ import android.app.PendingIntent; /** @hide */ interface IFindDeviceCallback { @UnsupportedAppUsage - void onSuccess(in PendingIntent launcher); - void onFailure(in CharSequence reason); + oneway void onSuccess(in PendingIntent launcher); + oneway void onFailure(in CharSequence reason); }