Lines Matching refs:NULL

56 static const btsdp_interface_t *sBluetoothSdpInterface = NULL;
66 static jobject sCallbacksObj = NULL;
67 static JNIEnv *sCallbackEnv = NULL;
73 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread()
83 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
87 if (sBluetoothSdpInterface !=NULL) { in initializeNative()
90 sBluetoothSdpInterface = NULL; in initializeNative()
93 btInf->get_profile_interface(BT_PROFILE_SDP_CLIENT_ID)) == NULL) { in initializeNative()
135 jbyte *addr = NULL, *uuid = NULL; in sdpSearchNative()
141 addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative()
142 if (addr == NULL) { in sdpSearchNative()
146 uuid = env->GetByteArrayElements(uuidObj, NULL); in sdpSearchNative()
172 jbyteArray addr = NULL; in sdp_search_callback()
173 jbyteArray uuid = NULL; in sdp_search_callback()
174 jstring service_name = NULL; in sdp_search_callback()
184 if (addr == NULL) goto clean; in sdp_search_callback()
187 if (uuid == NULL) goto clean; in sdp_search_callback()
198 service_name = NULL; in sdp_search_callback()
251 if (formats_list == NULL) goto clean; in sdp_search_callback()
279 jbyteArray record_data = NULL; in sdp_search_callback()
282 if (record_data == NULL) goto clean; in sdp_search_callback()
293 if (service_name != NULL) { in sdp_search_callback()
295 service_name = NULL; in sdp_search_callback()
300 if (service_name != NULL) in sdp_search_callback()
302 if (addr != NULL) sCallbackEnv->DeleteLocalRef(addr); in sdp_search_callback()
303 if (uuid != NULL) sCallbackEnv->DeleteLocalRef(uuid); in sdp_search_callback()
312 const char* service_name = NULL; in sdpCreateMapMasRecordNative()
320 if (name_str != NULL) { in sdpCreateMapMasRecordNative()
321 service_name = env->GetStringUTFChars(name_str, NULL); in sdpCreateMapMasRecordNative()
325 record.mas.hdr.service_name = NULL; in sdpCreateMapMasRecordNative()
354 const char* service_name = NULL; in sdpCreateMapMnsRecordNative()
362 if (name_str != NULL) { in sdpCreateMapMnsRecordNative()
363 service_name = env->GetStringUTFChars(name_str, NULL); in sdpCreateMapMnsRecordNative()
367 record.mns.hdr.service_name = NULL; in sdpCreateMapMnsRecordNative()
394 const char* service_name = NULL; in sdpCreatePbapPseRecordNative()
402 if (name_str != NULL) { in sdpCreatePbapPseRecordNative()
403 service_name = env->GetStringUTFChars(name_str, NULL); in sdpCreatePbapPseRecordNative()
407 record.pse.hdr.service_name = NULL; in sdpCreatePbapPseRecordNative()
435 const char* service_name = NULL; in sdpCreateOppOpsRecordNative()
445 if (name_str != NULL) { in sdpCreateOppOpsRecordNative()
446 service_name = env->GetStringUTFChars(name_str, NULL); in sdpCreateOppOpsRecordNative()
450 record.ops.hdr.service_name = NULL; in sdpCreateOppOpsRecordNative()
457 formats_list = env->GetByteArrayElements(supported_formats_list, NULL); in sdpCreateOppOpsRecordNative()
458 if (formats_list != NULL) { in sdpCreateOppOpsRecordNative()
486 const char* service_name = NULL; in sdpCreateSapsRecordNative()
494 if (name_str != NULL) { in sdpCreateSapsRecordNative()
495 service_name = env->GetStringUTFChars(name_str, NULL); in sdpCreateSapsRecordNative()
499 record.mas.hdr.service_name = NULL; in sdpCreateSapsRecordNative()
538 if ( (btInf = getBluetoothInterface()) == NULL) { in cleanupNative()
543 if (sBluetoothSdpInterface !=NULL) { in cleanupNative()
546 sBluetoothSdpInterface = NULL; in cleanupNative()
549 if (sCallbacksObj != NULL) { in cleanupNative()
552 sCallbacksObj = NULL; in cleanupNative()