Home | History | Annotate | Download | only in jni

Lines Matching refs:sCallbackEnv

186 static JNIEnv *sCallbackEnv = NULL;
189 sCallbackEnv = getCallbackEnv();
192 if (sCallbackEnv != env || sCallbackEnv == NULL) return false;
203 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status,
205 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
217 jstring address = sCallbackEnv->NewStringUTF(c_address);
218 jbyteArray jb = sCallbackEnv->NewByteArray(62);
219 sCallbackEnv->SetByteArrayRegion(jb, 0, 62, (jbyte *) adv_data);
221 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onScanResult
224 sCallbackEnv->DeleteLocalRef(address);
225 sCallbackEnv->DeleteLocalRef(jb);
226 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
238 jstring address = sCallbackEnv->NewStringUTF(c_address);
239 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnected,
241 sCallbackEnv->DeleteLocalRef(address);
242 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
253 jstring address = sCallbackEnv->NewStringUTF(c_address);
254 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDisconnected,
256 sCallbackEnv->DeleteLocalRef(address);
257 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
263 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchCompleted,
265 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
271 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchResult, conn_id,
273 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
281 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetCharacteristic
284 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
292 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetDescriptor
295 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
302 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetIncludedService
304 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
311 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onRegisterForNotifications
313 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
325 jstring address = sCallbackEnv->NewStringUTF(c_address);
326 jbyteArray jb = sCallbackEnv->NewByteArray(p_data->len);
327 sCallbackEnv->SetByteArrayRegion(jb, 0, p_data->len, (jbyte *) p_data->value);
329 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNotify
333 sCallbackEnv->DeleteLocalRef(address);
334 sCallbackEnv->DeleteLocalRef(jb);
335 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
345 jb = sCallbackEnv->NewByteArray(p_data->value.len);
346 sCallbackEnv->SetByteArrayRegion(jb, 0, p_data->value.len,
350 jb = sCallbackEnv->NewByteArray(1);
351 sCallbackEnv->SetByteArrayRegion(jb, 0, 1, (jbyte *) &value);
354 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onReadCharacteristic
357 sCallbackEnv->DeleteLocalRef(jb);
358 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
364 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onWriteCharacteristic
367 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
373 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onExecuteCompleted
375 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
385 jb = sCallbackEnv->NewByteArray(p_data->value.len);
386 sCallbackEnv->SetByteArrayRegion(jb, 0, p_data->value.len,
389 jb = sCallbackEnv->NewByteArray(1);
392 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onReadDescriptor
397 sCallbackEnv->DeleteLocalRef(jb);
398 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
404 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onWriteDescriptor
408 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
419 jstring address = sCallbackEnv->NewStringUTF(c_address);
420 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onReadRemoteRssi,
422 sCallbackEnv->DeleteLocalRef(address);
423 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
429 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAdvertiseCallback, status, client_if);
430 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
462 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onServerRegistered
464 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
476 jstring address = sCallbackEnv->NewStringUTF(c_address);
477 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientConnected,
479 sCallbackEnv->DeleteLocalRef(address);
480 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
487 sCallbackEnv
490 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
498 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onIncludedServiceAdded,
500 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
507 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCharacteristicAdded,
510 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
518 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDescriptorAdded,
521 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
527 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onServiceStarted, status,
529 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
535 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onServiceStopped, status,
537 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
543 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onServiceDeleted, status,
545 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
558 jstring address = sCallbackEnv->NewStringUTF(c_address);
559 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAttributeRead,
562 sCallbackEnv->DeleteLocalRef(address);
563 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
578 jstring address = sCallbackEnv->NewStringUTF(c_address);
580 jbyteArray val = sCallbackEnv->NewByteArray(length);
581 if (val) sCallbackEnv->SetByteArrayRegion(val, 0, length, (jbyte*)value);
582 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAttributeWrite,
585 sCallbackEnv->DeleteLocalRef(address);
586 sCallbackEnv->DeleteLocalRef(val);
587 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
600 jstring address = sCallbackEnv->NewStringUTF(c_address);
601 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onExecuteWrite,
603 sCallbackEnv->DeleteLocalRef(address);
604 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
610 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onResponseSendCompleted,
612 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);