IImsRegistrationListener.aidl revision b54d218d8b1c765865d0efb4a40e631f8bfa02de
13f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian/*
23f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * Copyright (c) 2013 The Android Open Source Project
33f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian *
43f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * Licensed under the Apache License, Version 2.0 (the "License");
53f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * you may not use this file except in compliance with the License.
63f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * You may obtain a copy of the License at
73f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian *
83f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian *      http://www.apache.org/licenses/LICENSE-2.0
93f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian *
103f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * Unless required by applicable law or agreed to in writing, software
113f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * distributed under the License is distributed on an "AS IS" BASIS,
123f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * See the License for the specific language governing permissions and
143f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * limitations under the License.
153f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian */
163f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian
173f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopianpackage com.android.ims.internal;
1849457ac092071a8f964f7f69156093657ccdc3d0Mathias Agopian
193f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopianimport com.android.ims.ImsReasonInfo;
203f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian/**
213f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * A listener type for receiving notifications about the changes to
223f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * the IMS connection(registration).
233f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian *
243f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian * {@hide}
253f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian */
263f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopianinterface IImsRegistrationListener {
273f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    /**
283f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when the device is connected to the IMS network.
293f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     */
303f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    void registrationConnected();
313f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian
323f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    /**
333f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when the device is trying to connect the IMS network.
343f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     */
353f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    void registrationProgressing();
363f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian
373f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    /**
383f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when the device is disconnected from the IMS network.
393f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     */
403f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    void registrationDisconnected(in ImsReasonInfo imsReasonInfo);
413f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian
423f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    /**
433f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when its suspended IMS connection is resumed,
443f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * meaning the connection now allows throughput.
4549457ac092071a8f964f7f69156093657ccdc3d0Mathias Agopian     */
4649457ac092071a8f964f7f69156093657ccdc3d0Mathias Agopian    void registrationResumed();
4749457ac092071a8f964f7f69156093657ccdc3d0Mathias Agopian
4849457ac092071a8f964f7f69156093657ccdc3d0Mathias Agopian    /**
493f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when its current IMS connection is suspended,
503f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * meaning there is no data throughput.
513f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     */
52a8c386f1c36e916c1df18d41a22104d655a89817Mathias Agopian    void registrationSuspended();
533f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian
543f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    /**
553f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when its current IMS connection is updated
563f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * since the service setting is changed or the service is added/removed.
573f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     *
583f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * @param serviceClass a service class specified in {@link ImsServiceClass}
593f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * @param event an event type when this callback is called
603f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     *    If {@code event} is 0, meaning the specified service is removed from the IMS connection.
6149457ac092071a8f964f7f69156093657ccdc3d0Mathias Agopian     *    Else ({@code event} is 1), meaning the specified service is added to the IMS connection.
623f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     */
633f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    void registrationServiceCapabilityChanged(int serviceClass, int event);
64a8c386f1c36e916c1df18d41a22104d655a89817Mathias Agopian
653f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian    /**
663f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * Notifies the application when features on a particular service enabled or
673f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * disabled successfully based on user preferences.
683f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     *
693f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * @param serviceClass a service class specified in {@link ImsServiceClass}
703f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * @param enabledFeatures features enabled as defined in com.android.ims.ImsConfig#FeatureConstants.
713f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     * @param disabledFeatures features disabled as defined in com.android.ims.ImsConfig#FeatureConstants.
723f84483382be2d528918cc1a6fbc6a7d68e0b181Mathias Agopian     */
73    void registrationFeatureCapabilityChanged(int serviceClass,
74            out int[] enabledFeatures, out int[] disabledFeatures);
75}
76