dd0c9bbbb2d4b0c1ff633f2451fad892493a4c44 |
|
15-May-2017 |
Yuka Anami <yuka.x.anami@sonymobile.com> |
Add ID_LENGTH field for Empty type record If ID_LENGTH field is omitted from Empty Type record, it cannot be detected as Ndef since the data is strictly checked by e3fc7d9954. But it is not possible to create raw bytes of Empty Type record which can meet this condition by using NdefRecord/NdefMessage. To fix this issue, added ID_LENGTH field to Empty type record. Bug: 38299566 Test: Write and read NDEF tag with empty type record Change-Id: Idb58c80cf8562a8b314f4ddeccdc627dc0c6f5b4
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
2b527ac29323aa95c281c03335506f2a3d1beba4 |
|
03-Feb-2017 |
Ruchi Kandoi <kandoiruchi@google.com> |
nfc: First chunked NDEF record of TNF doesn't contain the type field Test: CTS test passes Bug: 34943312 Change-Id: I08f37ee76810f642b35ae8bde05ef0e2eff921e0 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
2ed0b48abb1fbc81dd16ec8ef0f6de8da590e86b |
|
25-Jan-2017 |
Ruchi Kandoi <kandoiruchi@google.com> |
nfc: Make NDEF validation stricter - Check if the MB is not set for any record apart from the first one. - If the record is chunked, first record must contain the type Bug: 20722275 Test: Manual; write raw NDEF messages to a tag Change-Id: I3e73fc5163bbcd8a1f23417e98f57b665f4f1fad Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
a77cf8735432daddb233164f41103a0ff38408bb |
|
25-Feb-2014 |
John Spurlock <jspurlock@google.com> |
Merge "Tabs -> spaces in frameworks/base."
|
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 |
|
25-Feb-2014 |
John Spurlock <jspurlock@google.com> |
Tabs -> spaces in frameworks/base. Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
7fe9fa163ccd2ec34cbf533be4422aa66356431f |
|
30-Jan-2014 |
Martijn Coenen <maco@google.com> |
Add an API to manually invoke Android Beam. Activities can call NfcAdapter.invokeBeam() to manually invoke the Beam animation. Any NFC tap is then enough to complete the transaction. Also, added NdefRecord convenience method for creating Text records. Bug: 5134061 Change-Id: Ia9df360d1d7e8451157c85a6d12f2a4eec924960
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
f180f30b0de7330c415eee0bac83b6e41242ad9b |
|
14-Nov-2013 |
Martijn Coenen <maco@google.com> |
Add "urn:nfc" shortener. As defined in the NFC Forum specification "URI Record Type Definition". For some reason 0x23 wasn't added in the past, but it's present in the specification. Change-Id: If4ec2216fd53a31943f6de62aa1c69166f597616
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
cb64d430627b71221c588ef5f23599dd34a89ee9 |
|
02-Aug-2013 |
Elliott Hughes <enh@google.com> |
If frameworks wants ASCII casing, it should explicity ask for it. http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
d396a448b2e36e29598c954b64bfddef73f3fae0 |
|
29-Jun-2013 |
Elliott Hughes <enh@google.com> |
Switch frameworks/base over from @hidden Charsets to public StandardCharsets. Bug: 3484927 Change-Id: I5d136d2ee629588538602766a182ae14ce5fc63c
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
32ac1e142c4a0f3529c49cde433ae5e22f84b1d6 |
|
06-Sep-2012 |
Martijn Coenen <maco@google.com> |
Fix NPE in NdefRecord parser. Malformed Uri tags could cause this crash. Bug: 7116323 Change-Id: I979d1512058f351df32dbd972b6ec5c108202da5
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
a45746efadd11bb7dfab026fb3c81a25fae74ca4 |
|
19-Jul-2012 |
Jeff Smith <whydoubt@yahoo.com> |
Fix several cases of broken droiddoc syntax external issue 35214 patch contributed by Jeff Smith <whydoubt@yahoo.com> Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
abc43ddd8ae098de7a56afc55909f904cd933016 |
|
10-May-2012 |
Jesse Wilson <jessewilson@google.com> |
Rename Uri.normalize() to Uri.normalizeScheme(). Change-Id: I67839656c7c1c16a5376c9894d699d2bad3c7a5c
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
c97a552023c3c71079b39092e80c9b44f25a789b |
|
05-Jan-2012 |
Nick Pelly <npelly@google.com> |
Improve NDEF API's o Add NdefRecord.toMimeType() Maps the record to a MIME type o Add NdefRecord.toUri() Maps the record to a URI o Add hidden NfcAdapter.dispatch() Helps test the dispatch path. o Modify createMime(), createUri() and createExternal(): Do not try and strictly follow RFC requirements for URI or MIME content types. This just leads to heartbreak - the RFC requirements are too strict. For example RFC1341 forbids the use of '.' in a MIME type, however this is in common use in types such as "application/vnd.companyname". I think the best approach is to only remove 'obvious' whitespace issues, and to convert uppercase to lowercase as per Android guidelines. Change-Id: Id686f5f3b05b2dceafad48e1cfcbdb2b3890b854
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
a356bf1cd81614a94ef6c720998792480ade4c84 |
|
14-Dec-2011 |
Nick Pelly <npelly@google.com> |
Rewrite NDEF parsing in Java, clean-up API. o Lots of documentation fixes. o Add NdefMessage(NdefRecord ... records) ctor o Add NdefRecord.createMime() o Add NdefRecord.createExternal() o Add toString(), equals() and hashCode() implementations o Deprecate NdefRecord(byte[]) and NdefRecord.toByteArray() o Remove framework dependency on libnfc_ndef.so o Remove NfcAdapter.getDefaultAdapter(), its been deprecated a while next step: o Attempt to move NdefMessage -> Intent conversion into NDEF, and make it CTS tested. This will ensure consistent NDEF -> Intent mapping across all Android devices. Change-Id: Ifed4910caa9a1d6bad32dbf0a507ab22bca35e22
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
82328bfd40008d85917cc01a1b2eb8eed1f23ec4 |
|
30-Aug-2011 |
Nick Pelly <npelly@google.com> |
NFC API updates. o NfcAdapter.set*(): enforce at least one activity is provided at compile time. o Unhide and update javadoc for some API's scheduled for ICS release. Change-Id: I2bf4ea101442dcdeb359be26d3869f82e6e3748b
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
a37fcbce59c8a746f641936b4de99867dbfabac9 |
|
05-Aug-2011 |
Martijn Coenen <maco@google.com> |
Add Android app RTD type and convenience method. Change-Id: I4e6351c86a0062efc9a9f90e75c04f6520e50c4f
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
67671874dcba734fc78d39573aa68c0cbe8e2b24 |
|
14-Jul-2011 |
Ben Dodson <bjdodson@google.com> |
unhide public apis Change-Id: I3bbe0e7c1e135a4654f63c34c024d7aa10341279
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
1584af9d4e96282f0b4f4e8e647fd6a6d18594fb |
|
30-Jun-2011 |
Jeff Hamilton <jham@android.com> |
Add a string based createUri(). Change-Id: Ie26977684d0f48201daa605b8b6057ab9afb370e
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
3da3a4582c0793f59a1fd897a992e5e4fd57b6ca |
|
17-Jun-2011 |
Ben Dodson <bjdodson@google.com> |
Parser for uri records Change-Id: I4b71ba7938aa83a1c6344e3da72a9495bc1e9a16
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
e0180d053e956ac32c2a5ec60272927755f17251 |
|
08-Jun-2011 |
Nick Pelly <npelly@google.com> |
Move NDEF URI helper method into android.nfc.NfcRecord Change-Id: Ia044e45cbe2cd06c4844d15a57f1c1f392cf65cd
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
8bede1704717f594a0f924a57ff46f6300347e30 |
|
08-Apr-2011 |
Martijn Coenen <maco@google.com> |
Fix NdefRecord flags handling. NdefMessages created from byte arrays set the wrong flags on NdefRecord: every record had at least FLAG_MB|FLAG_ME set, instead of actually setting the flags from the byte-stream itself. Fixed by creating an internal constructor which can take the flags. Public constructor remains the same, as we don't want to bother application writers with these flags - they can be inferred from the context in which the record is used. Getting the flags is not a public operation on an NdefRecord either. However, applications can get the byte[] representation and it is reasonable for them to expect the flags byte to be set correctly. Change-Id: Ic32411688dd092c55b1aeccbba9635792e15a671
/frameworks/base/core/java/android/nfc/NdefRecord.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/NdefRecord.java
|
da83f513ca661cd2bb1e6f1c8b64b716205bae48 |
|
22-Oct-2010 |
Jeff Hamilton <jham@android.com> |
Unhide some NFC APIs that are required for the Tag app. Change-Id: Ic64e00476132dbf4644de5c465e06fe11a264508
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
dd7341f775ca4d86091f4106d6dfef9214073a7d |
|
18-Oct-2010 |
Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> |
Added missing implementation for NdefRecord. Implemented constructor using a byte array to parse. Added missing exception in method declaration, leading to update api/current.xml Change-Id: I2660484aef1225e90c2f32a572041a2c3aecf288
/frameworks/base/core/java/android/nfc/NdefRecord.java
|
6df23609d4c1f257b11d67b965e5b63cbdf26fcd |
|
16-Oct-2010 |
Nick Kralevich <nnk@google.com> |
range checking for tnf Change-Id: Ie94acd598d3b8b349ffa98cef0f64ef8fa9f9612
/frameworks/base/core/java/android/nfc/NdefRecord.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/NdefRecord.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/NdefRecord.java
|
dc993791fc3cf7a270921f7419b0c6b875bbd92b |
|
04-Oct-2010 |
Nick Pelly <npelly@google.com> |
New API stubs: NdefMessage and NdefRecord. NDEF Messages and NDEF Record data classes. Change-Id: I9b7114773281b0eb9680f595c95ac79943d2903b Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/NdefRecord.java
|