OSDN Git Service

Change IMS callback AIDLs to be oneway
authorBrad Ebinger <breadley@google.com>
Thu, 27 Jul 2017 19:57:03 +0000 (12:57 -0700)
committerBrad Ebinger <breadley@google.com>
Thu, 27 Jul 2017 19:57:03 +0000 (12:57 -0700)
A bad behaving service was causing the IMS registration
callbacks to block indefinetly waiting for the callback
binder implementation in another process to finish. Since
we update the IMS registration in a loop, we were never getting
to the updates for the other processes.

This change moves the AIDL definition to oneway. Since these
are callback AIDLs, the caller doesn't need to wait
for the callbacks to return before sending the others.

Bug: 63137625
Test: Manual
Change-Id: Id39b6b70aa20bb9986bf293abe2f9e683da4252e

telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl
telephony/java/com/android/ims/internal/IImsEcbmListener.aidl
telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl
telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl
telephony/java/com/android/ims/internal/IImsUtListener.aidl

index 831ab12..748092d 100644 (file)
@@ -29,7 +29,7 @@ import com.android.ims.ImsSuppServiceNotification;
  * by having one of the methods called on the {@link IImsCallSessionListener}.
  * {@hide}
  */
-interface IImsCallSessionListener {
+oneway interface IImsCallSessionListener {
     /**
      * Notifies the result of the basic session operation (setup / terminate).
      */
index d866ecb..6066f49 100644 (file)
@@ -35,7 +35,7 @@ package com.android.ims.internal;
  *
  * {@hide}
  */
-interface IImsEcbmListener {
+oneway interface IImsEcbmListener {
     /**
      * Notifies the application when the device enters Emergency Callback Mode.
      */
index 27b8fa1..1621967 100644 (file)
@@ -23,7 +23,7 @@ import com.android.ims.ImsExternalCallState;
  *
  * {@hide}
  */
-interface IImsExternalCallStateListener {
+oneway interface IImsExternalCallStateListener {
 
     /**
      * Notifies client when Dialog Event Package update is received
index 98f8e0a..15f8726 100644 (file)
@@ -26,7 +26,7 @@ import android.net.Uri;
  *
  * {@hide}
  */
-interface IImsRegistrationListener {
+oneway interface IImsRegistrationListener {
     /**
      * Notifies the application when the device is connected to the IMS network.
      *
index 6416631..300273a 100644 (file)
@@ -26,7 +26,7 @@ import com.android.ims.ImsReasonInfo;
 /**
  * {@hide}
  */
-interface IImsUtListener {
+oneway interface IImsUtListener {
     /**
      * Notifies the result of the supplementary service configuration udpate.
      */