1 /* 2 * Copyright (C) 2019 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.net.Uri; 20 import android.telephony.ims.aidl.IImsCapabilityCallback; 21 import android.telephony.ims.aidl.IRcsUceControllerCallback; 22 import android.telephony.ims.aidl.IRcsUcePublishStateCallback; 23 import android.telephony.ims.aidl.IImsRegistrationCallback; 24 25 import com.android.internal.telephony.IIntegerConsumer; 26 27 /** 28 * Interface used to interact with the Telephony IMS. 29 * 30 * {@hide} 31 */ 32 interface IImsRcsController { 33 // IMS RCS registration commands registerImsRegistrationCallback(int subId, IImsRegistrationCallback c)34 void registerImsRegistrationCallback(int subId, IImsRegistrationCallback c); unregisterImsRegistrationCallback(int subId, IImsRegistrationCallback c)35 void unregisterImsRegistrationCallback(int subId, IImsRegistrationCallback c); getImsRcsRegistrationState(int subId, IIntegerConsumer consumer)36 void getImsRcsRegistrationState(int subId, IIntegerConsumer consumer); getImsRcsRegistrationTransportType(int subId, IIntegerConsumer consumer)37 void getImsRcsRegistrationTransportType(int subId, IIntegerConsumer consumer); 38 39 // IMS RCS capability commands registerRcsAvailabilityCallback(int subId, IImsCapabilityCallback c)40 void registerRcsAvailabilityCallback(int subId, IImsCapabilityCallback c); unregisterRcsAvailabilityCallback(int subId, IImsCapabilityCallback c)41 void unregisterRcsAvailabilityCallback(int subId, IImsCapabilityCallback c); isCapable(int subId, int capability, int radioTech)42 boolean isCapable(int subId, int capability, int radioTech); isAvailable(int subId, int capability)43 boolean isAvailable(int subId, int capability); 44 45 // ImsUceAdapter specific requestCapabilities(int subId, String callingPackage, String callingFeatureId, in List<Uri> contactNumbers, IRcsUceControllerCallback c)46 void requestCapabilities(int subId, String callingPackage, String callingFeatureId, 47 in List<Uri> contactNumbers, IRcsUceControllerCallback c); getUcePublishState(int subId)48 int getUcePublishState(int subId); isUceSettingEnabled(int subId, String callingPackage, String callingFeatureId)49 boolean isUceSettingEnabled(int subId, String callingPackage, String callingFeatureId); setUceSettingEnabled(int subId, boolean isEnabled)50 void setUceSettingEnabled(int subId, boolean isEnabled); registerUcePublishStateCallback(int subId, IRcsUcePublishStateCallback c)51 void registerUcePublishStateCallback(int subId, IRcsUcePublishStateCallback c); unregisterUcePublishStateCallback(int subId, IRcsUcePublishStateCallback c)52 void unregisterUcePublishStateCallback(int subId, IRcsUcePublishStateCallback c); 53 } 54