HomeSort by relevance Sort by last modified time
    Searched refs:sCallbackEnv (Results 1 - 8 of 8) sorted by null

  /packages/apps/Bluetooth/jni/
com_android_bluetooth_a2dp.cpp 34 static JNIEnv *sCallbackEnv = NULL;
38 // Caching this could cause this sCallbackEnv to go out-of-sync
41 //if (sCallbackEnv == NULL) {
42 sCallbackEnv = getCallbackEnv();
46 if (sCallbackEnv != env || sCallbackEnv == NULL) return false;
59 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
62 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
66 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr);
67 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, (jint) state
    [all...]
com_android_bluetooth_hfp.cpp 55 static JNIEnv *sCallbackEnv = NULL;
59 // Caching this could cause this sCallbackEnv to go out-of-sync
62 //if (sCallbackEnv == NULL) {
63 sCallbackEnv = getCallbackEnv();
66 if (sCallbackEnv != env || sCallbackEnv == NULL) return false;
76 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
79 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
83 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr);
84 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged
    [all...]
com_android_bluetooth_avrcp.cpp 38 static JNIEnv *sCallbackEnv = NULL;
42 // Caching this could cause this sCallbackEnv to go out-of-sync
45 sCallbackEnv = getCallbackEnv();
48 if (sCallbackEnv != env || sCallbackEnv == NULL) return false;
60 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
63 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
67 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr);
68 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getRcFeatures, addr, (jint)features);
69 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__)
    [all...]
com_android_bluetooth_hdp.cpp 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)
    [all...]
com_android_bluetooth_gatt.cpp 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_onScanResul
    [all...]
com_android_bluetooth_pan.cpp 49 static JNIEnv *sCallbackEnv = NULL;
52 sCallbackEnv = getCallbackEnv();
55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false;
63 jstring js_ifname = sCallbackEnv->NewStringUTF(ifname);
64 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, (jint)state, (jint)error,
66 sCallbackEnv->DeleteLocalRef(js_ifname);
74 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t));
77 checkAndClearExceptionFromCallback(sCallbackEnv, __FUNCTION__);
80 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr)
    [all...]
com_android_bluetooth_hid.cpp 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__)
    [all...]
  /frameworks/base/services/jni/
com_android_server_location_FlpHardwareProvider.cpp 31 static JNIEnv *sCallbackEnv = NULL;
75 if(sCallbackEnv == NULL || sCallbackEnv != env) {
76 ALOGE("CallbackThread check fail: env=%p, expected=%p", env, sCallbackEnv);
89 if(sCallbackEnv != NULL) {
103 jint attachResult = javaVm->AttachCurrentThread(&sCallbackEnv, &args);
109 ALOGV("Callback thread attached: %p", sCallbackEnv);
126 sCallbackEnv = NULL;
342 jclass locationClass = sCallbackEnv->FindClass(LOCATION_CLASS_NAME);
343 jmethodID locationCtor = sCallbackEnv->GetMethodID
    [all...]

Completed in 805 milliseconds