2 * Copyright (C) 2010 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 import android.app.PendingIntent;
20 import android.content.ComponentName;
21 import android.content.IntentFilter;
22 import android.nfc.NdefMessage;
23 import android.nfc.Tag;
24 import android.nfc.TechListParcel;
25 import android.nfc.ILlcpSocket;
26 import android.nfc.ILlcpServiceSocket;
27 import android.nfc.ILlcpConnectionlessSocket;
28 import android.nfc.INfcTag;
29 import android.nfc.IP2pTarget;
30 import android.nfc.IP2pInitiator;
31 import android.nfc.INfcSecureElement;
38 ILlcpSocket getLlcpInterface();
39 ILlcpConnectionlessSocket getLlcpConnectionlessInterface();
40 ILlcpServiceSocket getLlcpServiceInterface();
41 INfcTag getNfcTagInterface();
42 IP2pTarget getP2pTargetInterface();
43 IP2pInitiator getP2pInitiatorInterface();
44 INfcSecureElement getNfcSecureElementInterface();
46 // NfcAdapter-class related methods
48 NdefMessage localGet();
49 void localSet(in NdefMessage message);
50 void openTagConnection(in Tag tag);
51 void enableForegroundDispatch(in ComponentName activity, in PendingIntent intent,
52 in IntentFilter[] filters, in TechListParcel techLists);
53 void disableForegroundDispatch(in ComponentName activity);
54 void enableForegroundNdefPush(in ComponentName activity, in NdefMessage msg);
55 void disableForegroundNdefPush(in ComponentName activity);
58 // TODO: check and complete
59 int createLlcpConnectionlessSocket(int sap);
60 int createLlcpServiceSocket(int sap, String sn, int miu, int rw, int linearBufferLength);
61 int createLlcpSocket(int sap, int miu, int rw, int linearBufferLength);
62 int deselectSecureElement();
65 String getProperties(String param);
66 int[] getSecureElementList();
67 int getSelectedSecureElement();
68 int selectSecureElement(int seId);
69 int setProperties(String param, String value);