Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7a0c21a authored by Nick Pelly's avatar Nick Pelly Committed by Android Git Automerger
Browse files

am c5caaf5f: am 8f49c025: Merge "Added response flags and DSFID extras for...

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

* commit 'c5caaf5f':
  Added response flags and DSFID extras for NfcV technology (API part).
parents 894a5bda c5caaf5f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
    }

    /**
+19 −0
Original line number Diff line number Diff line
@@ -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;
    }
}