summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-01-17 12:26:44 -0800
committerMartijn Coenen <maco@google.com>2012-01-20 15:00:56 -0800
commit6f0e3b8e1de5137077127bf3144effa2016c27c6 (patch)
tree8c373061b9d77d3836681edaa4968c3513f21e10 /jni
parente008eba3b51c5303d52bf3e9e989dfd03b18435a (diff)
downloadpackages_apps_nfc-6f0e3b8e1de5137077127bf3144effa2016c27c6.zip
packages_apps_nfc-6f0e3b8e1de5137077127bf3144effa2016c27c6.tar.gz
packages_apps_nfc-6f0e3b8e1de5137077127bf3144effa2016c27c6.tar.bz2
LLCP echo server implementation.
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
Diffstat (limited to 'jni')
-rw-r--r--jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp b/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp
index d9d6669..4ab66d5 100644
--- a/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp
+++ b/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp
@@ -200,10 +200,6 @@ static jobject com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom(JNIE
e->SetObjectField(llcpPacket, f, receivedData);
clean_and_return:
- if (receivedData != NULL)
- {
- e->ReleaseByteArrayElements(receivedData, (jbyte*)sReceiveBuffer.buffer, 0);
- }
nfc_cb_data_deinit(&cb_data);
return llcpPacket;
}