Lines Matching refs:status
308 bt_status_t status; in initializeNative() local
335 status = sBluetoothHfpClientInterface->init(&sBluetoothHfpClientCallbacks); in initializeNative()
336 if (status != BT_STATUS_SUCCESS) { in initializeNative()
337 ALOGE("Failed to initialize Bluetooth HFP Client, status: %d", status); in initializeNative()
368 bt_status_t status; in connectNative() local
378 … if ((status = sBluetoothHfpClientInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectNative()
379 ALOGE("Failed AG connection, status: %d", status); in connectNative()
382 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectNative()
387 bt_status_t status; in disconnectNative() local
397 …if ( (status = sBluetoothHfpClientInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS… in disconnectNative()
398 ALOGE("Failed AG disconnection, status: %d", status); in disconnectNative()
401 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectNative()
406 bt_status_t status; in connectAudioNative() local
416 if ( (status = sBluetoothHfpClientInterface->connect_audio((bt_bdaddr_t *)addr)) != in connectAudioNative()
418 ALOGE("Failed AG audio connection, status: %d", status); in connectAudioNative()
421 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectAudioNative()
426 bt_status_t status; in disconnectAudioNative() local
436 if ( (status = sBluetoothHfpClientInterface->disconnect_audio((bt_bdaddr_t *) addr)) != in disconnectAudioNative()
438 ALOGE("Failed AG audio disconnection, status: %d", status); in disconnectAudioNative()
441 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectAudioNative()
445 bt_status_t status; in startVoiceRecognitionNative() local
448 if ( (status = sBluetoothHfpClientInterface->start_voice_recognition()) != BT_STATUS_SUCCESS) { in startVoiceRecognitionNative()
449 ALOGE("Failed to start voice recognition, status: %d", status); in startVoiceRecognitionNative()
451 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in startVoiceRecognitionNative()
455 bt_status_t status; in stopVoiceRecognitionNative() local
458 if ( (status = sBluetoothHfpClientInterface->stop_voice_recognition()) != BT_STATUS_SUCCESS) { in stopVoiceRecognitionNative()
459 ALOGE("Failed to stop voice recognition, status: %d", status); in stopVoiceRecognitionNative()
461 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in stopVoiceRecognitionNative()
465 bt_status_t status; in setVolumeNative() local
468 …if ( (status = sBluetoothHfpClientInterface->volume_control((bthf_client_volume_type_t) volume_typ… in setVolumeNative()
470 ALOGE("FAILED to control volume, status: %d", status); in setVolumeNative()
472 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in setVolumeNative()
476 bt_status_t status; in dialNative() local
484 if ( (status = sBluetoothHfpClientInterface->dial(number)) != BT_STATUS_SUCCESS) { in dialNative()
485 ALOGE("Failed to dial, status: %d", status); in dialNative()
490 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in dialNative()
494 bt_status_t status; in dialMemoryNative() local
498 if ( (status = sBluetoothHfpClientInterface->dial_memory((int)location)) != BT_STATUS_SUCCESS) { in dialMemoryNative()
499 ALOGE("Failed to dial from memory, status: %d", status); in dialMemoryNative()
501 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in dialMemoryNative()
505 bt_status_t status; in handleCallActionNative() local
509 …if ( (status = sBluetoothHfpClientInterface->handle_call_action((bthf_client_call_action_t)action,… in handleCallActionNative()
510 ALOGE("Failed to enter private mode, status: %d", status); in handleCallActionNative()
512 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in handleCallActionNative()
516 bt_status_t status; in queryCurrentCallsNative() local
520 if ( (status = sBluetoothHfpClientInterface->query_current_calls()) != BT_STATUS_SUCCESS) { in queryCurrentCallsNative()
521 ALOGE("Failed to query current calls, status: %d", status); in queryCurrentCallsNative()
523 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in queryCurrentCallsNative()
527 bt_status_t status; in queryCurrentOperatorNameNative() local
531 …if ( (status = sBluetoothHfpClientInterface->query_current_operator_name()) != BT_STATUS_SUCCESS) { in queryCurrentOperatorNameNative()
532 ALOGE("Failed to query current operator name, status: %d", status); in queryCurrentOperatorNameNative()
534 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in queryCurrentOperatorNameNative()
538 bt_status_t status; in retrieveSubscriberInfoNative() local
542 if ( (status = sBluetoothHfpClientInterface->retrieve_subscriber_info()) != BT_STATUS_SUCCESS) { in retrieveSubscriberInfoNative()
543 ALOGE("Failed to retrieve subscriber info, status: %d", status); in retrieveSubscriberInfoNative()
545 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in retrieveSubscriberInfoNative()
549 bt_status_t status; in sendDtmfNative() local
553 if ( (status = sBluetoothHfpClientInterface->send_dtmf((char)code)) != BT_STATUS_SUCCESS) { in sendDtmfNative()
554 ALOGE("Failed to send DTMF, status: %d", status); in sendDtmfNative()
556 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sendDtmfNative()
560 bt_status_t status; in requestLastVoiceTagNumberNative() local
564 …if ( (status = sBluetoothHfpClientInterface->request_last_voice_tag_number()) != BT_STATUS_SUCCESS… in requestLastVoiceTagNumberNative()
565 ALOGE("Failed to request last Voice Tag number, status: %d", status); in requestLastVoiceTagNumberNative()
567 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in requestLastVoiceTagNumberNative()
572 bt_status_t status; in sendATCmdNative() local
581 if ((status = sBluetoothHfpClientInterface->send_at_cmd(cmd,val1,val2,arg)) != in sendATCmdNative()
583 ALOGE("Failed to send cmd, status: %d", status); in sendATCmdNative()
589 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sendATCmdNative()