• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 package com.android.ims.internal;
18 
19 import android.app.PendingIntent;
20 
21 import android.telephony.ims.ImsCallProfile;
22 import com.android.ims.internal.IImsCallSession;
23 import com.android.ims.internal.IImsConfig;
24 import com.android.ims.internal.IImsEcbm;
25 import com.android.ims.internal.IImsMultiEndpoint;
26 import com.android.ims.internal.IImsRegistrationListener;
27 import com.android.ims.internal.IImsUt;
28 
29 import android.os.Message;
30 
31 /**
32  * See MMTelFeature for more information.
33  * {@hide}
34  */
35 interface IImsMMTelFeature {
startSession(in PendingIntent incomingCallIntent, in IImsRegistrationListener listener)36     int startSession(in PendingIntent incomingCallIntent,
37             in IImsRegistrationListener listener);
endSession(int sessionId)38     void endSession(int sessionId);
isConnected(int callSessionType, int callType)39     boolean isConnected(int callSessionType, int callType);
isOpened()40     boolean isOpened();
getFeatureStatus()41     int getFeatureStatus();
addRegistrationListener(in IImsRegistrationListener listener)42     void addRegistrationListener(in IImsRegistrationListener listener);
removeRegistrationListener(in IImsRegistrationListener listener)43     void removeRegistrationListener(in IImsRegistrationListener listener);
createCallProfile(int sessionId, int callSessionType, int callType)44     ImsCallProfile createCallProfile(int sessionId, int callSessionType, int callType);
createCallSession(int sessionId, in ImsCallProfile profile)45     IImsCallSession createCallSession(int sessionId, in ImsCallProfile profile);
getPendingCallSession(int sessionId, String callId)46     IImsCallSession getPendingCallSession(int sessionId, String callId);
getUtInterface()47     IImsUt getUtInterface();
getConfigInterface()48     IImsConfig getConfigInterface();
turnOnIms()49     void turnOnIms();
turnOffIms()50     void turnOffIms();
getEcbmInterface()51     IImsEcbm getEcbmInterface();
setUiTTYMode(int uiTtyMode, in Message onComplete)52     void setUiTTYMode(int uiTtyMode, in Message onComplete);
getMultiEndpointInterface()53     IImsMultiEndpoint getMultiEndpointInterface();
54 }
55