History log of /frameworks/base/core/java/android/nfc/Tag.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
11d2e53dc0d2682f66f8dcbd8f0ad52432cb4aa7 23-Jul-2014 Andres Morales <anmorales@google.com> NFC Unlock api changes

Bug: 16401635
Change-Id: I994bd80be40052c2f894199bb44ebbde40077f27
/frameworks/base/core/java/android/nfc/Tag.java
92b4b3c64ddbec9d10b631e03f0fbba225ca9057 30-Jul-2014 Andres Morales <anmorales@google.com> Revert "NFC Unlock api changes"

This reverts commit 9fef5fbcd6d47ef86823b3a2d82d34801f9be335.

Change-Id: Idabe1c2901e0e26d38f84583308f69804ab2c1c3
/frameworks/base/core/java/android/nfc/Tag.java
131197aa6e6b0ae91fefe4bb5f39fffb780997c5 23-Jul-2014 Andres Morales <anmorales@google.com> NFC Unlock api changes

Bug: 16401635
Change-Id: I138a9aa0bb156982b6c7656c51a1e2194776e4ed
/frameworks/base/core/java/android/nfc/Tag.java
d8cf53f87d1416613aa34cfb28f5042033e3299c 20-Jun-2014 Andres Morales <anmorales@google.com> Make unlock api take String instead of int codes

int code method not exposed to third parties

Change-Id: I18ad0703be9d06664db3fd00a6435f789979fe73
/frameworks/base/core/java/android/nfc/Tag.java
3e4b665bc607c81ccc018d753122a363dd95159b 13-Dec-2013 Andres Morales <anmorales@google.com> Adding accessor for integer tech codes to Tag

Change-Id: I02c272acc9744756677afa8a9d1dca7f1e63ca50
/frameworks/base/core/java/android/nfc/Tag.java
ca0cf4ee782e474961e6de74f6004781773f957c 25-Sep-2012 Martijn Coenen <maco@google.com> Fix build.

Bug: 7222958
Change-Id: I2f9ff988f09be6cd4be49bfb90750a46e63c2c14
/frameworks/base/core/java/android/nfc/Tag.java
1f5badc1cb08f10ddf4b09aaaf34060a23999a51 24-Jan-2012 Nick Pelly <npelly@google.com> Add NdefMessage.getByteLength(), and more minor fixes:

Remove NdefMessage from dispatch(). It's already in the Tag.
/*package*/ cleanup
Fix sitemap after removal of NFCDemo

Change-Id: Ie1f6d9ea98144aa97f56bb709a33f5d0ef916e8b
/frameworks/base/core/java/android/nfc/Tag.java
23fc93a7c1e340e79642d3d0bf4b4658c8645c8e 28-Nov-2011 Martijn Coenen <maco@google.com> Fix NPE on mock NDEF tech operations.

Change-Id: Ib67bd03b6275fdb86a5d6dedc6c7e4fed07ef8b0
/frameworks/base/core/java/android/nfc/Tag.java
8856c4278d9fd727081083d0f88459a8152d88c0 01-Jul-2011 Jeff Hamilton <jham@android.com> Improve Tag.toString().

Change-Id: Iea254201d04dc45bc94c237aa4a57da096c5f134
/frameworks/base/core/java/android/nfc/Tag.java
2dcae567ab56285bc70b6857c4f3c87df09641b8 03-Jun-2011 Martijn Coenen <maco@google.com> Added support for rediscovering a Tag (API).

Bug: 3378764
Change-Id: I4697b814337270c4458ca2b8ce358de315904777
/frameworks/base/core/java/android/nfc/Tag.java
28319c0cec94977682db32b949628a8e4b8183dc 09-Feb-2011 Jeff Hamilton <jham@android.com> More documentation updates for NFC.

Change-Id: Ie134d4296ee12333e6647ce76126f9767ba1ba34
/frameworks/base/core/java/android/nfc/Tag.java
74fe6c6b245ebe7d3b3d96962c32980d88dca4f5 03-Feb-2011 Nick Pelly <npelly@google.com> NFC documentation overhaul.

Change-Id: I45dca95a24b2d0327e080436fbcc7b1dad79de02
/frameworks/base/core/java/android/nfc/Tag.java
f003e26df96067b4b136f0859012cb7ec3ed930f 01-Feb-2011 Nick Pelly <npelly@google.com> Final final final Gingerbread MR API changes.

This is it. I promise.

ACTION_TECHNOLOGY_DISCOVERED -> ACTION_TECH_DISCOVERED
This was missed in our technology->tech rename.

Hide TagTechnology.reconnect()
This is used to reset any per-connection state in a tag, by reconnecting
to it. The first problem is that it belongs on Tag, not TagTechnology. The
second problem is that it may become redundant once we add Tag.rediscover()
which will also reconnect to the tag, and will also return a new Tag with
newly created technologies enumerated. And the third and most significant
problem is that you can already achieve the same result by just calling
close() followed by connect().

Hide Tag.createMockTag()
This API cannot be used reliably. First it requires using int[] for the
technology list, but those int constants are now hidden. Second it requires
knowledge of the extras parcel used to fill technology specific data - also
not public.

Introduce TagTechnology.isConnected()
Every child class already impelmented this, and given that connect() and
close() are defined on the interface, then isConnected() should be there
too.

Modify Ndef.getType to return a string (not int)
Allows more flexibility in adding new NDEF types. Current public strings are
org.nfcforum.ndef.type1
org.nfcforum.ndef.type2
org.nfcforum.ndef.type3
org.nfcforum.ndef.type4
com.nxp.ndef.mifareclassic

Add NdefFormatable.formatReadOnly()
This allows you to make the tag read-only at the same time as performing
format and write. It is important because we currently don't have any
public API to re-enumerate a tag technology list after making a tag
NDEF compatible, so you can't perform the format as a seperate step
without physically removing the tag from field and returning it.

Modify Readonly -> ReadOnly

Make Tag class final

Change-Id: Icf306aeb37b936ca3007e4868e99b6baceac4aff
/frameworks/base/core/java/android/nfc/Tag.java
d88e9aa575eb3a9d20cdb0e8918d54993e1ce1e0 24-Jan-2011 Jeff Hamilton <jham@android.com> Use classnames instead of ints for NFC techs.

This makes the system more flexible and allows
adding new technology types without having to
update the API.

Change-Id: Iaee6b633965e501a70e8afc3f1d54d9d94a4d05a
/frameworks/base/core/java/android/nfc/Tag.java
c5a418ecb7681159ae6674a4d91177c6841537b1 24-Jan-2011 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Handle mock tags in android.nfc.Tag conversion to Parcel.

When generating a mock tag (after a NDEF exchange over LLCP), one of
the internal fields is set to null. This was causing NullPointerException
when being converted to a Parcel.

This is fixed by not including this field in the Parcel for mock tags.

Change-Id: I000e2faa54d71fd755ba7993e1e258743aad98fb
/frameworks/base/core/java/android/nfc/Tag.java
4e21e1d21a877cce4db5ec8c5786604cc10f2d7e 21-Jan-2011 Jeff Hamilton <jham@android.com> API changes for NFC.

Bug: 3366009
Change-Id: Ia28e03e1501421906b640b78d4c9a59a20e9c668
/frameworks/base/core/java/android/nfc/Tag.java
ce3224cda51f946871daa1e11e3976e25c59e6fa 17-Jan-2011 Jeff Hamilton <jham@android.com> Javadoc updates for NFC.

Change-Id: Ibd91829979576297599fbcc9eb8054924af1d527
/frameworks/base/core/java/android/nfc/Tag.java
b4003bf73e8150fa775506ae508cc55011442308 10-Jan-2011 Nick Pelly <npelly@google.com> Change Tag.getTechnology(NfcAdapter, int) to NfcAdapter.getTechnology(Tag, int)

The later feels less clumsy.

Change-Id: I50f29aef23d2993dcfd25f4c4f2cb0d77bdc0610
/frameworks/base/core/java/android/nfc/Tag.java
be372d6462605010910e771cef15d5adccd0a59e 23-Dec-2010 Jeff Hamilton <jham@android.com> Make the new NFC APIs public.

Change-Id: Ia0acd9759d67683eaf1dc199dc2cc55e16a98e77
/frameworks/base/core/java/android/nfc/Tag.java
4049f9d00a86f848d42d2429068496b31a6795ad 14-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Implement multi-tech connect, enfore tech exclusivity.

- The NfcService now allows for connecting to a specific technology;
- The "active" parts of technology classes may not be used at the same time.

Change-Id: Ibb569f51cc6da4f3e24df9d0850c6f49a022b0c2
/frameworks/base/core/java/android/nfc/Tag.java
50b4d8f643f31b37e9872f562fb869059cf79c8a 08-Dec-2010 Nick Pelly <npelly@google.com> Make getSystemService(NFC_SERVICE) the NFC entry point.

This gives NFC service a handle to the application context.

Deprecate NfcAdapter.getDefaultAdapter(), it does not provide a context.
Using this method will print a warning, and will later throw an exception
if a method that requires a context is called. No 2.3 API's will fail, but
new API's that do require a context might fail.

Also add helper NfcAdapter.getDefaultAdapter(Context).

Change-Id: I9a6378de4ef4b61ad922f8d53e64e2a1a1d5d60c
/frameworks/base/core/java/android/nfc/Tag.java
5289b91c885158094988a9a7b51b3139565eb639 08-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Implement ndef formatting.

Change-Id: I6e3e3abdc304bc14d7c93a413e42bf957963e288
/frameworks/base/core/java/android/nfc/Tag.java
72df4ea8300ad345eb256cf43d8dae35eef39ba2 07-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Remove Type X Tags from the top-level API.

Also added an extra to carry the ndef message, so we can have it in multiple
Ndef instances without doing an active read.

Change-Id: I2ecabc24732990c5c9979ee3a001a7fb13da21d9
/frameworks/base/core/java/android/nfc/Tag.java
9a9706a213637b396226afff53c69927283609a7 06-Dec-2010 Martijn Coenen <martijn.coenen@nxp.com> Added missing ndef technology to getTech.

Change-Id: I1f08e140c9bb43a8e894812adbc4d11801637f46
/frameworks/base/core/java/android/nfc/Tag.java
c1576ad627d3d2b2d3c0764c605ebbf3ddc24401 06-Dec-2010 Jeff Hamilton <jham@android.com> Update the docs to clarify the ordering constraints.

Change-Id: Ib3932e637a675c875b9ed3482826a150b845a385
/frameworks/base/core/java/android/nfc/Tag.java
2fe24e3e14cce791e89c93ddc23e28af5c2c90cc 03-Dec-2010 Jan Brands <jan.r.brands@nxp.com> First implementation of MifareUltralight

Change-Id: I77818ddc89b529c17fc41d6c0850688365c6b770
/frameworks/base/core/java/android/nfc/Tag.java
1253ebc74a8453a88dc47a2b698145098d201681 24-Nov-2010 Martijn Coenen <martijn.coenen@nxp.com> Fixed NfcAdapter init and getTechnology().

- GetTechnology() used a binary search, but the array was linked to another
array (extras) which was not sorted. So made it linear.
- The tag technologies were instantiated with a null NfcAdapter.

Change-Id: Iae15169a89155c3a5c9f81824f809d6010ebac01
/frameworks/base/core/java/android/nfc/Tag.java
6be655c768a82716612c00fdd156254d8dc00f42 12-Nov-2010 Jeff Hamilton <jham@android.com> Rough first pass at the NFC technology API.

Change-Id: I903ad6bc124bf9a65af788dae45f55d58704ef7b
/frameworks/base/core/java/android/nfc/Tag.java
11b075e218b9921a953eeebe73fcd1a8a81f764b 28-Oct-2010 Nick Pelly <npelly@google.com> Hide some NFC API's.

We are leaving enough API so that you can see when any Tag is discovered,
get its ID, and get its NDEF messages.

But for advanced use - creating tag connections and writing messages - we have
2 problems. Firstly a lot of the code is untested
(RawTagConnection.transceive()), or in some cases known not to work
(NdefTagConnection.write()). Secondly, there is still debate about how to
best expose information about Tags.

The set of data/methods exposed for a Tag changes completely depending on the
tag technology. There may be multiple sets of technology implemented in a
single tag. Tag A may have technology X and Y, Tag B may have technology Y
and Z. Furthermore, some NFC controllers will be not be able to use all
technologies, and so Android Device 1 may see technology X and Y on Tag A but
Android device 2 may only see technology X. So we have a pretty challenging
set of constraints to work under, and we are not convinced the current Tag and
NdefTag class is the best approach going forwards.

The Tag application should be able to remain unbundled, since it just needs to
get incoming NDEF Messages.

Change-Id: Ic09f094f33794e10f8d730fffe011c9a5957e0ac
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/Tag.java
e2e4ea9ea8f5724403e6267d193a740dc7c78785 25-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Fixed NdefTag parcelable conversion methods.

Also removed call to obsolete openTagConnection() method which was crashing.

Change-Id: Iffd46bd5cad877bb3a82ede298e65ae98322dca9
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/Tag.java
416d72f4b6e68439828b9c189bd10cc0004f0f88 25-Oct-2010 Nick Pelly <npelly@google.com> Document getPollBytes() and getActivationBytes().

No code change.

Change-Id: Ideb427b2684b9f9296abefb7c97eabc52db73ee0
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/Tag.java
07f3bee2db8b6e93ebbf7222676bd9f468e85569 22-Oct-2010 Nick Pelly <npelly@google.com> Push Tag/NdefTag implementation details into the service.

Tag/NdefTag objects should just be simple data objects. Push the mapping of
internal tag type to public rawTarget/ndefTarget into Nfc Service.

This gives an oppurtunity to clean up some Tag/NdefTag API methods. Most
significantly, adding createMockTag() and createMockNdefTag() to help with
application testing.

There will probably be some more tweaking of the types/targets in
Tag/NdefTag to come, this commit makes that a lot easier.

Also:
- Introduce getActivationBytes() and getPollBytes(). These are just stubs
for NFC service to implement, we have feedback these are really important
to help identify NFC tags.
- Based on outside advice, remove 3B_PRIME (roll into 3B) and TOPAZ (roll
into 3A).

Change-Id: I3e6789c047f6ee5c298bf76c65e0885cf3c15d97
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/Tag.java
a926540d5455a973dd8ca19c00c108620d9c68c2 15-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Implement methods introduced in draft #5 NFC API.

The API is implemented but still do not support muli-protocol tags.

Change-Id: I5cea3eec7b5b92e8e1106d4660e2400e4433e943
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/Tag.java
c9f7890a203a013646650a695157277df81b6a17 15-Oct-2010 Scott Main <smain@google.com> Revise some javadocs for NFC; add package description

Change-Id: I60223e2ad24af98b3b16a74960365185096ae614
/frameworks/base/core/java/android/nfc/Tag.java
590b73bc5b8e5f7b59bff1d9264a52388a5162e6 12-Oct-2010 Nick Pelly <npelly@google.com> NFC API revision round 2.

- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.

Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/Tag.java