Lines Matching refs:sCallbackEnv
41 static JNIEnv *sCallbackEnv = NULL;
44 sCallbackEnv = getCallbackEnv();
47 if (sCallbackEnv != env || sCallbackEnv == NULL) {
48 ALOGE("Callback env check fail: env: %p, callback: %p", env, sCallbackEnv);
57 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAppRegistrationState, app_id,
59 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
68 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
71 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
77 fileDescriptor = jniCreateFileDescriptor(sCallbackEnv, fd);
80 sCallbackEnv->DeleteLocalRef(addr);
85 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr);
86 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onChannelStateChanged, app_id, addr,
88 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
89 sCallbackEnv->DeleteLocalRef(addr);