OSDN Git Service

Add addRegistrationListener function to IImsService.aidl
authorPavel Zhamaitsiak <pavelz@google.com>
Fri, 15 Apr 2016 17:53:36 +0000 (10:53 -0700)
committerVineeta Srivastava <vsrivastava@google.com>
Tue, 19 Apr 2016 23:49:55 +0000 (23:49 +0000)
This allows to register additional IMS connection listeners.
IImsService.open() is no longer supposed to be used for that purpose.

Bug: 28150730
Change-Id: I949e0c912de66e82864934a1ad9ec2ec36f57909

telephony/java/com/android/ims/internal/IImsService.aidl

index a9614a6..406d22d 100644 (file)
@@ -38,8 +38,19 @@ interface IImsService {
     void close(int serviceId);
     boolean isConnected(int serviceId, int serviceType, int callType);
     boolean isOpened(int serviceId);
+
+    /**
+     * Replace existing registration listener
+     *
+     */
     void setRegistrationListener(int serviceId, in IImsRegistrationListener listener);
 
+    /**
+     * Add new registration listener
+     */
+    void addRegistrationListener(int phoneId, int serviceClass,
+            in IImsRegistrationListener listener);
+
     ImsCallProfile createCallProfile(int serviceId, int serviceType, int callType);
 
     IImsCallSession createCallSession(int serviceId, in ImsCallProfile profile,