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