contexthub: IEndpointCallback should be oneway
Bug: 384897139
Flag: android.chre.flags.offload_api
Test: Builds
Change-Id: I137b06bcc7da3f73ea79ad92db28aecab3e2f8b4
diff --git a/contexthub/aidl/aidl_api/android.hardware.contexthub/current/android/hardware/contexthub/IEndpointCallback.aidl b/contexthub/aidl/aidl_api/android.hardware.contexthub/current/android/hardware/contexthub/IEndpointCallback.aidl
index c0bb744..cb9dd42 100644
--- a/contexthub/aidl/aidl_api/android.hardware.contexthub/current/android/hardware/contexthub/IEndpointCallback.aidl
+++ b/contexthub/aidl/aidl_api/android.hardware.contexthub/current/android/hardware/contexthub/IEndpointCallback.aidl
@@ -34,11 +34,11 @@
package android.hardware.contexthub;
@VintfStability
interface IEndpointCallback {
- void onEndpointStarted(in android.hardware.contexthub.EndpointInfo[] endpointInfos);
- void onEndpointStopped(in android.hardware.contexthub.EndpointId[] endpointIds, android.hardware.contexthub.Reason reason);
- void onMessageReceived(int sessionId, in android.hardware.contexthub.Message msg);
- void onMessageDeliveryStatusReceived(int sessionId, in android.hardware.contexthub.MessageDeliveryStatus msgStatus);
- void onEndpointSessionOpenRequest(int sessionId, in android.hardware.contexthub.EndpointId destination, in android.hardware.contexthub.EndpointId initiator, in @nullable String serviceDescriptor);
- void onCloseEndpointSession(int sessionId, in android.hardware.contexthub.Reason reason);
- void onEndpointSessionOpenComplete(int sessionId);
+ oneway void onEndpointStarted(in android.hardware.contexthub.EndpointInfo[] endpointInfos);
+ oneway void onEndpointStopped(in android.hardware.contexthub.EndpointId[] endpointIds, android.hardware.contexthub.Reason reason);
+ oneway void onMessageReceived(int sessionId, in android.hardware.contexthub.Message msg);
+ oneway void onMessageDeliveryStatusReceived(int sessionId, in android.hardware.contexthub.MessageDeliveryStatus msgStatus);
+ oneway void onEndpointSessionOpenRequest(int sessionId, in android.hardware.contexthub.EndpointId destination, in android.hardware.contexthub.EndpointId initiator, in @nullable String serviceDescriptor);
+ oneway void onCloseEndpointSession(int sessionId, in android.hardware.contexthub.Reason reason);
+ oneway void onEndpointSessionOpenComplete(int sessionId);
}
diff --git a/contexthub/aidl/android/hardware/contexthub/IEndpointCallback.aidl b/contexthub/aidl/android/hardware/contexthub/IEndpointCallback.aidl
index 972853b..a732909 100644
--- a/contexthub/aidl/android/hardware/contexthub/IEndpointCallback.aidl
+++ b/contexthub/aidl/android/hardware/contexthub/IEndpointCallback.aidl
@@ -24,7 +24,7 @@
import android.hardware.contexthub.Service;
@VintfStability
-interface IEndpointCallback {
+oneway interface IEndpointCallback {
/**
* Lifecycle event notification for endpoint starting from remote side. There is no need to
* report already started endpoint prior to the registration of an EndpointLifecycleCallbacks