Home | History | Annotate | Download | only in stub
      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.internal.IImsUt;
     23 import com.android.ims.internal.IImsUtListener;
     24 
     25 /**
     26  * Base implementation of ImsUt, which implements stub versions of the methods
     27  * in the IImsUt AIDL. Override the methods that your implementation of ImsUt supports.
     28  *
     29  * DO NOT remove or change the existing APIs, only add new ones to this Base implementation or you
     30  * will break other implementations of ImsUt maintained by other ImsServices.
     31  *
     32  * Provides the Ut interface interworking to get/set the supplementary service configuration.
     33  *
     34  * @hide
     35  */
     36 
     37 public class ImsUtImplBase extends IImsUt.Stub {
     38 
     39     /**
     40      * Closes the object. This object is not usable after being closed.
     41      */
     42     @Override
     43     public void close() throws RemoteException {
     44 
     45     }
     46 
     47     /**
     48      * Retrieves the configuration of the call barring.
     49      */
     50     @Override
     51     public int queryCallBarring(int cbType) throws RemoteException {
     52         return -1;
     53     }
     54 
     55     /**
     56      * Retrieves the configuration of the call forward.
     57      */
     58     @Override
     59     public int queryCallForward(int condition, String number) throws RemoteException {
     60         return -1;
     61     }
     62 
     63     /**
     64      * Retrieves the configuration of the call waiting.
     65      */
     66     @Override
     67     public int queryCallWaiting() throws RemoteException {
     68         return -1;
     69     }
     70 
     71     /**
     72      * Retrieves the default CLIR setting.
     73      */
     74     @Override
     75     public int queryCLIR() throws RemoteException {
     76         return -1;
     77     }
     78 
     79     /**
     80      * Retrieves the CLIP call setting.
     81      */
     82     @Override
     83     public int queryCLIP() throws RemoteException {
     84         return -1;
     85     }
     86 
     87     /**
     88      * Retrieves the COLR call setting.
     89      */
     90     @Override
     91     public int queryCOLR() throws RemoteException {
     92         return -1;
     93     }
     94 
     95     /**
     96      * Retrieves the COLP call setting.
     97      */
     98     @Override
     99     public int queryCOLP() throws RemoteException {
    100         return -1;
    101     }
    102 
    103     /**
    104      * Updates or retrieves the supplementary service configuration.
    105      */
    106     @Override
    107     public int transact(Bundle ssInfo) throws RemoteException {
    108         return -1;
    109     }
    110 
    111     /**
    112      * Updates the configuration of the call barring.
    113      */
    114     @Override
    115     public int updateCallBarring(int cbType, int action, String[] barrList) throws RemoteException {
    116         return -1;
    117     }
    118 
    119     /**
    120      * Updates the configuration of the call forward.
    121      */
    122     @Override
    123     public int updateCallForward(int action, int condition, String number, int serviceClass,
    124             int timeSeconds) throws RemoteException {
    125         return 0;
    126     }
    127 
    128     /**
    129      * Updates the configuration of the call waiting.
    130      */
    131     @Override
    132     public int updateCallWaiting(boolean enable, int serviceClass) throws RemoteException {
    133         return -1;
    134     }
    135 
    136     /**
    137      * Updates the configuration of the CLIR supplementary service.
    138      */
    139     @Override
    140     public int updateCLIR(int clirMode) throws RemoteException {
    141         return -1;
    142     }
    143 
    144     /**
    145      * Updates the configuration of the CLIP supplementary service.
    146      */
    147     @Override
    148     public int updateCLIP(boolean enable) throws RemoteException {
    149         return -1;
    150     }
    151 
    152     /**
    153      * Updates the configuration of the COLR supplementary service.
    154      */
    155     @Override
    156     public int updateCOLR(int presentation) throws RemoteException {
    157         return -1;
    158     }
    159 
    160     /**
    161      * Updates the configuration of the COLP supplementary service.
    162      */
    163     @Override
    164     public int updateCOLP(boolean enable) throws RemoteException {
    165         return -1;
    166     }
    167 
    168     /**
    169      * Sets the listener.
    170      */
    171     @Override
    172     public void setListener(IImsUtListener listener) throws RemoteException {
    173     }
    174 }
    175