Home | History | Annotate | Download | only in jni

Lines Matching refs:sCallbackEnv

43 static JNIEnv *sCallbackEnv = NULL;
48 // Caching this could cause this sCallbackEnv to go out-of-sync
52 sCallbackEnv = getCallbackEnv();
55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false;
63 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
66 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
69 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr);
71 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state);
72 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
73 sCallbackEnv->DeleteLocalRef(addr);
82 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
86 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
89 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
92 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr);
94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, addr, (jint) mode);
95 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
96 sCallbackEnv->DeleteLocalRef(addr);
104 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
107 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
110 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr);
112 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, addr, (jint) hh_status);
113 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
114 sCallbackEnv->DeleteLocalRef(addr);
119 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
122 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
125 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr);
127 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, addr, status);
128 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
129 sCallbackEnv->DeleteLocalRef(addr);*/