From 2efc9e5466909e1db1a498cfbdfd0ce7b0cd164e Mon Sep 17 00:00:00 2001 From: Kathy Chen Date: Tue, 29 Mar 2022 13:09:03 -0700 Subject: [PATCH] Remove oneway from IAmbientContextManager. The AIDL interface is implemented by the system server. We need exceptions to propogate back to the calling app. Test: cts test Bug: 225108951 Change-Id: I0fcf58f3ecc204eb63644fa736b44f5a5b394be6 --- .../android/app/ambientcontext/IAmbientContextManager.aidl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/app/ambientcontext/IAmbientContextManager.aidl b/core/java/android/app/ambientcontext/IAmbientContextManager.aidl index 3b15bcb9846d1..0d9ecfdfe8f65 100644 --- a/core/java/android/app/ambientcontext/IAmbientContextManager.aidl +++ b/core/java/android/app/ambientcontext/IAmbientContextManager.aidl @@ -25,7 +25,7 @@ import android.os.RemoteCallback; * * @hide */ -oneway interface IAmbientContextManager { +interface IAmbientContextManager { void registerObserver(in AmbientContextEventRequest request, in PendingIntent resultPendingIntent, in RemoteCallback statusCallback); @@ -33,4 +33,4 @@ oneway interface IAmbientContextManager { void queryServiceStatus(in int[] eventTypes, in String callingPackage, in RemoteCallback statusCallback); void startConsentActivity(in int[] eventTypes, in String callingPackage); -} \ No newline at end of file +}