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

* commit '8f49c025ca5b4ed84290fb9e5e0b7acb1c139b35':
  Added response flags and DSFID extras for NfcV technology (API part).
This commit is contained in:
Nick Pelly
2011-01-03 22:39:42 -08:00
committed by Android Git Automerger
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;
}
}