ef565c43939d9ce417f0064852badb91ae669e77 |
|
11-Nov-2011 |
Martijn Coenen <maco@google.com> |
Fix NdefRecord byte-stream constructor. Bug: 5601404 Change-Id: I30fada97487829a8b2ccc1a1e7a32837c29ddd70
/frameworks/base/core/jni/android_nfc_NdefRecord.cpp
|
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/jni/android_nfc_NdefRecord.cpp
|
5629d51f221adad107a509570ab2c739d1bf1a23 |
|
08-Nov-2010 |
Jeff Hamilton <jham@android.com> |
Reduce log clutter. Change-Id: Ia034b563b028d74b4878f1af7db9188c82d03548
/frameworks/base/core/jni/android_nfc_NdefRecord.cpp
|
1af97f0b78663eae0877644cc5f19bdbd9d033c7 |
|
22-Oct-2010 |
Nick Pelly <npelly@google.com> |
Attempt to fix simulator build. Change-Id: I7f912ce58292bdd03fa683d2e5c203480d94e945 Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/jni/android_nfc_NdefRecord.cpp
|
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/jni/android_nfc_NdefRecord.cpp
|
bc21fdefdfbeba1754c6cd339c7dd8e8f1d6fd48 |
|
14-Oct-2010 |
Nick Pelly <npelly@google.com> |
NFC: Move NFC service implementation out of system_server. NFC service is now an application service in packages/apps/Nfc. NFC service is registered through ServiceManager.addService(), and the proxy object NfcAdapter obtains a handle to it through ServiceManager.getService(). **Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and modify service_manager.c, Process.java and PackageManagerService.java in order to force the com.android.nfc process to take a fixed uid, so that it can use ServiceManager.addService(). Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and NdefMessage require some in-process native code, so android_com_NdefMessage.cpp and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to a very small library libnfc_ndef.so that implements NDEF message parsing. This has been added to core.mk so all devices (even without NFC hardware) can work with NDEF data. Bug: 3041259 Bug: 3097445 Change-Id: If8f00ce8f2053acfc9319ca366d4a9c02bd396e6 Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/jni/android_nfc_NdefRecord.cpp
|