Merge "Unhide some NFC APIs that are required for the Tag app." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
7c68bc3867
@@ -99804,6 +99804,18 @@
|
|||||||
deprecated="not deprecated"
|
deprecated="not deprecated"
|
||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
|
<parameter name="data" type="byte[]">
|
||||||
|
</parameter>
|
||||||
|
<exception name="FormatException" type="android.nfc.FormatException">
|
||||||
|
</exception>
|
||||||
|
</constructor>
|
||||||
|
<constructor name="NdefMessage"
|
||||||
|
type="android.nfc.NdefMessage"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
<parameter name="records" type="android.nfc.NdefRecord[]">
|
<parameter name="records" type="android.nfc.NdefRecord[]">
|
||||||
</parameter>
|
</parameter>
|
||||||
</constructor>
|
</constructor>
|
||||||
@@ -99829,6 +99841,17 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="toByteArray"
|
||||||
|
return="byte[]"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</method>
|
||||||
<method name="writeToParcel"
|
<method name="writeToParcel"
|
||||||
return="void"
|
return="void"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
@@ -99948,6 +99971,17 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="toByteArray"
|
||||||
|
return="byte[]"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</method>
|
||||||
<method name="writeToParcel"
|
<method name="writeToParcel"
|
||||||
return="void"
|
return="void"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
|
|||||||
@@ -34,15 +34,12 @@ public class NdefMessage implements Parcelable {
|
|||||||
|
|
||||||
private final NdefRecord[] mRecords;
|
private final NdefRecord[] mRecords;
|
||||||
|
|
||||||
//TODO(npelly) FormatException
|
|
||||||
/**
|
/**
|
||||||
* Create an NDEF message from raw bytes.
|
* Create an NDEF message from raw bytes.
|
||||||
* <p>
|
* <p>
|
||||||
* Validation is performed to make sure the Record format headers are valid,
|
* Validation is performed to make sure the Record format headers are valid,
|
||||||
* and the ID + TYPE + PAYLOAD fields are of the correct size.
|
* and the ID + TYPE + PAYLOAD fields are of the correct size.
|
||||||
* @throws FormatException
|
* @throws FormatException
|
||||||
*
|
|
||||||
* @hide
|
|
||||||
*/
|
*/
|
||||||
public NdefMessage(byte[] data) throws FormatException {
|
public NdefMessage(byte[] data) throws FormatException {
|
||||||
mRecords = null; // stop compiler complaints about final field
|
mRecords = null; // stop compiler complaints about final field
|
||||||
@@ -69,10 +66,7 @@ public class NdefMessage implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a byte array representation of this NDEF message.
|
* Returns a byte array representation of this entire NDEF message.
|
||||||
*
|
|
||||||
* @return byte array
|
|
||||||
* @hide
|
|
||||||
*/
|
*/
|
||||||
public byte[] toByteArray() {
|
public byte[] toByteArray() {
|
||||||
//TODO(nxp): do not return null
|
//TODO(nxp): do not return null
|
||||||
|
|||||||
@@ -247,8 +247,7 @@ public class NdefRecord implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return this NDEF Record as a byte array.
|
* Returns this entire NDEF Record as a byte array.
|
||||||
* @hide
|
|
||||||
*/
|
*/
|
||||||
public byte[] toByteArray() {
|
public byte[] toByteArray() {
|
||||||
return generate(mFlags, mTnf, mType, mId, mPayload);
|
return generate(mFlags, mTnf, mType, mId, mPayload);
|
||||||
|
|||||||
Reference in New Issue
Block a user