summaryrefslogtreecommitdiffstats
path: root/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move NXP JNI and DeviceHost implementation into separate dir.Martijn Coenen2012-07-251-253/+0
| | | | | | | | | | Preparation for the new NCI stack. The idea is to build either the NXP or the NCI stack, triggered by a makefile switch. To that end, move the DeviceHost and JNI implementations in their own directory, so we can build them only if needed. Change-Id: I8579ec30ceb1908e4cd180cfbd10224aa4bddb8d
* Revert "Move NXP JNI and DeviceHost implementation into separate dir."Martijn Coenen2012-07-241-0/+253
| | | | This reverts commit 26f6049196acaa9768ba6bdef343216ea878a4c1.
* Move NXP JNI and DeviceHost implementation into separate dir.Martijn Coenen2012-07-241-253/+0
| | | | | | | | | | Preparation for the new NCI stack. The idea is to build either the NXP or the NCI stack, triggered by a makefile switch. To that end, move the DeviceHost and JNI implementations in their own directory, so we can build them only if needed. Change-Id: Ibb6aeb11f0bb887e153fd457860b1ad0e39e7933
* Use a buffer in connectionless sockets.Martijn Coenen2012-01-301-1/+1
| | | | Change-Id: I2199dac0a342e553e66bdf95fdfcfd00ef6816c3
* LLCP echo server implementation.Martijn Coenen2012-01-201-4/+0
| | | | | | | | | | Can be used to test the Android LLCP stack with nfcpy. Disabled by default. Also fixed unnecessary JNI release call causing warnings in the logs. Change-Id: Iaed159e23dadc1601be2df2aadbe1d9c54c50615
* Bring LLCP connectionless sockets back to life.Martijn Coenen2012-01-131-2/+2
| | | | | | Useful for testing the connectionless part of the LLCP stack. Change-Id: I76a7962526ec1e6ff463c938431229f89c545824
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-061-7/+7
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: If3f714c482c26a9b90cae43dbab6e4ee7f46dcb9
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: Ie4ce01d556684684b2e3ccb5c2fd65307ec11960
* Relocate the libnfc-nxp Java bridge sources.Jeff Hamilton2011-06-131-1/+1
| | | | Change-Id: I0b743245d60bf9c47ce84ec0ab7fd8c5b6202ec9
* Removed workaround for native socket creation limitation.Sylvain Fonteneau2011-01-181-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | Until now, the NFC native library (libnfc-nxp) had some limitations on the socket life cycle that made impossible to ensure the local server socket was listening before the remote client was trying to connect. The RegisteredSocket class was created to workaround this by enabling socket creation at the Java layer prior to link establishment. This solution was not fully satisfactory since there were still some race conditions. A fix for these limitations has been submitted in the library project in a commit named "Allow LLCP socket creation before link establishment" and this patch takes advantage of it to remove the RegisteredSocket class and all the associated code. As a consequence, the socket creation methods have been simplified, the link activation processes is lighter (no need to recreate native sockets on link activation). This patch also includes some cleaning (removed unused variables). Change-Id: I643509d620105ae7d3ba24ea68eae37f05bc6ef3
* Release JNI local references in LLCP sockets.Sylvain Fonteneau2011-01-181-2/+10
| | | | Change-Id: I691f1568ae83f2483bd6c60489d427cf62b1c9c8
* Use dynamic semaphores in JNI layer.Sylvain Fonteneau2010-11-221-73/+81
| | | | Change-Id: Iee394ace642302ee269e73203d3fc8427c69047e
* Quiet most logs in NFC by default.Jeff Hamilton2010-11-031-16/+11
| | | | | | Bug: 3124915 Change-Id: If5a3e6b21fe43d9ce2ff82ee65751baaa1c0e0a2 Signed-off-by: Nick Pelly <npelly@google.com>
* Use malloc to allocate semaphores for easier memory corruption detection.Nick Pelly2010-11-021-9/+10
| | | | | Change-Id: I9741b2527914992ab710c405d869f0ac6273f468 Signed-off-by: Nick Pelly <npelly@google.com>
* Rename com_trustedlogic_trustednfc -> com_android_nfc.Nick Pelly2010-10-171-0/+239
Change-Id: I7299115be35b4a598ad9bfc068d6161a01d1a834 Signed-off-by: Nick Pelly <npelly@google.com>