PageRenderTime 63ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/telephony/java/com/android/internal/telephony/sip/SipCommandInterface.java

https://github.com/semiecho/android_frameworks_base
Java | 403 lines | 260 code | 122 blank | 21 comment | 0 complexity | 507f4141db405b48e77a844755d001df MD5 | raw file
  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. package com.android.internal.telephony.sip;
  17. import android.content.Context;
  18. import android.os.Handler;
  19. import android.os.Message;
  20. import com.android.internal.telephony.BaseCommands;
  21. import com.android.internal.telephony.CommandsInterface;
  22. import com.android.internal.telephony.UUSInfo;
  23. import com.android.internal.telephony.gsm.SmsBroadcastConfigInfo;
  24. /**
  25. * SIP doesn't need CommandsInterface. The class does nothing but made to work
  26. * with PhoneBase's constructor.
  27. */
  28. class SipCommandInterface extends BaseCommands implements CommandsInterface {
  29. SipCommandInterface(Context context) {
  30. super(context);
  31. }
  32. @Override public void setOnNITZTime(Handler h, int what, Object obj) {
  33. }
  34. public void getIccCardStatus(Message result) {
  35. }
  36. public void supplyIccPin(int slot, String aid, String pin, Message result) {
  37. }
  38. public void supplyIccPuk(int slot, String aid, String puk, String newPin, Message result) {
  39. }
  40. public void supplyIccPin2(int slot, String aid, String pin, Message result) {
  41. }
  42. public void supplyIccPuk2(int slot, String aid, String puk, String newPin2, Message result) {
  43. }
  44. public void changeIccPin(int slot, String aid, String oldPin, String newPin, Message result) {
  45. }
  46. public void changeIccPin2(int slot, String aid, String oldPin2, String newPin2, Message result) {
  47. }
  48. public void changeBarringPassword(String facility, String oldPwd,
  49. String newPwd, Message result) {
  50. }
  51. public void supplyNetworkDepersonalization(String netpin, Message result) {
  52. }
  53. public void getCurrentCalls(Message result) {
  54. }
  55. @Deprecated public void getPDPContextList(Message result) {
  56. }
  57. public void getDataCallList(Message result) {
  58. }
  59. public void dial(String address, int clirMode, Message result) {
  60. }
  61. public void dial(String address, int clirMode, UUSInfo uusInfo,
  62. Message result) {
  63. }
  64. public void getIMSI(int slot, String aid, Message result) {
  65. }
  66. public void getIMEI(Message result) {
  67. }
  68. public void getIMEISV(Message result) {
  69. }
  70. public void hangupConnection (int gsmIndex, Message result) {
  71. }
  72. public void hangupWaitingOrBackground (Message result) {
  73. }
  74. public void hangupForegroundResumeBackground (Message result) {
  75. }
  76. public void switchWaitingOrHoldingAndActive (Message result) {
  77. }
  78. public void conference (Message result) {
  79. }
  80. public void setPreferredVoicePrivacy(boolean enable, Message result) {
  81. }
  82. public void getPreferredVoicePrivacy(Message result) {
  83. }
  84. public void separateConnection (int gsmIndex, Message result) {
  85. }
  86. public void acceptCall (Message result) {
  87. }
  88. public void rejectCall (Message result) {
  89. }
  90. public void explicitCallTransfer (Message result) {
  91. }
  92. public void getLastCallFailCause (Message result) {
  93. }
  94. /** @deprecated */
  95. public void getLastPdpFailCause (Message result) {
  96. }
  97. public void getLastDataCallFailCause (Message result) {
  98. }
  99. public void setMute (boolean enableMute, Message response) {
  100. }
  101. public void getMute (Message response) {
  102. }
  103. public void getSignalStrength (Message result) {
  104. }
  105. public void getRegistrationState (Message result) {
  106. }
  107. public void getDataRegistrationState (Message response) {
  108. }
  109. public void getGPRSRegistrationState (Message result) {
  110. }
  111. public void getOperator(Message result) {
  112. }
  113. public void sendDtmf(char c, Message result) {
  114. }
  115. public void startDtmf(char c, Message result) {
  116. }
  117. public void stopDtmf(Message result) {
  118. }
  119. public void sendBurstDtmf(String dtmfString, int on, int off,
  120. Message result) {
  121. }
  122. public void sendSMS (String smscPDU, String pdu, Message result) {
  123. }
  124. public void sendCdmaSms(byte[] pdu, Message result) {
  125. }
  126. public void sendImsGsmSms (String smscPDU, String pdu, Message response) {
  127. }
  128. public void sendImsCdmaSms(byte[] pdu, Message response) {
  129. }
  130. public void deleteSmsOnSim(int index, Message response) {
  131. }
  132. public void deleteSmsOnRuim(int index, Message response) {
  133. }
  134. public void writeSmsToSim(int status, String smsc, String pdu, Message response) {
  135. }
  136. public void writeSmsToRuim(int status, String pdu, Message response) {
  137. }
  138. public void setupDefaultPDP(String apn, String user, String password,
  139. Message result) {
  140. }
  141. public void deactivateDefaultPDP(int cid, Message result) {
  142. }
  143. public void setupDataCall(String radioTechnology, String profile,
  144. String apn, String user, String password, String authType,
  145. String ipVersion,
  146. Message result) {
  147. }
  148. public void deactivateDataCall(int cid, Message result) {
  149. }
  150. public void setRadioPower(boolean on, Message result) {
  151. }
  152. public void setSuppServiceNotifications(boolean enable, Message result) {
  153. }
  154. public void acknowledgeLastIncomingGsmSms(boolean success, int cause,
  155. Message result) {
  156. }
  157. public void acknowledgeLastIncomingCdmaSms(boolean success, int cause,
  158. Message result) {
  159. }
  160. public void iccIO(int slot, String aid, int command, int fileid, String path, int p1, int p2, int p3,
  161. String data, String pin2, Message response) {
  162. }
  163. public void getCLIR(Message result) {
  164. }
  165. public void setCLIR(int clirMode, Message result) {
  166. }
  167. public void queryCallWaiting(int serviceClass, Message response) {
  168. }
  169. public void setCallWaiting(boolean enable, int serviceClass,
  170. Message response) {
  171. }
  172. public void setNetworkSelectionModeAutomatic(Message response) {
  173. }
  174. public void setNetworkSelectionModeManual(
  175. String operatorNumeric, Message response) {
  176. }
  177. public void getNetworkSelectionMode(Message response) {
  178. }
  179. public void getAvailableNetworks(Message response) {
  180. }
  181. public void setCallForward(int action, int cfReason, int serviceClass,
  182. String number, int timeSeconds, Message response) {
  183. }
  184. public void queryCallForwardStatus(int cfReason, int serviceClass,
  185. String number, Message response) {
  186. }
  187. public void queryCLIP(Message response) {
  188. }
  189. public void getBasebandVersion (Message response) {
  190. }
  191. public void queryFacilityLock (int slot, String aid, String facility, String password, int serviceClass,
  192. Message response) {
  193. }
  194. public void setFacilityLock (int slot, String aid, String facility, boolean lockState, String password,
  195. int serviceClass, Message response) {
  196. }
  197. public void sendUSSD (String ussdString, Message response) {
  198. }
  199. public void cancelPendingUssd (Message response) {
  200. }
  201. public void resetRadio(Message result) {
  202. }
  203. public void invokeOemRilRequestRaw(byte[] data, Message response) {
  204. }
  205. public void invokeOemRilRequestStrings(String[] strings, Message response) {
  206. }
  207. public void setBandMode (int bandMode, Message response) {
  208. }
  209. public void queryAvailableBandMode (Message response) {
  210. }
  211. public void sendTerminalResponse(String contents, Message response) {
  212. }
  213. public void sendEnvelope(String contents, Message response) {
  214. }
  215. public void handleCallSetupRequestFromSim(
  216. boolean accept, Message response) {
  217. }
  218. public void setPreferredNetworkType(int networkType , Message response) {
  219. }
  220. public void getPreferredNetworkType(Message response) {
  221. }
  222. public void getNeighboringCids(Message response) {
  223. }
  224. public void setLocationUpdates(boolean enable, Message response) {
  225. }
  226. public void getSmscAddress(Message result) {
  227. }
  228. public void setSmscAddress(String address, Message result) {
  229. }
  230. public void reportSmsMemoryStatus(boolean available, Message result) {
  231. }
  232. public void reportStkServiceIsRunning(Message result) {
  233. }
  234. public void getGsmBroadcastConfig(Message response) {
  235. }
  236. public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response) {
  237. }
  238. public void setGsmBroadcastActivation(boolean activate, Message response) {
  239. }
  240. public void getVoiceRadioTechnology(Message result) {
  241. }
  242. // ***** Methods for CDMA support
  243. public void getCdmaSubscriptionSource(Message result) {
  244. }
  245. public void getDeviceIdentity(Message response) {
  246. }
  247. public void getCDMASubscription(Message response) {
  248. }
  249. public void setPhoneType(int phoneType) { //Set by CDMAPhone and GSMPhone constructor
  250. }
  251. public void queryCdmaRoamingPreference(Message response) {
  252. }
  253. public void setCdmaRoamingPreference(int cdmaRoamingType, Message response) {
  254. }
  255. public void setCdmaSubscription(int cdmaSubscription , Message response) {
  256. }
  257. public void getImsRegistrationState (Message result) {
  258. }
  259. public void getCdmaPrlVersion(Message result) {
  260. }
  261. public void queryTTYMode(Message response) {
  262. }
  263. public void setTTYMode(int ttyMode, Message response) {
  264. }
  265. public void sendCDMAFeatureCode(String FeatureCode, Message response) {
  266. }
  267. public void getCdmaBroadcastConfig(Message response) {
  268. }
  269. public void setCdmaBroadcastConfig(int[] configValuesArray, Message response) {
  270. }
  271. public void setCdmaBroadcastActivation(boolean activate, Message response) {
  272. }
  273. public void exitEmergencyCallbackMode(Message response) {
  274. }
  275. public void invokeDepersonalization(String pin, int type, Message response) {
  276. }
  277. public void getDataCallProfile(int appType, Message result) {
  278. }
  279. public void setRilPowerOff(Message result) {
  280. }
  281. }