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

Commit 7490510f authored by Steve Kondik's avatar Steve Kondik
Browse files

telephony: Add compatibility version of registrationDisconnected()

 * Assign ids to all methods and use new AIDL feature to generate
   the correct code.
 * This should ensure compatibility with proprietary IMS
   implementations.

Change-Id: Ic710fdbc36dde918d98f33a9d583760a08a3d4cc
parent e42ae2d4
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -27,29 +27,29 @@ interface IImsRegistrationListener {
    /**
     * Notifies the application when the device is connected to the IMS network.
     */
    void registrationConnected();
    void registrationConnected() = 0;

    /**
     * Notifies the application when the device is trying to connect the IMS network.
     */
    void registrationProgressing();
    void registrationProgressing() = 1;

    /**
     * Notifies the application when the device is disconnected from the IMS network.
     */
    void registrationDisconnected(in ImsReasonInfo imsReasonInfo);
    void registrationDisconnected(in ImsReasonInfo imsReasonInfo) = 2;

    /**
     * Notifies the application when its suspended IMS connection is resumed,
     * meaning the connection now allows throughput.
     */
    void registrationResumed();
    void registrationResumed() = 3;

    /**
     * Notifies the application when its current IMS connection is suspended,
     * meaning there is no data throughput.
     */
    void registrationSuspended();
    void registrationSuspended() = 4;

    /**
     * Notifies the application when its current IMS connection is updated
@@ -60,7 +60,7 @@ interface IImsRegistrationListener {
     *    If {@code event} is 0, meaning the specified service is removed from the IMS connection.
     *    Else ({@code event} is 1), meaning the specified service is added to the IMS connection.
     */
    void registrationServiceCapabilityChanged(int serviceClass, int event);
    void registrationServiceCapabilityChanged(int serviceClass, int event) = 5;

    /**
     * Notifies the application when features on a particular service enabled or
@@ -71,11 +71,16 @@ interface IImsRegistrationListener {
     * @param disabledFeatures features disabled as defined in com.android.ims.ImsConfig#FeatureConstants.
     */
    void registrationFeatureCapabilityChanged(int serviceClass,
            out int[] enabledFeatures, out int[] disabledFeatures);
            out int[] enabledFeatures, out int[] disabledFeatures) = 6;

    /**
     * Updates the application with the waiting voice message count.
     * @param count The number of waiting voice messages.
     */
    void voiceMessageCountUpdate(int count);
    void voiceMessageCountUpdate(int count) = 7;

    /**
     * Compatibility with AOSP
     */
    void registrationDisconnected() = 8;
}