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 android.telephony.ims.aidl;
18 
19 import android.telephony.ims.aidl.IImsMmTelFeature;
20 import android.telephony.ims.aidl.IImsRcsFeature;
21 import android.telephony.ims.aidl.IImsConfig;
22 import android.telephony.ims.aidl.IImsRegistration;
23 import android.telephony.ims.aidl.IImsServiceControllerListener;
24 import android.telephony.ims.aidl.ISipTransport;
25 import android.telephony.ims.stub.ImsFeatureConfiguration;
26 
27 import com.android.ims.internal.IImsFeatureStatusCallback;
28 
29 /**
30  * See ImsService and MmTelFeature for more information.
31  * {@hide}
32  */
33 interface IImsServiceController {
setListener(IImsServiceControllerListener l)34     void setListener(IImsServiceControllerListener l);
createMmTelFeature(int slotId)35     IImsMmTelFeature createMmTelFeature(int slotId);
createRcsFeature(int slotId)36     IImsRcsFeature createRcsFeature(int slotId);
querySupportedImsFeatures()37     ImsFeatureConfiguration querySupportedImsFeatures();
getImsServiceCapabilities()38     long getImsServiceCapabilities();
addFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c)39     void addFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c);
removeFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c)40     void removeFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c);
41     // Synchronous call to ensure the ImsService is ready before continuing with feature creation.
notifyImsServiceReadyForFeatureCreation()42     void notifyImsServiceReadyForFeatureCreation();
removeImsFeature(int slotId, int featureType)43     void removeImsFeature(int slotId, int featureType);
getConfig(int slotId)44     IImsConfig getConfig(int slotId);
getRegistration(int slotId)45     IImsRegistration getRegistration(int slotId);
getSipTransport(int slotId)46     ISipTransport getSipTransport(int slotId);
enableIms(int slotId)47     oneway void enableIms(int slotId);
disableIms(int slotId)48     oneway void disableIms(int slotId);
49 }
50