Lines Matching refs:status
270 bt_status_t status; in initializeNative() local
295 if ( (status = sBluetoothHfpInterface->init(&sBluetoothHfpCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
296 ALOGE("Failed to initialize Bluetooth HFP, status: %d", status); in initializeNative()
306 bt_status_t status; in cleanupNative() local
328 bt_status_t status; in connectHfpNative() local
339 if ((status = sBluetoothHfpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectHfpNative()
340 ALOGE("Failed HF connection, status: %d", status); in connectHfpNative()
343 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative()
348 bt_status_t status; in disconnectHfpNative() local
358 if ( (status = sBluetoothHfpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectHfpNative()
359 ALOGE("Failed HF disconnection, status: %d", status); in disconnectHfpNative()
362 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectHfpNative()
367 bt_status_t status; in connectAudioNative() local
377 if ( (status = sBluetoothHfpInterface->connect_audio((bt_bdaddr_t *)addr)) != in connectAudioNative()
379 ALOGE("Failed HF audio connection, status: %d", status); in connectAudioNative()
382 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectAudioNative()
387 bt_status_t status; in disconnectAudioNative() local
397 if ( (status = sBluetoothHfpInterface->disconnect_audio((bt_bdaddr_t *) addr)) != in disconnectAudioNative()
399 ALOGE("Failed HF audio disconnection, status: %d", status); in disconnectAudioNative()
402 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectAudioNative()
406 bt_status_t status; in startVoiceRecognitionNative() local
409 if ( (status = sBluetoothHfpInterface->start_voice_recognition()) != BT_STATUS_SUCCESS) { in startVoiceRecognitionNative()
410 ALOGE("Failed to start voice recognition, status: %d", status); in startVoiceRecognitionNative()
412 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in startVoiceRecognitionNative()
416 bt_status_t status; in stopVoiceRecognitionNative() local
419 if ( (status = sBluetoothHfpInterface->stop_voice_recognition()) != BT_STATUS_SUCCESS) { in stopVoiceRecognitionNative()
420 ALOGE("Failed to stop voice recognition, status: %d", status); in stopVoiceRecognitionNative()
422 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in stopVoiceRecognitionNative()
426 bt_status_t status; in setVolumeNative() local
429 if ( (status = sBluetoothHfpInterface->volume_control((bthf_volume_type_t) volume_type, in setVolumeNative()
431 ALOGE("FAILED to control volume, status: %d", status); in setVolumeNative()
433 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in setVolumeNative()
439 bt_status_t status; in notifyDeviceStatusNative() local
442 if ( (status = sBluetoothHfpInterface->device_status_notification in notifyDeviceStatusNative()
445 ALOGE("FAILED to notify device status, status: %d", status); in notifyDeviceStatusNative()
447 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in notifyDeviceStatusNative()
451 bt_status_t status; in copsResponseNative() local
457 if ( (status = sBluetoothHfpInterface->cops_response(operator_name)) != BT_STATUS_SUCCESS) { in copsResponseNative()
458 ALOGE("Failed sending cops response, status: %d", status); in copsResponseNative()
461 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in copsResponseNative()
467 bt_status_t status; in cindResponseNative() local
470 if ( (status = sBluetoothHfpInterface->cind_response(service, num_active, num_held, in cindResponseNative()
473 ALOGE("Failed cind_response, status: %d", status); in cindResponseNative()
475 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in cindResponseNative()
480 bt_status_t status; in atResponseStringNative() local
486 if ( (status = sBluetoothHfpInterface->formatted_at_response(response)) != BT_STATUS_SUCCESS) { in atResponseStringNative()
487 ALOGE("Failed formatted AT response, status: %d", status); in atResponseStringNative()
490 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in atResponseStringNative()
494 bt_status_t status; in atResponseCodeNative() local
497 …if ( (status = sBluetoothHfpInterface->at_response((bthf_at_response_t) response_code, cmee_code))… in atResponseCodeNative()
499 ALOGE("Failed AT response, status: %d", status); in atResponseCodeNative()
501 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in atResponseCodeNative()
507 bt_status_t status; in clccResponseNative() local
514 if ( (status = sBluetoothHfpInterface->clcc_response(index, (bthf_call_direction_t) dir, in clccResponseNative()
518 ALOGE("Failed sending CLCC response, status: %d", status); in clccResponseNative()
522 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in clccResponseNative()
527 bt_status_t status; in phoneStateChangeNative() local
533 if ( (status = sBluetoothHfpInterface->phone_state_change(num_active, num_held, in phoneStateChangeNative()
536 ALOGE("Failed report phone state change, status: %d", status); in phoneStateChangeNative()
539 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in phoneStateChangeNative()