Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96f8b978 authored by Madhav Iyengar's avatar Madhav Iyengar
Browse files

contexthub: IEndpointCallback should be oneway

Bug: 384897139
Flag: android.chre.flags.offload_api
Test: Builds
Change-Id: I137b06bcc7da3f73ea79ad92db28aecab3e2f8b4
parent ee25d07e
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ import android.hardware.contexthub.Reason;
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