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 17package com.android.internal.telephony.sip; 18 19import android.content.Context; 20import android.os.Handler; 21import android.os.Message; 22 23import com.android.internal.telephony.BaseCommands; 24import com.android.internal.telephony.CommandsInterface; 25import com.android.internal.telephony.UUSInfo; 26import 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 */ 32class 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 getRegistrationState (Message result) { 148 } 149 150 public void getGPRSRegistrationState (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 setupDefaultPDP(String apn, String user, String password, 188 Message result) { 189 } 190 191 public void deactivateDefaultPDP(int cid, Message result) { 192 } 193 194 public void setupDataCall(String radioTechnology, String profile, 195 String apn, String user, String password, String authType, 196 String protcol, Message result) { 197 } 198 199 public void deactivateDataCall(int cid, Message result) { 200 } 201 202 public void setRadioPower(boolean on, Message result) { 203 } 204 205 public void setSuppServiceNotifications(boolean enable, Message result) { 206 } 207 208 public void acknowledgeLastIncomingGsmSms(boolean success, int cause, 209 Message result) { 210 } 211 212 public void acknowledgeLastIncomingCdmaSms(boolean success, int cause, 213 Message result) { 214 } 215 216 217 public void iccIO (int command, int fileid, String path, int p1, int p2, 218 int p3, String data, String pin2, Message result) { 219 } 220 221 public void getCLIR(Message result) { 222 } 223 224 public void setCLIR(int clirMode, Message result) { 225 } 226 227 public void queryCallWaiting(int serviceClass, Message response) { 228 } 229 230 public void setCallWaiting(boolean enable, int serviceClass, 231 Message response) { 232 } 233 234 public void setNetworkSelectionModeAutomatic(Message response) { 235 } 236 237 public void setNetworkSelectionModeManual( 238 String operatorNumeric, Message response) { 239 } 240 241 public void getNetworkSelectionMode(Message response) { 242 } 243 244 public void getAvailableNetworks(Message response) { 245 } 246 247 public void setCallForward(int action, int cfReason, int serviceClass, 248 String number, int timeSeconds, Message response) { 249 } 250 251 public void queryCallForwardStatus(int cfReason, int serviceClass, 252 String number, Message response) { 253 } 254 255 public void queryCLIP(Message response) { 256 } 257 258 public void getBasebandVersion (Message response) { 259 } 260 261 public void queryFacilityLock (String facility, String password, 262 int serviceClass, Message response) { 263 } 264 265 public void setFacilityLock (String facility, boolean lockState, 266 String password, int serviceClass, Message response) { 267 } 268 269 public void sendUSSD (String ussdString, Message response) { 270 } 271 272 public void cancelPendingUssd (Message response) { 273 } 274 275 public void resetRadio(Message result) { 276 } 277 278 public void invokeOemRilRequestRaw(byte[] data, Message response) { 279 } 280 281 public void invokeOemRilRequestStrings(String[] strings, Message response) { 282 } 283 284 public void setBandMode (int bandMode, Message response) { 285 } 286 287 public void queryAvailableBandMode (Message response) { 288 } 289 290 public void sendTerminalResponse(String contents, Message response) { 291 } 292 293 public void sendEnvelope(String contents, Message response) { 294 } 295 296 public void handleCallSetupRequestFromSim( 297 boolean accept, Message response) { 298 } 299 300 public void setPreferredNetworkType(int networkType , Message response) { 301 } 302 303 public void getPreferredNetworkType(Message response) { 304 } 305 306 public void getNeighboringCids(Message response) { 307 } 308 309 public void setLocationUpdates(boolean enable, Message response) { 310 } 311 312 public void getSmscAddress(Message result) { 313 } 314 315 public void setSmscAddress(String address, Message result) { 316 } 317 318 public void reportSmsMemoryStatus(boolean available, Message result) { 319 } 320 321 public void reportStkServiceIsRunning(Message result) { 322 } 323 324 public void getGsmBroadcastConfig(Message response) { 325 } 326 327 public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response) { 328 } 329 330 public void setGsmBroadcastActivation(boolean activate, Message response) { 331 } 332 333 // ***** Methods for CDMA support 334 public void getDeviceIdentity(Message response) { 335 } 336 337 public void getCDMASubscription(Message response) { 338 } 339 340 public void setPhoneType(int phoneType) { //Set by CDMAPhone and GSMPhone constructor 341 } 342 343 public void queryCdmaRoamingPreference(Message response) { 344 } 345 346 public void setCdmaRoamingPreference(int cdmaRoamingType, Message response) { 347 } 348 349 public void setCdmaSubscription(int cdmaSubscription , Message response) { 350 } 351 352 public void queryTTYMode(Message response) { 353 } 354 355 public void setTTYMode(int ttyMode, Message response) { 356 } 357 358 public void sendCDMAFeatureCode(String FeatureCode, Message response) { 359 } 360 361 public void getCdmaBroadcastConfig(Message response) { 362 } 363 364 public void setCdmaBroadcastConfig(int[] configValuesArray, Message response) { 365 } 366 367 public void setCdmaBroadcastActivation(boolean activate, Message response) { 368 } 369 370 public void exitEmergencyCallbackMode(Message response) { 371 } 372} 373