History log of /packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2edb3ee5e28ab719a3bb17b8d76b2b588405be9a 13-Jun-2011 Nick Pelly <npelly@google.com> Fix NFC service wake-lock, again.

1) Put a watchdog on the NFC Service disable path.
All the bug-reports show we were stuck in _disable(), watch-dog
this path (10 seconds).

2) Only attempt a SE reset once, even if it fails the first time.
All the bugs reports should the _disable() was due to SE reset
on first boot.

3) Grab the NFC service lock before the wake-lock.
So even if someone has NFC service lock, at least we don't
hold a wake-lock waiting for it.

Bug: 4581084
Change-Id: Ic9829dddde8d0c67cf0e8e4912357fa2902faa11
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
1b61f1dee91101e249b9be65d95366fa745b3b78 12-Jan-2011 Martijn Coenen <martijn.coenen@nxp.com> Implement IsoDep timeout handling (NFC service).

Added interface to the NFC service for (re-)setting the IsoDep transaction
timeout. Internally, this is mapped to both the ISO XCHG timer and
the HCI watchdog timer in libnfc (see comments in code).

The timers are reset when the application closes the IsoDep technology.
But they must also be reset if the application crashes (and cannot close
the technology). To cover these cases, whenever discovery is (re)started or
whenever a tag is disconnected, the timeouts are reset to the default values.

Change-Id: I596ef311c3c3b21666b487d16a08642e8a6fc4af
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
c9a2ae7cb238e4c72818d084cba0b05e76cba1ef 07-Jan-2011 daniel_tomas <daniel.tomas@nxp.com> RF 0N/OFF events management added in the NFC Service

Change-Id: Ie32d36949c3520f9ece9bcb3c6f7bab2f9b24023
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
e18f86dad5a54eb4ed1c347a8b832f3fb24ed3b7 17-Nov-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Removed dead code.

Change-Id: Ia543f55135701154d2c639639b2183bfa07c9fd9
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
b74200f40f9d4f536b8782974d444f1f9178076f 10-Nov-2010 Jeff Hamilton <jham@android.com> Update to API changes.

Change-Id: I8f52bf20f493581aef80201b4b112af28cf3b5fa
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
48819102064977c3e37e18fd6db9a6022c01300c 02-Nov-2010 Daniel Tomas <daniel.tomas@trusted-logic.com> Patch for semaphore managnement with wrong return code from the Libnfc

Change-Id: I909b2623f66ca0f3f0370617e2df4b1075614c44
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
21545af22f9b913ec9cb124287aab2fcb0cf2b3b 02-Nov-2010 Nick Pelly <npelly@google.com> CONCURRENCY_LOCK() cleanup.

Rename functions that need to be called with lock held to _locked().
Remove dead code.
Replace asyncDisconnect() with disconnect() - its broken.

Change-Id: I04feb449394750954e202223366a0fa5ea425924
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
eead88c5e2bdd34eb33fdf2c76717f9edb9e0396 27-Oct-2010 Jeff Hamilton <jham@android.com> Patch from NXP. Avoid overrun when setting timer.

Change-Id: I9f46908d99d05804cd325024fc60da762f5beb1d
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
b230214bcb557184cb54174889cbede53b92d54f 20-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Enable NFC tag presence checking and implement background presence checking.

The background presence checking enables to restart the polling loop if
the application do not release the tag (e.g.: coding or runtime error).
The tag presence will be checked if there is no activity on it during 1s.

The message handler has been moved to the NfcService.java file. It was
previously located in NativeNfcManager,java file for historical reasons.

Change-Id: I3ab5c15c75eb81d2814187b47729859064cf011a
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
ba1ce2f1cac75db3d8af14138f0876f2b77a4a67 19-Oct-2010 Jeff Hamilton <jham@android.com> Close the tag connection after firing the tag detected Intent.

Change-Id: I85a1748f7cb72af5e5c5bd17145970bce5da370f
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
bebaa6cc1a1eb2ce0656e17b0e09ed4747878d8e 18-Oct-2010 Nick Pelly <npelly@google.com> Enforce NFC permission model.

Requires no permissions:
- Viewing UID, type of discovered tags and cards.
- Viewing the NDEF message contents of NDEF formatted tags and cards.

Requires android.permission.NFC
- Get/Set the local tag "MyTag"
- Creating or using a RawTagConnection (transceive())
- Creating or using a NdefTagConnection (write()/read())

Change-Id: I31f2336a81a7151063969f9019da9aaf08092d65
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
c2fdb614879c601b5162d5d93d705b05c7b1e072 18-Oct-2010 Nick Pelly <npelly@google.com> Rename com_trustedlogic_trustednfc -> com_android_nfc.

Change-Id: I7299115be35b4a598ad9bfc068d6161a01d1a834
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
16fade071b801dc3632b387bc9aaece1afa28120 16-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Update Tag object generation in NFC service to match draft #5 API reauirements.

Change-Id: I7b697c146a47b4314c969bde6902497163473c1a
Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java
f067256d9556b1e01143f9ae2fd824fa5dc03138 14-Oct-2010 Nick Pelly <npelly@google.com> NFC application.

NFC application contains the NFC service code that implements NFC API and
talks to NFC hardware.

This is the first cut at moving NFC service code out of frameworks/base into
application service. Android.mk are renamed to Android.mk.hide at this commit
because it does not work yet.

Signed-off-by: Nick Pelly <npelly@google.com>
/packages/apps/Nfc/src/com/android/nfc/NativeNfcManager.java