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

Commit c80ba191 authored by Steve Kondik's avatar Steve Kondik Committed by Roman Birg
Browse files

telephony: Add compatibility version of registrationConnected()

 * 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 2a3eb6a8
Loading
Loading
Loading
Loading
+14 −8
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ interface IImsRegistrationListener {
     * @param imsRadioTech the radio access technology. Valid values are {@code
     * RIL_RADIO_TECHNOLOGY_*} defined in {@link ServiceState}.
     */
    void registrationConnected(int imsRadioTech);
    void registrationConnected(int imsRadioTech) = 0;

    /**
     * Notifies the application when the device is trying to connect the IMS network.
@@ -39,24 +39,24 @@ interface IImsRegistrationListener {
     * @param imsRadioTech the radio access technology. Valid values are {@code
     * RIL_RADIO_TECHNOLOGY_*} defined in {@link ServiceState}.
     */
    void registrationProgressing(int imsRadioTech);
    void registrationProgressing(int imsRadioTech) = 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
@@ -67,7 +67,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
@@ -78,11 +78,17 @@ 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 registrationConnected() = 8;
    void registrationProgressing() = 9;
}