diff options
author | Jeff Hamilton <jham@android.com> | 2010-12-22 19:20:26 -0600 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2011-01-06 13:18:34 -0600 |
commit | be372d6462605010910e771cef15d5adccd0a59e (patch) | |
tree | aaddce760b3dd0f85743fe728aa6dc7e700e3e79 /core | |
parent | b5a8654dea9ea8443b41f8ff3668ae4074e13a07 (diff) | |
download | frameworks_base-be372d6462605010910e771cef15d5adccd0a59e.zip frameworks_base-be372d6462605010910e771cef15d5adccd0a59e.tar.gz frameworks_base-be372d6462605010910e771cef15d5adccd0a59e.tar.bz2 |
Make the new NFC APIs public.
Change-Id: Ia0acd9759d67683eaf1dc199dc2cc55e16a98e77
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/nfc/NfcAdapter.java | 3 | ||||
-rw-r--r-- | core/java/android/nfc/Tag.java | 15 | ||||
-rw-r--r-- | core/java/android/nfc/technology/IsoDep.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/MifareClassic.java | 10 | ||||
-rw-r--r-- | core/java/android/nfc/technology/MifareUltralight.java | 6 | ||||
-rw-r--r-- | core/java/android/nfc/technology/Ndef.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/NdefFormatable.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/NfcA.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/NfcB.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/NfcF.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/NfcV.java | 2 | ||||
-rw-r--r-- | core/java/android/nfc/technology/package.html | 5 |
12 files changed, 25 insertions, 28 deletions
diff --git a/core/java/android/nfc/NfcAdapter.java b/core/java/android/nfc/NfcAdapter.java index 758c8a0..2ea5105 100644 --- a/core/java/android/nfc/NfcAdapter.java +++ b/core/java/android/nfc/NfcAdapter.java @@ -43,7 +43,6 @@ public final class NfcAdapter { * * If any activities respond to this intent neither * {@link #ACTION_TECHNOLOGY_DISCOVERED} or {@link #ACTION_TAG_DISCOVERED} will be started. - * @hide */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_NDEF_DISCOVERED = "android.nfc.action.NDEF_DISCOVERED"; @@ -57,7 +56,6 @@ public final class NfcAdapter { * {@link #ACTION_TAG_DISCOVERED} * * If any activities respond to this intent {@link #ACTION_TAG_DISCOVERED} will not be started. - * @hide */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_TECHNOLOGY_DISCOVERED = "android.nfc.action.TECH_DISCOVERED"; @@ -76,7 +74,6 @@ public final class NfcAdapter { /** * Mandatory Tag extra for the ACTION_TAG intents. - * @hide */ public static final String EXTRA_TAG = "android.nfc.extra.TAG"; diff --git a/core/java/android/nfc/Tag.java b/core/java/android/nfc/Tag.java index 7404950..6cdd9f1 100644 --- a/core/java/android/nfc/Tag.java +++ b/core/java/android/nfc/Tag.java @@ -45,7 +45,7 @@ import java.util.Arrays; * in {@link NfcAdapter#ACTION_TAG_DISCOVERED} intents. A {@link Tag} object is immutable * and represents the state of the tag at the time of discovery. It can be * directly queried for its UID and Type, or used to create a {@link TagTechnology} - * (with {@link Tag#getTechnology(int)}). + * (with {@link Tag#getTechnology}). * <p> * A {@link Tag} can be used to create a {@link TagTechnology} only while the tag is in * range. If it is removed and then returned to range, then the most recent @@ -55,7 +55,6 @@ import java.util.Arrays; * time and calls on this class will retrieve those read-only properties, and * not cause any further RF activity or block. Note however that arrays passed to and * returned by this class are *not* cloned, so be careful not to modify them. - * @hide */ public class Tag implements Parcelable { /*package*/ final byte[] mId; @@ -249,7 +248,9 @@ public class Tag implements Parcelable { } }; - /* + /** + * For internal use only. + * * @hide */ public synchronized void setConnectedTechnology(int technology) { @@ -260,14 +261,18 @@ public class Tag implements Parcelable { } } - /* + /** + * For internal use only. + * * @hide */ public int getConnectedTechnology() { return mConnectedTechnology; } - /* + /** + * For internal use only. + * * @hide */ public void setTechnologyDisconnected() { diff --git a/core/java/android/nfc/technology/IsoDep.java b/core/java/android/nfc/technology/IsoDep.java index 32a7542..ff11eb2 100644 --- a/core/java/android/nfc/technology/IsoDep.java +++ b/core/java/android/nfc/technology/IsoDep.java @@ -27,7 +27,7 @@ import java.io.IOException; * A low-level connection to a {@link Tag} using the ISO-DEP technology, also known as * ISO1443-4. * - * <p>You can acquire this kind of connection with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of connection with {@link Tag#getTechnology}. * Use this class to send and receive data with {@link #transceive transceive()}. * * <p>Applications must implement their own protocol stack on top of diff --git a/core/java/android/nfc/technology/MifareClassic.java b/core/java/android/nfc/technology/MifareClassic.java index 799f0a7..6874f67 100644 --- a/core/java/android/nfc/technology/MifareClassic.java +++ b/core/java/android/nfc/technology/MifareClassic.java @@ -26,13 +26,13 @@ import java.io.IOException; /** * Concrete class for TagTechnology.MIFARE_CLASSIC * - * Mifare classic has n sectors, with varying sizes, although - * they are at least the same pattern for any one mifare classic + * MIFARE Classic has n sectors, with varying sizes, although + * they are at least the same pattern for any one MIFARE Classic * product. Each sector has two keys. Authentication with the correct * key is needed before access to any sector. * * Each sector has k blocks. - * Block size is constant across the whole mifare classic family. + * Block size is constant across the whole MIFARE classic family. */ public final class MifareClassic extends BasicTagTechnology { /** @@ -43,12 +43,12 @@ public final class MifareClassic extends BasicTagTechnology { public static final byte[] KEY_DEFAULT = {(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF,(byte)0xFF}; /** - * The well-known, default Mifare Application Directory read key. + * The well-known, default MIFARE Application Directory read key. */ public static final byte[] KEY_MIFARE_APPLICATION_DIRECTORY = {(byte)0xA0,(byte)0xA1,(byte)0xA2,(byte)0xA3,(byte)0xA4,(byte)0xA5}; /** - * The well-known, default read key for NDEF data on a Mifare Classic + * The well-known, default read key for NDEF data on a MIFARE Classic */ public static final byte[] KEY_NFC_FORUM = {(byte)0xD3,(byte)0xF7,(byte)0xD3,(byte)0xF7,(byte)0xD3,(byte)0xF7}; diff --git a/core/java/android/nfc/technology/MifareUltralight.java b/core/java/android/nfc/technology/MifareUltralight.java index 7103b4d..3104943 100644 --- a/core/java/android/nfc/technology/MifareUltralight.java +++ b/core/java/android/nfc/technology/MifareUltralight.java @@ -26,13 +26,13 @@ import android.os.RemoteException; /** * Concrete class for TagTechnology.MIFARE_ULTRALIGHT * - * Mifare classic has n sectors, with varying sizes, although - * they are at least the same pattern for any one mifare classic + * MIFARE Ultralight has n sectors, with varying sizes, although + * they are at least the same pattern for any one MIFARE Ultralight * product. Each sector has two keys. Authentication with the correct * key is needed before access to any sector. * * Each sector has k blocks. - * Block size is constant across the whole mifare classic family. + * Block size is constant across the whole MIFARE Ultralight family. */ public final class MifareUltralight extends BasicTagTechnology { public static final int TYPE_ULTRALIGHT = 1; diff --git a/core/java/android/nfc/technology/Ndef.java b/core/java/android/nfc/technology/Ndef.java index 05872fe..3c08c84 100644 --- a/core/java/android/nfc/technology/Ndef.java +++ b/core/java/android/nfc/technology/Ndef.java @@ -31,7 +31,7 @@ import java.io.IOException; * to interact with NDEF data. MiFare Classic cards that present NDEF data may also be used * via this class. To determine the exact technology being used call {@link #getTechnologyId()} * - * <p>You can acquire this kind of connection with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of connection with {@link Tag#getTechnology}. * * <p class="note"><strong>Note:</strong> * Use of this class requires the {@link android.Manifest.permission#NFC} diff --git a/core/java/android/nfc/technology/NdefFormatable.java b/core/java/android/nfc/technology/NdefFormatable.java index 222c558..7fa624f 100644 --- a/core/java/android/nfc/technology/NdefFormatable.java +++ b/core/java/android/nfc/technology/NdefFormatable.java @@ -29,7 +29,7 @@ import java.io.IOException; /** * An interface to a {@link Tag} allowing to format the tag as NDEF. * - * <p>You can acquire this kind of interface with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of interface with {@link Tag#getTechnology}. * * <p class="note"><strong>Note:</strong> * Use of this class requires the {@link android.Manifest.permission#NFC} diff --git a/core/java/android/nfc/technology/NfcA.java b/core/java/android/nfc/technology/NfcA.java index ef46762..5cb8190 100644 --- a/core/java/android/nfc/technology/NfcA.java +++ b/core/java/android/nfc/technology/NfcA.java @@ -25,7 +25,7 @@ import android.os.RemoteException; * A low-level connection to a {@link Tag} using the NFC-A technology, also known as * ISO1443-3A. * - * <p>You can acquire this kind of connection with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of connection with {@link Tag#getTechnology}. * Use this class to send and receive data with {@link #transceive transceive()}. * * <p>Applications must implement their own protocol stack on top of diff --git a/core/java/android/nfc/technology/NfcB.java b/core/java/android/nfc/technology/NfcB.java index 267c94d..dc9dd7a 100644 --- a/core/java/android/nfc/technology/NfcB.java +++ b/core/java/android/nfc/technology/NfcB.java @@ -25,7 +25,7 @@ import android.os.RemoteException; * A low-level connection to a {@link Tag} using the NFC-B technology, also known as * ISO1443-3B. * - * <p>You can acquire this kind of connection with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of connection with {@link Tag#getTechnology}. * Use this class to send and receive data with {@link #transceive transceive()}. * * <p>Applications must implement their own protocol stack on top of diff --git a/core/java/android/nfc/technology/NfcF.java b/core/java/android/nfc/technology/NfcF.java index 6741ac8..dd0e2f9 100644 --- a/core/java/android/nfc/technology/NfcF.java +++ b/core/java/android/nfc/technology/NfcF.java @@ -25,7 +25,7 @@ import android.os.RemoteException; * A low-level connection to a {@link Tag} using the NFC-F technology, also known as * JIS6319-4. * - * <p>You can acquire this kind of connection with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of connection with {@link Tag#getTechnology}. * Use this class to send and receive data with {@link #transceive transceive()}. * * <p>Applications must implement their own protocol stack on top of diff --git a/core/java/android/nfc/technology/NfcV.java b/core/java/android/nfc/technology/NfcV.java index 460de6a..da73f5d 100644 --- a/core/java/android/nfc/technology/NfcV.java +++ b/core/java/android/nfc/technology/NfcV.java @@ -25,7 +25,7 @@ import android.os.RemoteException; * A low-level connection to a {@link Tag} using the NFC-V technology, also known as * ISO15693. * - * <p>You can acquire this kind of connection with {@link Tag#getTechnology(int)}. + * <p>You can acquire this kind of connection with {@link Tag#getTechnology}. * Use this class to send and receive data with {@link #transceive transceive()}. * * <p>Applications must implement their own protocol stack on top of diff --git a/core/java/android/nfc/technology/package.html b/core/java/android/nfc/technology/package.html deleted file mode 100644 index 26b8a32..0000000 --- a/core/java/android/nfc/technology/package.html +++ /dev/null @@ -1,5 +0,0 @@ -<HTML> -<BODY> -{@hide} -</BODY> -</HTML>
\ No newline at end of file |