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.stub; 18 19 import android.os.Bundle; 20 import android.os.RemoteException; 21 22 import com.android.ims.ImsCallForwardInfo; 23 import com.android.ims.ImsReasonInfo; 24 import com.android.ims.ImsSsInfo; 25 import com.android.ims.internal.IImsUt; 26 import com.android.ims.internal.IImsUtListener; 27 28 /** 29 * Base implementation of ImsUtListener, which implements stub versions of the methods 30 * in the IImsUtListener AIDL. Override the methods that your implementation of 31 * ImsUtListener supports. 32 * 33 * DO NOT remove or change the existing APIs, only add new ones to this Base implementation or you 34 * will break other implementations of ImsUtListener maintained by other ImsServices. 35 * 36 * @hide 37 */ 38 39 public class ImsUtListenerImplBase extends IImsUtListener.Stub { 40 41 /** 42 * Notifies the result of the supplementary service configuration udpate. 43 */ 44 @Override utConfigurationUpdated(IImsUt ut, int id)45 public void utConfigurationUpdated(IImsUt ut, int id) throws RemoteException { 46 } 47 48 @Override utConfigurationUpdateFailed(IImsUt ut, int id, ImsReasonInfo error)49 public void utConfigurationUpdateFailed(IImsUt ut, int id, ImsReasonInfo error) 50 throws RemoteException { 51 } 52 53 /** 54 * Notifies the result of the supplementary service configuration query. 55 */ 56 @Override utConfigurationQueried(IImsUt ut, int id, Bundle ssInfo)57 public void utConfigurationQueried(IImsUt ut, int id, Bundle ssInfo) throws RemoteException { 58 } 59 60 @Override utConfigurationQueryFailed(IImsUt ut, int id, ImsReasonInfo error)61 public void utConfigurationQueryFailed(IImsUt ut, int id, ImsReasonInfo error) 62 throws RemoteException { 63 } 64 65 /** 66 * Notifies the status of the call barring supplementary service. 67 */ 68 @Override utConfigurationCallBarringQueried(IImsUt ut, int id, ImsSsInfo[] cbInfo)69 public void utConfigurationCallBarringQueried(IImsUt ut, int id, ImsSsInfo[] cbInfo) 70 throws RemoteException { 71 } 72 73 /** 74 * Notifies the status of the call forwarding supplementary service. 75 */ 76 @Override utConfigurationCallForwardQueried(IImsUt ut, int id, ImsCallForwardInfo[] cfInfo)77 public void utConfigurationCallForwardQueried(IImsUt ut, int id, ImsCallForwardInfo[] cfInfo) 78 throws RemoteException { 79 } 80 81 /** 82 * Notifies the status of the call waiting supplementary service. 83 */ 84 @Override utConfigurationCallWaitingQueried(IImsUt ut, int id, ImsSsInfo[] cwInfo)85 public void utConfigurationCallWaitingQueried(IImsUt ut, int id, ImsSsInfo[] cwInfo) 86 throws RemoteException { 87 } 88 } 89