diff options
author | Jeff Hamilton <jham@android.com> | 2011-06-13 22:22:11 -0500 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2011-06-13 23:00:59 -0500 |
commit | 81c476dd93f059d4082c15369894d5d16fbea05d (patch) | |
tree | f705333cb44d05731a763284eea7ed755577bef7 /jni | |
parent | fbd90779b1525b254726eb58d07883ca74e1b21c (diff) | |
download | packages_apps_nfc-81c476dd93f059d4082c15369894d5d16fbea05d.zip packages_apps_nfc-81c476dd93f059d4082c15369894d5d16fbea05d.tar.gz packages_apps_nfc-81c476dd93f059d4082c15369894d5d16fbea05d.tar.bz2 |
Relocate the libnfc-nxp Java bridge sources.
Change-Id: I0b743245d60bf9c47ce84ec0ab7fd8c5b6202ec9
Diffstat (limited to 'jni')
-rw-r--r-- | jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 2 | ||||
-rw-r--r-- | jni/com_android_nfc_NativeLlcpServiceSocket.cpp | 6 | ||||
-rw-r--r-- | jni/com_android_nfc_NativeLlcpSocket.cpp | 2 | ||||
-rw-r--r-- | jni/com_android_nfc_NativeNfcManager.cpp | 24 | ||||
-rwxr-xr-x | jni/com_android_nfc_NativeNfcSecureElement.cpp | 2 | ||||
-rw-r--r-- | jni/com_android_nfc_NativeNfcTag.cpp | 2 | ||||
-rw-r--r-- | jni/com_android_nfc_NativeP2pDevice.cpp | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp b/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp index 959a489..f409145 100644 --- a/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp +++ b/jni/com_android_nfc_NativeLlcpConnectionlessSocket.cpp @@ -250,7 +250,7 @@ static JNINativeMethod gMethods[] = int register_com_android_nfc_NativeLlcpConnectionlessSocket(JNIEnv *e) { return jniRegisterNativeMethods(e, - "com/android/nfc/NativeLlcpConnectionlessSocket", + "com/android/nfc/nxp/NativeLlcpConnectionlessSocket", gMethods, NELEM(gMethods)); } diff --git a/jni/com_android_nfc_NativeLlcpServiceSocket.cpp b/jni/com_android_nfc_NativeLlcpServiceSocket.cpp index 653a5c0..49c8c05 100644 --- a/jni/com_android_nfc_NativeLlcpServiceSocket.cpp +++ b/jni/com_android_nfc_NativeLlcpServiceSocket.cpp @@ -139,7 +139,7 @@ static jobject com_NativeLlcpServiceSocket_doAccept(JNIEnv *e, jobject o, jint m } /* Create new LlcpSocket object */ - if(nfc_jni_cache_object(e,"com/android/nfc/NativeLlcpSocket",&(clientSocket)) == -1) + if(nfc_jni_cache_object(e,"com/android/nfc/nxp/NativeLlcpSocket",&(clientSocket)) == -1) { LOGD("LLCP Socket creation error"); goto clean_and_return; @@ -209,7 +209,7 @@ static jboolean com_NativeLlcpServiceSocket_doClose(JNIEnv *e, jobject o) */ static JNINativeMethod gMethods[] = { - {"doAccept", "(III)Lcom/android/nfc/NativeLlcpSocket;", + {"doAccept", "(III)Lcom/android/nfc/nxp/NativeLlcpSocket;", (void *)com_NativeLlcpServiceSocket_doAccept}, {"doClose", "()Z", @@ -220,7 +220,7 @@ static JNINativeMethod gMethods[] = int register_com_android_nfc_NativeLlcpServiceSocket(JNIEnv *e) { return jniRegisterNativeMethods(e, - "com/android/nfc/NativeLlcpServiceSocket", + "com/android/nfc/nxp/NativeLlcpServiceSocket", gMethods, NELEM(gMethods)); } diff --git a/jni/com_android_nfc_NativeLlcpSocket.cpp b/jni/com_android_nfc_NativeLlcpSocket.cpp index a6911d8..b2784f6 100644 --- a/jni/com_android_nfc_NativeLlcpSocket.cpp +++ b/jni/com_android_nfc_NativeLlcpSocket.cpp @@ -459,7 +459,7 @@ static JNINativeMethod gMethods[] = int register_com_android_nfc_NativeLlcpSocket(JNIEnv *e) { return jniRegisterNativeMethods(e, - "com/android/nfc/NativeLlcpSocket",gMethods, NELEM(gMethods)); + "com/android/nfc/nxp/NativeLlcpSocket",gMethods, NELEM(gMethods)); } } // namespace android diff --git a/jni/com_android_nfc_NativeNfcManager.cpp b/jni/com_android_nfc_NativeNfcManager.cpp index 9a697d8..247da0a 100644 --- a/jni/com_android_nfc_NativeNfcManager.cpp +++ b/jni/com_android_nfc_NativeNfcManager.cpp @@ -1618,16 +1618,16 @@ static jboolean com_android_nfc_NfcManager_init_native_struc(JNIEnv *e, jobject /* Initialize native cached references */ cached_NfcManager_notifyNdefMessageListeners = e->GetMethodID(cls, - "notifyNdefMessageListeners","(Lcom/android/nfc/NativeNfcTag;)V"); + "notifyNdefMessageListeners","(Lcom/android/nfc/nxp/NativeNfcTag;)V"); cached_NfcManager_notifyTransactionListeners = e->GetMethodID(cls, "notifyTransactionListeners", "([B)V"); cached_NfcManager_notifyLlcpLinkActivation = e->GetMethodID(cls, - "notifyLlcpLinkActivation","(Lcom/android/nfc/NativeP2pDevice;)V"); + "notifyLlcpLinkActivation","(Lcom/android/nfc/nxp/NativeP2pDevice;)V"); cached_NfcManager_notifyLlcpLinkDeactivated = e->GetMethodID(cls, - "notifyLlcpLinkDeactivated","(Lcom/android/nfc/NativeP2pDevice;)V"); + "notifyLlcpLinkDeactivated","(Lcom/android/nfc/nxp/NativeP2pDevice;)V"); cached_NfcManager_notifyTargetDeselected = e->GetMethodID(cls, "notifyTargetDeselected","()V"); @@ -1638,13 +1638,13 @@ static jboolean com_android_nfc_NfcManager_init_native_struc(JNIEnv *e, jobject cached_NfcManager_notifySeFieldDeactivated = e->GetMethodID(cls, "notifySeFieldDeactivated", "()V"); - if(nfc_jni_cache_object(e,"com/android/nfc/NativeNfcTag",&(nat->cached_NfcTag)) == -1) + if(nfc_jni_cache_object(e,"com/android/nfc/nxp/NativeNfcTag",&(nat->cached_NfcTag)) == -1) { LOGD("Native Structure initialization failed"); return FALSE; } - if(nfc_jni_cache_object(e,"com/android/nfc/NativeP2pDevice",&(nat->cached_P2pDevice)) == -1) + if(nfc_jni_cache_object(e,"com/android/nfc/nxp/NativeP2pDevice",&(nat->cached_P2pDevice)) == -1) { LOGD("Native Structure initialization failed"); return FALSE; @@ -2048,7 +2048,7 @@ static jobject com_android_nfc_NfcManager_doCreateLlcpConnectionlessSocket(JNIEn /* Create new NativeLlcpConnectionlessSocket object */ - if(nfc_jni_cache_object(e,"com/android/nfc/NativeLlcpConnectionlessSocket",&(connectionlessSocket)) == -1) + if(nfc_jni_cache_object(e,"com/android/nfc/nxp/NativeLlcpConnectionlessSocket",&(connectionlessSocket)) == -1) { return NULL; } @@ -2166,7 +2166,7 @@ static jobject com_android_nfc_NfcManager_doCreateLlcpServiceSocket(JNIEnv *e, j TRACE("phLibNfc_Llcp_Listen() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); /* Create new NativeLlcpServiceSocket object */ - if(nfc_jni_cache_object(e,"com/android/nfc/NativeLlcpServiceSocket",&(serviceSocket)) == -1) + if(nfc_jni_cache_object(e,"com/android/nfc/nxp/NativeLlcpServiceSocket",&(serviceSocket)) == -1) { LOGE("Llcp Socket object creation error"); return NULL; @@ -2245,7 +2245,7 @@ static jobject com_android_nfc_NfcManager_doCreateLlcpSocket(JNIEnv *e, jobject TRACE("phLibNfc_Llcp_Socket() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); /* Create new NativeLlcpSocket object */ - if(nfc_jni_cache_object(e,"com/android/nfc/NativeLlcpSocket",&(clientSocket)) == -1) + if(nfc_jni_cache_object(e,"com/android/nfc/nxp/NativeLlcpSocket",&(clientSocket)) == -1) { LOGE("Llcp socket object creation error"); return NULL; @@ -2354,13 +2354,13 @@ static JNINativeMethod gMethods[] = {"doActivateLlcp", "()Z", (void *)com_android_nfc_NfcManager_doActivateLlcp}, - {"doCreateLlcpConnectionlessSocket", "(I)Lcom/android/nfc/NativeLlcpConnectionlessSocket;", + {"doCreateLlcpConnectionlessSocket", "(I)Lcom/android/nfc/nxp/NativeLlcpConnectionlessSocket;", (void *)com_android_nfc_NfcManager_doCreateLlcpConnectionlessSocket}, - {"doCreateLlcpServiceSocket", "(ILjava/lang/String;III)Lcom/android/nfc/NativeLlcpServiceSocket;", + {"doCreateLlcpServiceSocket", "(ILjava/lang/String;III)Lcom/android/nfc/nxp/NativeLlcpServiceSocket;", (void *)com_android_nfc_NfcManager_doCreateLlcpServiceSocket}, - {"doCreateLlcpSocket", "(IIII)Lcom/android/nfc/NativeLlcpSocket;", + {"doCreateLlcpSocket", "(IIII)Lcom/android/nfc/nxp/NativeLlcpSocket;", (void *)com_android_nfc_NfcManager_doCreateLlcpSocket}, {"doGetLastError", "()I", @@ -2389,7 +2389,7 @@ int register_com_android_nfc_NativeNfcManager(JNIEnv *e) } return jniRegisterNativeMethods(e, - "com/android/nfc/NativeNfcManager", + "com/android/nfc/nxp/NativeNfcManager", gMethods, NELEM(gMethods)); } diff --git a/jni/com_android_nfc_NativeNfcSecureElement.cpp b/jni/com_android_nfc_NativeNfcSecureElement.cpp index f309122..56b248f 100755 --- a/jni/com_android_nfc_NativeNfcSecureElement.cpp +++ b/jni/com_android_nfc_NativeNfcSecureElement.cpp @@ -720,7 +720,7 @@ static JNINativeMethod gMethods[] = int register_com_android_nfc_NativeNfcSecureElement(JNIEnv *e) { return jniRegisterNativeMethods(e, - "com/android/nfc/NativeNfcSecureElement", + "com/android/nfc/nxp/NativeNfcSecureElement", gMethods, NELEM(gMethods)); } diff --git a/jni/com_android_nfc_NativeNfcTag.cpp b/jni/com_android_nfc_NativeNfcTag.cpp index 566b28e..b9fcb21 100644 --- a/jni/com_android_nfc_NativeNfcTag.cpp +++ b/jni/com_android_nfc_NativeNfcTag.cpp @@ -1248,7 +1248,7 @@ static JNINativeMethod gMethods[] = int register_com_android_nfc_NativeNfcTag(JNIEnv *e) { return jniRegisterNativeMethods(e, - "com/android/nfc/NativeNfcTag", + "com/android/nfc/nxp/NativeNfcTag", gMethods, NELEM(gMethods)); } diff --git a/jni/com_android_nfc_NativeP2pDevice.cpp b/jni/com_android_nfc_NativeP2pDevice.cpp index fd9af3e..568379e 100644 --- a/jni/com_android_nfc_NativeP2pDevice.cpp +++ b/jni/com_android_nfc_NativeP2pDevice.cpp @@ -478,7 +478,7 @@ static JNINativeMethod gMethods[] = int register_com_android_nfc_NativeP2pDevice(JNIEnv *e) { return jniRegisterNativeMethods(e, - "com/android/nfc/NativeP2pDevice", + "com/android/nfc/nxp/NativeP2pDevice", gMethods, NELEM(gMethods)); } |