Merge "Added response flags and DSFID extras for NfcV technology (API part)." into gingerbread

This commit is contained in:
Nick Pelly
2011-01-03 22:38:14 -08:00
committed by Android (Google) Code Review
2 changed files with 20 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public final class NfcB extends BasicTagTechnology {
public NfcB(NfcAdapter adapter, Tag tag, Bundle extras)
throws RemoteException {
super(adapter, tag, TagTechnology.NFC_B);
mAtqb = extras.getByteArray(EXTRA_ATQB);
}
/**

View File

@@ -36,8 +36,27 @@ import android.os.RemoteException;
* permission.
*/
public final class NfcV extends BasicTagTechnology {
/** @hide */
public static final String EXTRA_RESP_FLAGS = "respflags";
/** @hide */
public static final String EXTRA_DSFID = "dsfid";
private byte mRespFlags;
private byte mDsfId;
public NfcV(NfcAdapter adapter, Tag tag, Bundle extras)
throws RemoteException {
super(adapter, tag, TagTechnology.NFC_V);
mRespFlags = extras.getByte(EXTRA_RESP_FLAGS);
mDsfId = extras.getByte(EXTRA_DSFID);
}
public byte getResponseFlags() {
return mRespFlags;
}
public byte getDsfId() {
return mDsfId;
}
}