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