blob: 2212109c8a677c48288ebd3369890c1d9039f62f [file] [log] [blame]
Wink Savillef8458ff2014-06-25 16:08:02 -07001/*
2 * Copyright (c) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.ims.internal;
18
Brad Ebingerf8c3cd82018-01-22 13:51:52 -080019import android.telephony.ims.ImsReasonInfo;
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070020
Pavel Zhamaitsiakae4cc152016-02-11 17:19:09 -080021import android.net.Uri;
22
Wink Savillef8458ff2014-06-25 16:08:02 -070023/**
24 * A listener type for receiving notifications about the changes to
25 * the IMS connection(registration).
26 *
27 * {@hide}
28 */
Brad Ebinger14c4f3d2017-07-27 12:57:03 -070029oneway interface IImsRegistrationListener {
Wink Savillef8458ff2014-06-25 16:08:02 -070030 /**
31 * Notifies the application when the device is connected to the IMS network.
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070032 *
33 * @deprecated see {@link registrationConnectedWithRadioTech}
Wink Savillef8458ff2014-06-25 16:08:02 -070034 */
35 void registrationConnected();
36
37 /**
Rekha Kumarb54d2182015-02-24 11:45:36 -080038 * Notifies the application when the device is trying to connect the IMS network.
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070039 *
40 * @deprecated see {@link registrationProgressingWithRadioTech}
Rekha Kumarb54d2182015-02-24 11:45:36 -080041 */
42 void registrationProgressing();
43
44 /**
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070045 * Notifies the application when the device is connected to the IMS network.
46 *
47 * @param imsRadioTech the radio access technology. Valid values are {@code
48 * RIL_RADIO_TECHNOLOGY_*} defined in {@link ServiceState}.
49 */
50 void registrationConnectedWithRadioTech(int imsRadioTech);
51
52 /**
53 * Notifies the application when the device is trying to connect the IMS network.
54 *
55 * @param imsRadioTech the radio access technology. Valid values are {@code
56 * RIL_RADIO_TECHNOLOGY_*} defined in {@link ServiceState}.
57 */
58 void registrationProgressingWithRadioTech(int imsRadioTech);
59
60
61 /**
Wink Savillef8458ff2014-06-25 16:08:02 -070062 * Notifies the application when the device is disconnected from the IMS network.
63 */
Rekha Kumarb54d2182015-02-24 11:45:36 -080064 void registrationDisconnected(in ImsReasonInfo imsReasonInfo);
Wink Savillef8458ff2014-06-25 16:08:02 -070065
66 /**
67 * Notifies the application when its suspended IMS connection is resumed,
68 * meaning the connection now allows throughput.
69 */
70 void registrationResumed();
71
72 /**
73 * Notifies the application when its current IMS connection is suspended,
74 * meaning there is no data throughput.
75 */
76 void registrationSuspended();
77
78 /**
79 * Notifies the application when its current IMS connection is updated
80 * since the service setting is changed or the service is added/removed.
81 *
82 * @param serviceClass a service class specified in {@link ImsServiceClass}
83 * @param event an event type when this callback is called
84 * If {@code event} is 0, meaning the specified service is removed from the IMS connection.
85 * Else ({@code event} is 1), meaning the specified service is added to the IMS connection.
86 */
87 void registrationServiceCapabilityChanged(int serviceClass, int event);
ramab458a12014-07-16 21:38:42 +053088
89 /**
90 * Notifies the application when features on a particular service enabled or
91 * disabled successfully based on user preferences.
92 *
93 * @param serviceClass a service class specified in {@link ImsServiceClass}
94 * @param enabledFeatures features enabled as defined in com.android.ims.ImsConfig#FeatureConstants.
95 * @param disabledFeatures features disabled as defined in com.android.ims.ImsConfig#FeatureConstants.
96 */
97 void registrationFeatureCapabilityChanged(int serviceClass,
Pavel Zhamaitsiak0f1ddb52015-09-02 11:01:34 -070098 in int[] enabledFeatures, in int[] disabledFeatures);
Shriram Ganeshddf570e2015-05-31 09:18:48 -070099
100 /**
101 * Updates the application with the waiting voice message count.
102 * @param count The number of waiting voice messages.
103 */
104 void voiceMessageCountUpdate(int count);
Pavel Zhamaitsiakae4cc152016-02-11 17:19:09 -0800105
106 /**
107 * Notifies the application when the list of URIs associated with IMS client is updated.
108 */
109 void registrationAssociatedUriChanged(in Uri[] uris);
Dheeraj Shetty07b64b82016-12-07 11:38:49 -0800110
111 /**
112 * Notifies the application when IMS registration attempt on a target
113 * access tech fails.
114 *
115 * @param targetAccessTech Radio access technology on which the IMS registration was
116 * attempted.
117 * @param imsReasonInfo Reason for the failure.
118 */
119 void registrationChangeFailed(in int targetAccessTech, in ImsReasonInfo imsReasonInfo);
Wink Savillef8458ff2014-06-25 16:08:02 -0700120}