blob: a7a62a6254785aff031306a98c796d004a530c67 [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 */
Andrei Onea903da372019-02-27 15:45:08 +000035 @UnsupportedAppUsage
Wink Savillef8458ff2014-06-25 16:08:02 -070036 void registrationConnected();
37
38 /**
Rekha Kumarb54d2182015-02-24 11:45:36 -080039 * Notifies the application when the device is trying to connect the IMS network.
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070040 *
41 * @deprecated see {@link registrationProgressingWithRadioTech}
Rekha Kumarb54d2182015-02-24 11:45:36 -080042 */
43 void registrationProgressing();
44
45 /**
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070046 * Notifies the application when the device is connected to the IMS network.
47 *
48 * @param imsRadioTech the radio access technology. Valid values are {@code
49 * RIL_RADIO_TECHNOLOGY_*} defined in {@link ServiceState}.
50 */
Andrei Onea903da372019-02-27 15:45:08 +000051 @UnsupportedAppUsage
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070052 void registrationConnectedWithRadioTech(int imsRadioTech);
53
54 /**
55 * Notifies the application when the device is trying to connect the IMS network.
56 *
57 * @param imsRadioTech the radio access technology. Valid values are {@code
58 * RIL_RADIO_TECHNOLOGY_*} defined in {@link ServiceState}.
59 */
Andrei Onea903da372019-02-27 15:45:08 +000060 @UnsupportedAppUsage
Omkar Kolangaded4e44bb2015-05-04 17:49:14 -070061 void registrationProgressingWithRadioTech(int imsRadioTech);
62
63
64 /**
Wink Savillef8458ff2014-06-25 16:08:02 -070065 * Notifies the application when the device is disconnected from the IMS network.
66 */
Andrei Onea903da372019-02-27 15:45:08 +000067 @UnsupportedAppUsage
Rekha Kumarb54d2182015-02-24 11:45:36 -080068 void registrationDisconnected(in ImsReasonInfo imsReasonInfo);
Wink Savillef8458ff2014-06-25 16:08:02 -070069
70 /**
71 * Notifies the application when its suspended IMS connection is resumed,
72 * meaning the connection now allows throughput.
73 */
74 void registrationResumed();
75
76 /**
77 * Notifies the application when its current IMS connection is suspended,
78 * meaning there is no data throughput.
79 */
80 void registrationSuspended();
81
82 /**
83 * Notifies the application when its current IMS connection is updated
84 * since the service setting is changed or the service is added/removed.
85 *
86 * @param serviceClass a service class specified in {@link ImsServiceClass}
87 * @param event an event type when this callback is called
88 * If {@code event} is 0, meaning the specified service is removed from the IMS connection.
89 * Else ({@code event} is 1), meaning the specified service is added to the IMS connection.
90 */
91 void registrationServiceCapabilityChanged(int serviceClass, int event);
ramab458a12014-07-16 21:38:42 +053092
93 /**
94 * Notifies the application when features on a particular service enabled or
95 * disabled successfully based on user preferences.
96 *
97 * @param serviceClass a service class specified in {@link ImsServiceClass}
98 * @param enabledFeatures features enabled as defined in com.android.ims.ImsConfig#FeatureConstants.
99 * @param disabledFeatures features disabled as defined in com.android.ims.ImsConfig#FeatureConstants.
100 */
Andrei Onea903da372019-02-27 15:45:08 +0000101 @UnsupportedAppUsage
ramab458a12014-07-16 21:38:42 +0530102 void registrationFeatureCapabilityChanged(int serviceClass,
Pavel Zhamaitsiak0f1ddb52015-09-02 11:01:34 -0700103 in int[] enabledFeatures, in int[] disabledFeatures);
Shriram Ganeshddf570e2015-05-31 09:18:48 -0700104
105 /**
106 * Updates the application with the waiting voice message count.
107 * @param count The number of waiting voice messages.
108 */
Andrei Onea903da372019-02-27 15:45:08 +0000109 @UnsupportedAppUsage
Shriram Ganeshddf570e2015-05-31 09:18:48 -0700110 void voiceMessageCountUpdate(int count);
Pavel Zhamaitsiakae4cc152016-02-11 17:19:09 -0800111
112 /**
113 * Notifies the application when the list of URIs associated with IMS client is updated.
114 */
Andrei Onea903da372019-02-27 15:45:08 +0000115 @UnsupportedAppUsage
Pavel Zhamaitsiakae4cc152016-02-11 17:19:09 -0800116 void registrationAssociatedUriChanged(in Uri[] uris);
Dheeraj Shetty07b64b82016-12-07 11:38:49 -0800117
118 /**
119 * Notifies the application when IMS registration attempt on a target
120 * access tech fails.
121 *
122 * @param targetAccessTech Radio access technology on which the IMS registration was
123 * attempted.
124 * @param imsReasonInfo Reason for the failure.
125 */
Andrei Onea903da372019-02-27 15:45:08 +0000126 @UnsupportedAppUsage
Dheeraj Shetty07b64b82016-12-07 11:38:49 -0800127 void registrationChangeFailed(in int targetAccessTech, in ImsReasonInfo imsReasonInfo);
Wink Savillef8458ff2014-06-25 16:08:02 -0700128}