blob: 4f97cc5cfb2268260920cf232ab3eaf7b24ff29f [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
19import android.os.Bundle;
20
21import com.android.ims.internal.IImsUtListener;
22
23/**
24 * Provides the Ut interface interworking to get/set the supplementary service configuration.
25 *
26 * {@hide}
27 */
28interface IImsUt {
29 /**
30 * Closes the object. This object is not usable after being closed.
31 */
32 void close();
33
34 /**
35 * Retrieves the configuration of the call barring.
36 */
37 int queryCallBarring(int cbType);
38
39 /**
40 * Retrieves the configuration of the call forward.
41 */
42 int queryCallForward(int condition, String number);
43
44 /**
45 * Retrieves the configuration of the call waiting.
46 */
47 int queryCallWaiting();
48
49 /**
Etan Cohen1e98a772014-07-01 10:01:35 -070050 * Retrieves the default CLIR setting.
51 */
52 int queryCLIR();
53
54 /**
55 * Retrieves the CLIP call setting.
56 */
57 int queryCLIP();
58
59 /**
60 * Retrieves the COLR call setting.
61 */
62 int queryCOLR();
63
64 /**
65 * Retrieves the COLP call setting.
66 */
67 int queryCOLP();
68
69 /**
Wink Savillef8458ff2014-06-25 16:08:02 -070070 * Updates or retrieves the supplementary service configuration.
71 */
72 int transact(in Bundle ssInfo);
73
74 /**
75 * Updates the configuration of the call barring.
76 */
Shriram Ganeshddf570e2015-05-31 09:18:48 -070077 int updateCallBarring(int cbType, int action, in String[] barrList);
Wink Savillef8458ff2014-06-25 16:08:02 -070078
79 /**
80 * Updates the configuration of the call forward.
81 */
Omkar Kolangadefaf7ce02015-01-31 17:28:15 +053082 int updateCallForward(int action, int condition, String number,
83 int serviceClass, int timeSeconds);
Wink Savillef8458ff2014-06-25 16:08:02 -070084
85 /**
86 * Updates the configuration of the call waiting.
87 */
Omkar Kolangadefaf7ce02015-01-31 17:28:15 +053088 int updateCallWaiting(boolean enable, int serviceClass);
Wink Savillef8458ff2014-06-25 16:08:02 -070089
90 /**
Etan Cohen1e98a772014-07-01 10:01:35 -070091 * Updates the configuration of the CLIR supplementary service.
92 */
93 int updateCLIR(int clirMode);
94
95 /**
96 * Updates the configuration of the CLIP supplementary service.
97 */
98 int updateCLIP(boolean enable);
99
100 /**
101 * Updates the configuration of the COLR supplementary service.
102 */
103 int updateCOLR(int presentation);
104
105 /**
106 * Updates the configuration of the COLP supplementary service.
107 */
108 int updateCOLP(boolean enable);
109
110 /**
Wink Savillef8458ff2014-06-25 16:08:02 -0700111 * Sets the listener.
112 */
113 void setListener(in IImsUtListener listener);
Benergy Meenan Ravurif6e372b2016-10-17 12:48:29 +0530114
115 /**
116 * Retrieves the configuration of the call barring for specified service class.
117 */
118 int queryCallBarringForServiceClass(int cbType, int serviceClass);
119
120 /**
121 * Updates the configuration of the call barring for specified service class.
122 */
123 int updateCallBarringForServiceClass(int cbType, int action, in String[] barrList,
124 int serviceClass);
Wink Savillef8458ff2014-06-25 16:08:02 -0700125}