2 * Copyright (c) 2013 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package com.android.ims.internal;
19 import android.app.PendingIntent;
21 import com.android.ims.ImsCallProfile;
22 import com.android.ims.internal.IImsCallSession;
23 import com.android.ims.internal.IImsCallSessionListener;
24 import com.android.ims.internal.IImsConfig;
25 import com.android.ims.internal.IImsEcbm;
26 import com.android.ims.internal.IImsMultiEndpoint;
27 import com.android.ims.internal.IImsRegistrationListener;
28 import com.android.ims.internal.IImsUt;
30 import android.os.Message;
35 interface IImsService {
36 int open(int phoneId, int serviceClass, in PendingIntent incomingCallIntent,
37 in IImsRegistrationListener listener);
38 void close(int serviceId);
39 boolean isConnected(int serviceId, int serviceType, int callType);
40 boolean isOpened(int serviceId);
43 * Replace existing registration listener
46 void setRegistrationListener(int serviceId, in IImsRegistrationListener listener);
49 * Add new registration listener
51 void addRegistrationListener(int phoneId, int serviceClass,
52 in IImsRegistrationListener listener);
54 ImsCallProfile createCallProfile(int serviceId, int serviceType, int callType);
56 IImsCallSession createCallSession(int serviceId, in ImsCallProfile profile,
57 in IImsCallSessionListener listener);
58 IImsCallSession getPendingCallSession(int serviceId, String callId);
61 * Ut interface for the supplementary service configuration.
63 IImsUt getUtInterface(int serviceId);
66 * Config interface to get/set IMS service/capability parameters.
68 IImsConfig getConfigInterface(int phoneId);
71 * Used for turning on IMS when its in OFF state.
73 void turnOnIms(int phoneId);
76 * Used for turning off IMS when its in ON state.
77 * When IMS is OFF, device will behave as CSFB'ed.
79 void turnOffIms(int phoneId);
82 * ECBM interface for Emergency Callback mode mechanism.
84 IImsEcbm getEcbmInterface(int serviceId);
87 * Used to set current TTY Mode.
89 void setUiTTYMode(int serviceId, int uiTtyMode, in Message onComplete);
92 * MultiEndpoint interface for DEP.
94 IImsMultiEndpoint getMultiEndpointInterface(int serviceId);