ImsUtImplBase.java revision f6e372b1fbc0055c4cba3486a73ad805a54ed01a
1/*
2 * Copyright (C) 2017 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 android.telephony.ims.stub;
18
19import android.os.Bundle;
20import android.os.RemoteException;
21
22import com.android.ims.internal.IImsUt;
23import com.android.ims.internal.IImsUtListener;
24
25/**
26 * Base implementation of ImsUt, which implements stub versions of the methods
27 * in the IImsUt AIDL. Override the methods that your implementation of ImsUt supports.
28 *
29 * DO NOT remove or change the existing APIs, only add new ones to this Base implementation or you
30 * will break other implementations of ImsUt maintained by other ImsServices.
31 *
32 * Provides the Ut interface interworking to get/set the supplementary service configuration.
33 *
34 * @hide
35 */
36
37public class ImsUtImplBase extends IImsUt.Stub {
38
39    /**
40     * Closes the object. This object is not usable after being closed.
41     */
42    @Override
43    public void close() throws RemoteException {
44
45    }
46
47    /**
48     * Retrieves the configuration of the call barring.
49     */
50    @Override
51    public int queryCallBarring(int cbType) throws RemoteException {
52        return -1;
53    }
54
55    /**
56     * Retrieves the configuration of the call barring for specified service class.
57     */
58    @Override
59    public int queryCallBarringForServiceClass(int cbType, int serviceClass)
60            throws RemoteException {
61        return -1;
62    }
63
64    /**
65     * Retrieves the configuration of the call forward.
66     */
67    @Override
68    public int queryCallForward(int condition, String number) throws RemoteException {
69        return -1;
70    }
71
72    /**
73     * Retrieves the configuration of the call waiting.
74     */
75    @Override
76    public int queryCallWaiting() throws RemoteException {
77        return -1;
78    }
79
80    /**
81     * Retrieves the default CLIR setting.
82     */
83    @Override
84    public int queryCLIR() throws RemoteException {
85        return -1;
86    }
87
88    /**
89     * Retrieves the CLIP call setting.
90     */
91    @Override
92    public int queryCLIP() throws RemoteException {
93        return -1;
94    }
95
96    /**
97     * Retrieves the COLR call setting.
98     */
99    @Override
100    public int queryCOLR() throws RemoteException {
101        return -1;
102    }
103
104    /**
105     * Retrieves the COLP call setting.
106     */
107    @Override
108    public int queryCOLP() throws RemoteException {
109        return -1;
110    }
111
112    /**
113     * Updates or retrieves the supplementary service configuration.
114     */
115    @Override
116    public int transact(Bundle ssInfo) throws RemoteException {
117        return -1;
118    }
119
120    /**
121     * Updates the configuration of the call barring.
122     */
123    @Override
124    public int updateCallBarring(int cbType, int action, String[] barrList) throws RemoteException {
125        return -1;
126    }
127
128    /**
129     * Updates the configuration of the call barring for specified service class.
130     */
131    @Override
132    public int updateCallBarringForServiceClass(int cbType, int action, String[] barrList,
133            int serviceClass) throws RemoteException {
134        return -1;
135    }
136
137    /**
138     * Updates the configuration of the call forward.
139     */
140    @Override
141    public int updateCallForward(int action, int condition, String number, int serviceClass,
142            int timeSeconds) throws RemoteException {
143        return 0;
144    }
145
146    /**
147     * Updates the configuration of the call waiting.
148     */
149    @Override
150    public int updateCallWaiting(boolean enable, int serviceClass) throws RemoteException {
151        return -1;
152    }
153
154    /**
155     * Updates the configuration of the CLIR supplementary service.
156     */
157    @Override
158    public int updateCLIR(int clirMode) throws RemoteException {
159        return -1;
160    }
161
162    /**
163     * Updates the configuration of the CLIP supplementary service.
164     */
165    @Override
166    public int updateCLIP(boolean enable) throws RemoteException {
167        return -1;
168    }
169
170    /**
171     * Updates the configuration of the COLR supplementary service.
172     */
173    @Override
174    public int updateCOLR(int presentation) throws RemoteException {
175        return -1;
176    }
177
178    /**
179     * Updates the configuration of the COLP supplementary service.
180     */
181    @Override
182    public int updateCOLP(boolean enable) throws RemoteException {
183        return -1;
184    }
185
186    /**
187     * Sets the listener.
188     */
189    @Override
190    public void setListener(IImsUtListener listener) throws RemoteException {
191    }
192}
193