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

Commit 8f49c025 authored by Nick Pelly's avatar Nick Pelly Committed by Android (Google) Code Review
Browse files

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

parents a743448a 7eb32a44
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;
    }
}