MMTelFeature.java revision e63b35d0b22db8769ffd3378fc305d5f3d27fd50
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.feature;
18
19import android.app.PendingIntent;
20import android.os.Message;
21
22import com.android.ims.ImsCallProfile;
23import com.android.ims.internal.IImsCallSession;
24import com.android.ims.internal.IImsCallSessionListener;
25import com.android.ims.internal.IImsConfig;
26import com.android.ims.internal.IImsEcbm;
27import com.android.ims.internal.IImsMultiEndpoint;
28import com.android.ims.internal.IImsRegistrationListener;
29import com.android.ims.internal.IImsUt;
30
31import java.util.ArrayList;
32import java.util.List;
33
34/**
35 * Base implementation, which implements all methods in IMMTelFeature. Any class wishing to use
36 * MMTelFeature should extend this class and implement all methods that the service supports.
37 *
38 * @hide
39 */
40
41public class MMTelFeature extends ImsFeature implements IMMTelFeature {
42
43    @Override
44    public int startSession(PendingIntent incomingCallIntent, IImsRegistrationListener listener) {
45        return 0;
46    }
47
48    @Override
49    public void endSession(int sessionId) {
50    }
51
52    @Override
53    public boolean isConnected(int callSessionType, int callType) {
54        return false;
55    }
56
57    @Override
58    public boolean isOpened() {
59        return false;
60    }
61
62    @Override
63    public void addRegistrationListener(IImsRegistrationListener listener) {
64    }
65
66    @Override
67    public void removeRegistrationListener(IImsRegistrationListener listener) {
68    }
69
70    @Override
71    public ImsCallProfile createCallProfile(int sessionId, int callSessionType, int callType) {
72        return null;
73    }
74
75    @Override
76    public IImsCallSession createCallSession(int sessionId, ImsCallProfile profile,
77            IImsCallSessionListener listener) {
78        return null;
79    }
80
81    @Override
82    public IImsCallSession getPendingCallSession(int sessionId, String callId) {
83        return null;
84    }
85
86    @Override
87    public IImsUt getUtInterface() {
88        return null;
89    }
90
91    @Override
92    public IImsConfig getConfigInterface() {
93        return null;
94    }
95
96    @Override
97    public void turnOnIms() {
98    }
99
100    @Override
101    public void turnOffIms() {
102    }
103
104    @Override
105    public IImsEcbm getEcbmInterface() {
106        return null;
107    }
108
109    @Override
110    public void setUiTTYMode(int uiTtyMode, Message onComplete) {
111    }
112
113    @Override
114    public IImsMultiEndpoint getMultiEndpointInterface() {
115        return null;
116    }
117
118    @Override
119    public void onFeatureRemoved() {
120
121    }
122}
123