IImsService.aidl revision ab458a18583e5dc9984210c3b4cc01dabcb1b39f
1/*
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.app.PendingIntent;
20
21import com.android.ims.ImsCallProfile;
22import com.android.ims.internal.IImsRegistrationListener;
23import com.android.ims.internal.IImsCallSession;
24import com.android.ims.internal.IImsCallSessionListener;
25import com.android.ims.internal.IImsUt;
26import com.android.ims.internal.IImsConfig;
27
28/**
29 * {@hide}
30 */
31interface IImsService {
32    int open(int serviceClass, in PendingIntent incomingCallIntent,
33            in IImsRegistrationListener listener);
34    void close(int serviceId);
35    boolean isConnected(int serviceId, int serviceType, int callType);
36    boolean isOpened(int serviceId);
37    void setRegistrationListener(int serviceId, in IImsRegistrationListener listener);
38
39    ImsCallProfile createCallProfile(int serviceId, int serviceType, int callType);
40
41    IImsCallSession createCallSession(int serviceId, in ImsCallProfile profile,
42            in IImsCallSessionListener listener);
43    IImsCallSession getPendingCallSession(int serviceId, String callId);
44
45    /**
46     * Ut interface for the supplementary service configuration.
47     */
48    IImsUt getUtInterface(int serviceId);
49
50    /**
51     * Config interface to get/set IMS service/capability parameters.
52     */
53    IImsConfig getConfigInterface();
54
55    /**
56     * Used for turning on IMS when its in OFF state.
57     */
58    void turnOnIms();
59
60    /**
61     * Used for turning off IMS when its in ON state.
62     * When IMS is OFF, device will behave as CSFB'ed.
63     */
64    void turnOffIms();
65}
66