diff options
author | Nick Pelly <npelly@google.com> | 2010-10-12 13:00:50 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-10-12 18:37:26 -0700 |
commit | 590b73bc5b8e5f7b59bff1d9264a52388a5162e6 (patch) | |
tree | 113139d8fd0d2b8a0e319e9f766e180a0f1e084f /core/java/android/nfc/INfcAdapter.aidl | |
parent | 45738f6700cff689eacda7c8192b76939ba20591 (diff) | |
download | frameworks_base-590b73bc5b8e5f7b59bff1d9264a52388a5162e6.zip frameworks_base-590b73bc5b8e5f7b59bff1d9264a52388a5162e6.tar.gz frameworks_base-590b73bc5b8e5f7b59bff1d9264a52388a5162e6.tar.bz2 |
NFC API revision round 2.
- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.
Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'core/java/android/nfc/INfcAdapter.aidl')
-rw-r--r-- | core/java/android/nfc/INfcAdapter.aidl | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/core/java/android/nfc/INfcAdapter.aidl b/core/java/android/nfc/INfcAdapter.aidl new file mode 100644 index 0000000..7743ceb --- /dev/null +++ b/core/java/android/nfc/INfcAdapter.aidl @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2010 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.nfc; + +import android.nfc.NdefMessage; +import android.nfc.Tag; +import android.nfc.ILlcpSocket; +import android.nfc.ILlcpServiceSocket; +import android.nfc.ILlcpConnectionlessSocket; +import android.nfc.INfcTag; +import android.nfc.IP2pTarget; +import android.nfc.IP2pInitiator; + +/** + * @hide + */ +interface INfcAdapter +{ + ILlcpSocket getLlcpInterface(); + ILlcpConnectionlessSocket getLlcpConnectionlessInterface(); + ILlcpServiceSocket getLlcpServiceInterface(); + INfcTag getNfcTagInterface(); + IP2pTarget getP2pTargetInterface(); + IP2pInitiator getP2pInitiatorInterface(); + + // NfcAdapter-class related methods + boolean isEnabled(); + NdefMessage localGet(); + void localSet(in NdefMessage message); + void openTagConnection(in Tag tag); + + // Non-public methods + // TODO: check and complete + int createLlcpConnectionlessSocket(int sap); + int createLlcpServiceSocket(int sap, String sn, int miu, int rw, int linearBufferLength); + int createLlcpSocket(int sap, int miu, int rw, int linearBufferLength); + int deselectSecureElement(); + boolean disable(); + boolean enable(); + String getProperties(String param); + int[] getSecureElementList(); + int getSelectedSecureElement(); + int selectSecureElement(int seId); + int setProperties(String param, String value); +}
\ No newline at end of file |