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