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.aidl;
18
19import android.os.Message;
20import android.telephony.ims.aidl.IImsMmTelListener;
21import android.telephony.ims.aidl.IImsSmsListener;
22import android.telephony.ims.aidl.IImsCapabilityCallback;
23import android.telephony.ims.feature.CapabilityChangeRequest;
24
25import android.telephony.ims.ImsCallProfile;
26import com.android.ims.internal.IImsCallSession;
27import com.android.ims.internal.IImsEcbm;
28import com.android.ims.internal.IImsMultiEndpoint;
29import com.android.ims.internal.IImsRegistrationListener;
30import com.android.ims.internal.IImsUt;
31
32/**
33 * See MmTelFeature for more information.
34 * {@hide}
35 */
36interface IImsMmTelFeature {
37    void setListener(IImsMmTelListener l);
38    int getFeatureState();
39    ImsCallProfile createCallProfile(int callSessionType, int callType);
40    IImsCallSession createCallSession(in ImsCallProfile profile);
41    int shouldProcessCall(in String[] uris);
42    IImsUt getUtInterface();
43    IImsEcbm getEcbmInterface();
44    void setUiTtyMode(int uiTtyMode, in Message onCompleteMessage);
45    IImsMultiEndpoint getMultiEndpointInterface();
46    int queryCapabilityStatus();
47    oneway void addCapabilityCallback(IImsCapabilityCallback c);
48    oneway void removeCapabilityCallback(IImsCapabilityCallback c);
49    oneway void changeCapabilitiesConfiguration(in CapabilityChangeRequest request,
50            IImsCapabilityCallback c);
51    oneway void queryCapabilityConfiguration(int capability, int radioTech,
52            IImsCapabilityCallback c);
53    // SMS APIs
54    void setSmsListener(IImsSmsListener l);
55    oneway void sendSms(in int token, int messageRef, String format, String smsc, boolean retry,
56            in byte[] pdu);
57    oneway void acknowledgeSms(int token, int messageRef, int result);
58    oneway void acknowledgeSmsReport(int token, int messageRef, int result);
59    String getSmsFormat();
60    oneway void onSmsReady();
61}
62