Lines Matching refs:NULL
104 static bthf_client_callbacks_t* bt_hf_client_callbacks = NULL;
122 if (bt_hf_client_callbacks == NULL) { \
132 if (bt_hf_client_callbacks == NULL) { \
165 if (cb == NULL || !is_connected(cb)) { in btif_in_hf_client_generic_evt()
213 return NULL; in btif_hf_client_get_cb_by_handle()
237 return NULL; in btif_hf_client_get_cb_by_bda()
257 return NULL; in btif_hf_client_allocate_cb()
298 if (cb == NULL) { in connect_int()
337 if (cb != NULL) { in disconnect()
356 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in connect_audio()
362 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BCC, 0, 0, NULL); in connect_audio()
371 sizeof(RawAddress), NULL); in connect_audio()
386 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in disconnect_audio()
405 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in start_voice_recognition()
410 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BVRA, 1, 0, NULL); in start_voice_recognition()
427 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in stop_voice_recognition()
432 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BVRA, 0, 0, NULL); in stop_voice_recognition()
450 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in volume_control()
456 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_VGS, volume, 0, NULL); in volume_control()
459 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_VGM, volume, 0, NULL); in volume_control()
480 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in dial()
487 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BLDN, 0, 0, NULL); in dial()
503 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in dial_memory()
507 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_ATD, location, 0, NULL); in dial_memory()
524 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in handle_call_action()
531 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 0, 0, NULL); in handle_call_action()
538 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 1, 0, NULL); in handle_call_action()
545 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 2, 0, NULL); in handle_call_action()
551 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 3, 0, NULL); in handle_call_action()
557 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 4, 0, NULL); in handle_call_action()
566 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 1, idx, NULL); in handle_call_action()
575 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHLD, 2, idx, NULL); in handle_call_action()
580 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_ATA, 0, 0, NULL); in handle_call_action()
583 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CHUP, 0, 0, NULL); in handle_call_action()
586 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BTRH, 0, 0, NULL); in handle_call_action()
589 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BTRH, 1, 0, NULL); in handle_call_action()
592 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BTRH, 2, 0, NULL); in handle_call_action()
612 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in query_current_calls()
617 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CLCC, 0, 0, NULL); in query_current_calls()
635 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in query_current_operator_name()
639 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_COPS, 0, 0, NULL); in query_current_operator_name()
654 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in retrieve_subscriber_info()
658 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_CNUM, 0, 0, NULL); in retrieve_subscriber_info()
673 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in send_dtmf()
677 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_VTS, code, 0, NULL); in send_dtmf()
692 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in request_last_voice_tag_number()
697 BTA_HfClientSendAT(cb->handle, BTA_HF_CLIENT_AT_CMD_BINP, 1, 0, NULL); in request_last_voice_tag_number()
718 bt_hf_client_callbacks = NULL; in cleanup()
734 if (cb == NULL || !is_connected(cb)) return BT_STATUS_FAIL; in send_at_cmd()
739 val2, (arg != NULL) ? arg : "<null>"); in send_at_cmd()
771 if (cb == NULL || !is_connected(cb)) return; in process_ind_evt()
826 if (cb == NULL && event == BTA_HF_CLIENT_OPEN_EVT) { in btif_hf_client_upstreams_evt()
832 } else if (cb == NULL) { in btif_hf_client_upstreams_evt()
1025 (char*)p_data, sizeof(*p_data), NULL); in bta_hf_client_evt()