Lines Matching refs:e
60 static jboolean nativeLlcpConnectionlessSocket_doSendTo(JNIEnv* e, jobject o, in nativeLlcpConnectionlessSocket_doSendTo() argument
66 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nativeLlcpConnectionlessSocket_doSendTo()
67 jfieldID f = e->GetFieldID(c.get(), "mHandle", "I"); in nativeLlcpConnectionlessSocket_doSendTo()
68 jint handle = e->GetIntField(o, f); in nativeLlcpConnectionlessSocket_doSendTo()
70 ScopedByteArrayRO bytes(e, data); in nativeLlcpConnectionlessSocket_doSendTo()
168 static jobject nativeLlcpConnectionlessSocket_doReceiveFrom(JNIEnv* e, jobject, in nativeLlcpConnectionlessSocket_doReceiveFrom() argument
173 ScopedLocalRef<jclass> clsLlcpPacket(e, NULL); in nativeLlcpConnectionlessSocket_doReceiveFrom()
207 if (nfc_jni_cache_object_local(e, "com/android/nfc/LlcpPacket", in nativeLlcpConnectionlessSocket_doReceiveFrom()
214 clsLlcpPacket.reset(e->GetObjectClass(llcpPacket)); in nativeLlcpConnectionlessSocket_doReceiveFrom()
215 if (e->ExceptionCheck()) { in nativeLlcpConnectionlessSocket_doReceiveFrom()
216 e->ExceptionClear(); in nativeLlcpConnectionlessSocket_doReceiveFrom()
223 f = e->GetFieldID(clsLlcpPacket.get(), "mRemoteSap", "I"); in nativeLlcpConnectionlessSocket_doReceiveFrom()
224 e->SetIntField(llcpPacket, f, (jbyte)sConnlessRecvRemoteSap); in nativeLlcpConnectionlessSocket_doReceiveFrom()
230 f = e->GetFieldID(clsLlcpPacket.get(), "mDataBuffer", "[B"); in nativeLlcpConnectionlessSocket_doReceiveFrom()
233 ScopedLocalRef<jbyteArray> receivedData(e, in nativeLlcpConnectionlessSocket_doReceiveFrom()
234 e->NewByteArray(sConnlessRecvLen)); in nativeLlcpConnectionlessSocket_doReceiveFrom()
235 e->SetByteArrayRegion(receivedData.get(), 0, sConnlessRecvLen, in nativeLlcpConnectionlessSocket_doReceiveFrom()
237 e->SetObjectField(llcpPacket, f, receivedData.get()); in nativeLlcpConnectionlessSocket_doReceiveFrom()
262 static jboolean nativeLlcpConnectionlessSocket_doClose(JNIEnv* e, jobject o) { in nativeLlcpConnectionlessSocket_doClose() argument
265 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nativeLlcpConnectionlessSocket_doClose()
266 jfieldID f = e->GetFieldID(c.get(), "mHandle", "I"); in nativeLlcpConnectionlessSocket_doClose()
267 jint handle = e->GetIntField(o, f); in nativeLlcpConnectionlessSocket_doClose()
300 int register_com_android_nfc_NativeLlcpConnectionlessSocket(JNIEnv* e) { in register_com_android_nfc_NativeLlcpConnectionlessSocket() argument
301 return jniRegisterNativeMethods(e, gNativeLlcpConnectionlessSocketClassName, in register_com_android_nfc_NativeLlcpConnectionlessSocket()