Home | History | Annotate | Download | only in sip
      1 /*
      2  * Copyright (C) 2010 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 com.android.internal.telephony.sip;
     18 
     19 import android.content.Context;
     20 import android.os.Handler;
     21 import android.os.Message;
     22 
     23 import com.android.internal.telephony.BaseCommands;
     24 import com.android.internal.telephony.CommandsInterface;
     25 import com.android.internal.telephony.UUSInfo;
     26 import com.android.internal.telephony.gsm.SmsBroadcastConfigInfo;
     27 
     28 /**
     29  * SIP doesn't need CommandsInterface. The class does nothing but made to work
     30  * with PhoneBase's constructor.
     31  */
     32 class SipCommandInterface extends BaseCommands implements CommandsInterface {
     33     SipCommandInterface(Context context) {
     34         super(context);
     35     }
     36 
     37     @Override public void setOnNITZTime(Handler h, int what, Object obj) {
     38     }
     39 
     40     public void getIccCardStatus(Message result) {
     41     }
     42 
     43     public void supplyIccPin(String pin, Message result) {
     44     }
     45 
     46     public void supplyIccPuk(String puk, String newPin, Message result) {
     47     }
     48 
     49     public void supplyIccPin2(String pin, Message result) {
     50     }
     51 
     52     public void supplyIccPuk2(String puk, String newPin2, Message result) {
     53     }
     54 
     55     public void changeIccPin(String oldPin, String newPin, Message result) {
     56     }
     57 
     58     public void changeIccPin2(String oldPin2, String newPin2, Message result) {
     59     }
     60 
     61     public void changeBarringPassword(String facility, String oldPwd,
     62             String newPwd, Message result) {
     63     }
     64 
     65     public void supplyNetworkDepersonalization(String netpin, Message result) {
     66     }
     67 
     68     public void getCurrentCalls(Message result) {
     69     }
     70 
     71     @Deprecated public void getPDPContextList(Message result) {
     72     }
     73 
     74     public void getDataCallList(Message result) {
     75     }
     76 
     77     public void dial(String address, int clirMode, Message result) {
     78     }
     79 
     80     public void dial(String address, int clirMode, UUSInfo uusInfo,
     81             Message result) {
     82     }
     83 
     84     public void getIMSI(Message result) {
     85     }
     86 
     87     public void getIMEI(Message result) {
     88     }
     89 
     90     public void getIMEISV(Message result) {
     91     }
     92 
     93 
     94     public void hangupConnection (int gsmIndex, Message result) {
     95     }
     96 
     97     public void hangupWaitingOrBackground (Message result) {
     98     }
     99 
    100     public void hangupForegroundResumeBackground (Message result) {
    101     }
    102 
    103     public void switchWaitingOrHoldingAndActive (Message result) {
    104     }
    105 
    106     public void conference (Message result) {
    107     }
    108 
    109 
    110     public void setPreferredVoicePrivacy(boolean enable, Message result) {
    111     }
    112 
    113     public void getPreferredVoicePrivacy(Message result) {
    114     }
    115 
    116     public void separateConnection (int gsmIndex, Message result) {
    117     }
    118 
    119     public void acceptCall (Message result) {
    120     }
    121 
    122     public void rejectCall (Message result) {
    123     }
    124 
    125     public void explicitCallTransfer (Message result) {
    126     }
    127 
    128     public void getLastCallFailCause (Message result) {
    129     }
    130 
    131     /** @deprecated */
    132     public void getLastPdpFailCause (Message result) {
    133     }
    134 
    135     public void getLastDataCallFailCause (Message result) {
    136     }
    137 
    138     public void setMute (boolean enableMute, Message response) {
    139     }
    140 
    141     public void getMute (Message response) {
    142     }
    143 
    144     public void getSignalStrength (Message result) {
    145     }
    146 
    147     public void getVoiceRegistrationState (Message result) {
    148     }
    149 
    150     public void getDataRegistrationState (Message result) {
    151     }
    152 
    153     public void getOperator(Message result) {
    154     }
    155 
    156     public void sendDtmf(char c, Message result) {
    157     }
    158 
    159     public void startDtmf(char c, Message result) {
    160     }
    161 
    162     public void stopDtmf(Message result) {
    163     }
    164 
    165     public void sendBurstDtmf(String dtmfString, int on, int off,
    166             Message result) {
    167     }
    168 
    169     public void sendSMS (String smscPDU, String pdu, Message result) {
    170     }
    171 
    172     public void sendCdmaSms(byte[] pdu, Message result) {
    173     }
    174 
    175     public void deleteSmsOnSim(int index, Message response) {
    176     }
    177 
    178     public void deleteSmsOnRuim(int index, Message response) {
    179     }
    180 
    181     public void writeSmsToSim(int status, String smsc, String pdu, Message response) {
    182     }
    183 
    184     public void writeSmsToRuim(int status, String pdu, Message response) {
    185     }
    186 
    187     public void setupDataCall(String radioTechnology, String profile,
    188             String apn, String user, String password, String authType,
    189             String protocol, Message result) {
    190     }
    191 
    192     public void deactivateDataCall(int cid, int reason, Message result) {
    193     }
    194 
    195     public void setRadioPower(boolean on, Message result) {
    196     }
    197 
    198     public void setSuppServiceNotifications(boolean enable, Message result) {
    199     }
    200 
    201     public void acknowledgeLastIncomingGsmSms(boolean success, int cause,
    202             Message result) {
    203     }
    204 
    205     public void acknowledgeLastIncomingCdmaSms(boolean success, int cause,
    206             Message result) {
    207     }
    208 
    209 
    210     public void iccIO (int command, int fileid, String path, int p1, int p2,
    211             int p3, String data, String pin2, Message result) {
    212     }
    213 
    214     public void getCLIR(Message result) {
    215     }
    216 
    217     public void setCLIR(int clirMode, Message result) {
    218     }
    219 
    220     public void queryCallWaiting(int serviceClass, Message response) {
    221     }
    222 
    223     public void setCallWaiting(boolean enable, int serviceClass,
    224             Message response) {
    225     }
    226 
    227     public void setNetworkSelectionModeAutomatic(Message response) {
    228     }
    229 
    230     public void setNetworkSelectionModeManual(
    231             String operatorNumeric, Message response) {
    232     }
    233 
    234     public void getNetworkSelectionMode(Message response) {
    235     }
    236 
    237     public void getAvailableNetworks(Message response) {
    238     }
    239 
    240     public void setCallForward(int action, int cfReason, int serviceClass,
    241                 String number, int timeSeconds, Message response) {
    242     }
    243 
    244     public void queryCallForwardStatus(int cfReason, int serviceClass,
    245             String number, Message response) {
    246     }
    247 
    248     public void queryCLIP(Message response) {
    249     }
    250 
    251     public void getBasebandVersion (Message response) {
    252     }
    253 
    254     @Override
    255     public void queryFacilityLock(String facility, String password,
    256             int serviceClass, Message response) {
    257     }
    258 
    259     @Override
    260     public void queryFacilityLockForApp(String facility, String password,
    261             int serviceClass, String appId, Message response) {
    262     }
    263 
    264     @Override
    265     public void setFacilityLock(String facility, boolean lockState,
    266             String password, int serviceClass, Message response) {
    267     }
    268 
    269     @Override
    270     public void setFacilityLockForApp(String facility, boolean lockState,
    271             String password, int serviceClass, String appId, Message response) {
    272     }
    273 
    274     public void sendUSSD (String ussdString, Message response) {
    275     }
    276 
    277     public void cancelPendingUssd (Message response) {
    278     }
    279 
    280     public void resetRadio(Message result) {
    281     }
    282 
    283     public void invokeOemRilRequestRaw(byte[] data, Message response) {
    284     }
    285 
    286     public void invokeOemRilRequestStrings(String[] strings, Message response) {
    287     }
    288 
    289     public void setBandMode (int bandMode, Message response) {
    290     }
    291 
    292     public void queryAvailableBandMode (Message response) {
    293     }
    294 
    295     public void sendTerminalResponse(String contents, Message response) {
    296     }
    297 
    298     public void sendEnvelope(String contents, Message response) {
    299     }
    300 
    301     public void handleCallSetupRequestFromSim(
    302             boolean accept, Message response) {
    303     }
    304 
    305     public void setPreferredNetworkType(int networkType , Message response) {
    306     }
    307 
    308     public void getPreferredNetworkType(Message response) {
    309     }
    310 
    311     public void getNeighboringCids(Message response) {
    312     }
    313 
    314     public void setLocationUpdates(boolean enable, Message response) {
    315     }
    316 
    317     public void getSmscAddress(Message result) {
    318     }
    319 
    320     public void setSmscAddress(String address, Message result) {
    321     }
    322 
    323     public void reportSmsMemoryStatus(boolean available, Message result) {
    324     }
    325 
    326     public void reportStkServiceIsRunning(Message result) {
    327     }
    328 
    329     @Override
    330     public void getCdmaSubscriptionSource(Message response) {
    331     }
    332 
    333     public void getGsmBroadcastConfig(Message response) {
    334     }
    335 
    336     public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response) {
    337     }
    338 
    339     public void setGsmBroadcastActivation(boolean activate, Message response) {
    340     }
    341 
    342     // ***** Methods for CDMA support
    343     public void getDeviceIdentity(Message response) {
    344     }
    345 
    346     public void getCDMASubscription(Message response) {
    347     }
    348 
    349     public void setPhoneType(int phoneType) { //Set by CDMAPhone and GSMPhone constructor
    350     }
    351 
    352     public void queryCdmaRoamingPreference(Message response) {
    353     }
    354 
    355     public void setCdmaRoamingPreference(int cdmaRoamingType, Message response) {
    356     }
    357 
    358     public void setCdmaSubscriptionSource(int cdmaSubscription , Message response) {
    359     }
    360 
    361     public void queryTTYMode(Message response) {
    362     }
    363 
    364     public void setTTYMode(int ttyMode, Message response) {
    365     }
    366 
    367     public void sendCDMAFeatureCode(String FeatureCode, Message response) {
    368     }
    369 
    370     public void getCdmaBroadcastConfig(Message response) {
    371     }
    372 
    373     public void setCdmaBroadcastConfig(int[] configValuesArray, Message response) {
    374     }
    375 
    376     public void setCdmaBroadcastActivation(boolean activate, Message response) {
    377     }
    378 
    379     public void exitEmergencyCallbackMode(Message response) {
    380     }
    381 
    382     @Override
    383     public void supplyIccPinForApp(String pin, String aid, Message response) {
    384     }
    385 
    386     @Override
    387     public void supplyIccPukForApp(String puk, String newPin, String aid, Message response) {
    388     }
    389 
    390     @Override
    391     public void supplyIccPin2ForApp(String pin2, String aid, Message response) {
    392     }
    393 
    394     @Override
    395     public void supplyIccPuk2ForApp(String puk2, String newPin2, String aid, Message response) {
    396     }
    397 
    398     @Override
    399     public void changeIccPinForApp(String oldPin, String newPin, String aidPtr, Message response) {
    400     }
    401 
    402     @Override
    403     public void changeIccPin2ForApp(String oldPin2, String newPin2, String aidPtr,
    404             Message response) {
    405     }
    406 
    407     public void requestIsimAuthentication(String nonce, Message response) {
    408     }
    409 }
    410