PageRenderTime 53ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/SipCommandInterface.java

https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk
Java | 424 lines | 280 code | 123 blank | 21 comment | 0 complexity | 88ae8a11c725795df3e13e0a8be2db3e 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(String pin, Message result) {
  37. }
  38. public void supplyIccPuk(String puk, String newPin, Message result) {
  39. }
  40. public void supplyIccPin2(String pin, Message result) {
  41. }
  42. public void supplyIccPuk2(String puk, String newPin2, Message result) {
  43. }
  44. public void changeIccPin(String oldPin, String newPin, Message result) {
  45. }
  46. public void changeIccPin2(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(Message result) {
  65. }
  66. public void getIMSIForApp(String aid, Message result) {
  67. }
  68. public void getIMEI(Message result) {
  69. }
  70. public void getIMEISV(Message result) {
  71. }
  72. public void hangupConnection (int gsmIndex, Message result) {
  73. }
  74. public void hangupWaitingOrBackground (Message result) {
  75. }
  76. public void hangupForegroundResumeBackground (Message result) {
  77. }
  78. public void switchWaitingOrHoldingAndActive (Message result) {
  79. }
  80. public void conference (Message result) {
  81. }
  82. public void setPreferredVoicePrivacy(boolean enable, Message result) {
  83. }
  84. public void getPreferredVoicePrivacy(Message result) {
  85. }
  86. public void separateConnection (int gsmIndex, Message result) {
  87. }
  88. public void acceptCall (Message result) {
  89. }
  90. public void rejectCall (Message result) {
  91. }
  92. public void explicitCallTransfer (Message result) {
  93. }
  94. public void getLastCallFailCause (Message result) {
  95. }
  96. /** @deprecated */
  97. public void getLastPdpFailCause (Message result) {
  98. }
  99. public void getLastDataCallFailCause (Message result) {
  100. }
  101. public void setMute (boolean enableMute, Message response) {
  102. }
  103. public void getMute (Message response) {
  104. }
  105. public void getSignalStrength (Message result) {
  106. }
  107. public void getVoiceRegistrationState (Message result) {
  108. }
  109. public void getDataRegistrationState (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 deleteSmsOnSim(int index, Message response) {
  127. }
  128. public void deleteSmsOnRuim(int index, Message response) {
  129. }
  130. public void writeSmsToSim(int status, String smsc, String pdu, Message response) {
  131. }
  132. public void writeSmsToRuim(int status, String pdu, Message response) {
  133. }
  134. public void setupDataCall(String radioTechnology, String profile,
  135. String apn, String user, String password, String authType,
  136. String protocol, Message result) {
  137. }
  138. public void deactivateDataCall(int cid, int reason, Message result) {
  139. }
  140. public void setRadioPower(boolean on, Message result) {
  141. }
  142. public void setSuppServiceNotifications(boolean enable, Message result) {
  143. }
  144. public void acknowledgeLastIncomingGsmSms(boolean success, int cause,
  145. Message result) {
  146. }
  147. public void acknowledgeLastIncomingCdmaSms(boolean success, int cause,
  148. Message result) {
  149. }
  150. public void acknowledgeIncomingGsmSmsWithPdu(boolean success, String ackPdu,
  151. Message result) {
  152. }
  153. public void iccIO (int command, int fileid, String path, int p1, int p2,
  154. int p3, String data, String pin2, Message result) {
  155. }
  156. public void iccIOForApp (int command, int fileid, String path, int p1, int p2,
  157. int p3, String data, String pin2, String aid, Message result) {
  158. }
  159. public void getCLIR(Message result) {
  160. }
  161. public void setCLIR(int clirMode, Message result) {
  162. }
  163. public void queryCallWaiting(int serviceClass, Message response) {
  164. }
  165. public void setCallWaiting(boolean enable, int serviceClass,
  166. Message response) {
  167. }
  168. public void setNetworkSelectionModeAutomatic(Message response) {
  169. }
  170. public void setNetworkSelectionModeManual(
  171. String operatorNumeric, Message response) {
  172. }
  173. public void getNetworkSelectionMode(Message response) {
  174. }
  175. public void getAvailableNetworks(Message response) {
  176. }
  177. public void setCallForward(int action, int cfReason, int serviceClass,
  178. String number, int timeSeconds, Message response) {
  179. }
  180. public void queryCallForwardStatus(int cfReason, int serviceClass,
  181. String number, Message response) {
  182. }
  183. public void queryCLIP(Message response) {
  184. }
  185. public void getBasebandVersion (Message response) {
  186. }
  187. @Override
  188. public void queryFacilityLock(String facility, String password,
  189. int serviceClass, Message response) {
  190. }
  191. @Override
  192. public void queryFacilityLockForApp(String facility, String password,
  193. int serviceClass, String appId, Message response) {
  194. }
  195. @Override
  196. public void setFacilityLock(String facility, boolean lockState,
  197. String password, int serviceClass, Message response) {
  198. }
  199. @Override
  200. public void setFacilityLockForApp(String facility, boolean lockState,
  201. String password, int serviceClass, String appId, Message response) {
  202. }
  203. public void sendUSSD (String ussdString, Message response) {
  204. }
  205. public void cancelPendingUssd (Message response) {
  206. }
  207. public void resetRadio(Message result) {
  208. }
  209. public void invokeOemRilRequestRaw(byte[] data, Message response) {
  210. }
  211. public void invokeOemRilRequestStrings(String[] strings, Message response) {
  212. }
  213. public void setBandMode (int bandMode, Message response) {
  214. }
  215. public void queryAvailableBandMode (Message response) {
  216. }
  217. public void sendTerminalResponse(String contents, Message response) {
  218. }
  219. public void sendEnvelope(String contents, Message response) {
  220. }
  221. public void sendEnvelopeWithStatus(String contents, Message response) {
  222. }
  223. public void handleCallSetupRequestFromSim(
  224. boolean accept, Message response) {
  225. }
  226. public void setPreferredNetworkType(int networkType , Message response) {
  227. }
  228. public void getPreferredNetworkType(Message response) {
  229. }
  230. public void getNeighboringCids(Message response) {
  231. }
  232. public void setLocationUpdates(boolean enable, Message response) {
  233. }
  234. public void getSmscAddress(Message result) {
  235. }
  236. public void setSmscAddress(String address, Message result) {
  237. }
  238. public void reportSmsMemoryStatus(boolean available, Message result) {
  239. }
  240. public void reportStkServiceIsRunning(Message result) {
  241. }
  242. @Override
  243. public void getCdmaSubscriptionSource(Message response) {
  244. }
  245. public void getGsmBroadcastConfig(Message response) {
  246. }
  247. public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response) {
  248. }
  249. public void setGsmBroadcastActivation(boolean activate, Message response) {
  250. }
  251. // ***** Methods for CDMA support
  252. public void getDeviceIdentity(Message response) {
  253. }
  254. public void getCDMASubscription(Message response) {
  255. }
  256. public void setPhoneType(int phoneType) { //Set by CDMAPhone and GSMPhone constructor
  257. }
  258. public void queryCdmaRoamingPreference(Message response) {
  259. }
  260. public void setCdmaRoamingPreference(int cdmaRoamingType, Message response) {
  261. }
  262. public void setCdmaSubscriptionSource(int cdmaSubscription , Message response) {
  263. }
  264. public void queryTTYMode(Message response) {
  265. }
  266. public void setTTYMode(int ttyMode, Message response) {
  267. }
  268. public void sendCDMAFeatureCode(String FeatureCode, Message response) {
  269. }
  270. public void getCdmaBroadcastConfig(Message response) {
  271. }
  272. public void setCdmaBroadcastConfig(int[] configValuesArray, Message response) {
  273. }
  274. public void setCdmaBroadcastActivation(boolean activate, Message response) {
  275. }
  276. public void exitEmergencyCallbackMode(Message response) {
  277. }
  278. @Override
  279. public void supplyIccPinForApp(String pin, String aid, Message response) {
  280. }
  281. @Override
  282. public void supplyIccPukForApp(String puk, String newPin, String aid, Message response) {
  283. }
  284. @Override
  285. public void supplyIccPin2ForApp(String pin2, String aid, Message response) {
  286. }
  287. @Override
  288. public void supplyIccPuk2ForApp(String puk2, String newPin2, String aid, Message response) {
  289. }
  290. @Override
  291. public void changeIccPinForApp(String oldPin, String newPin, String aidPtr, Message response) {
  292. }
  293. @Override
  294. public void changeIccPin2ForApp(String oldPin2, String newPin2, String aidPtr,
  295. Message response) {
  296. }
  297. public void requestIsimAuthentication(String nonce, Message response) {
  298. }
  299. public void getVoiceRadioTechnology(Message result) {
  300. }
  301. }