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, int subId)35     IImsMmTelFeature createMmTelFeature(int slotId, int subId);
createEmergencyOnlyMmTelFeature(int slotId)36     IImsMmTelFeature createEmergencyOnlyMmTelFeature(int slotId);
createRcsFeature(int slotId, int subId)37     IImsRcsFeature createRcsFeature(int slotId, int subId);
querySupportedImsFeatures()38     ImsFeatureConfiguration querySupportedImsFeatures();
getImsServiceCapabilities()39     long getImsServiceCapabilities();
addFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c)40     void addFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c);
removeFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c)41     void removeFeatureStatusCallback(int slotId, int featureType, in IImsFeatureStatusCallback c);
42     // Synchronous call to ensure the ImsService is ready before continuing with feature creation.
notifyImsServiceReadyForFeatureCreation()43     void notifyImsServiceReadyForFeatureCreation();
removeImsFeature(int slotId, int featureType, boolean changeSubId)44     void removeImsFeature(int slotId, int featureType, boolean changeSubId);
getConfig(int slotId, int subId)45     IImsConfig getConfig(int slotId, int subId);
getRegistration(int slotId, int subId)46     IImsRegistration getRegistration(int slotId, int subId);
getSipTransport(int slotId)47     ISipTransport getSipTransport(int slotId);
enableIms(int slotId, int subId)48     oneway void enableIms(int slotId, int subId);
disableIms(int slotId, int subId)49     oneway void disableIms(int slotId, int subId);
resetIms(int slotId, int subId)50     oneway void resetIms(int slotId, int subId);
51 }
52