Home
last modified time | relevance | path

Searched refs:BT_STATUS_SUCCESS (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfpclient.cpp336 if (status != BT_STATUS_SUCCESS) { in initializeNative()
379 … if ((status = sBluetoothHfpClientInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectNative()
383 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectNative()
398 … ( (status = sBluetoothHfpClientInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectNative()
402 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectNative()
418 BT_STATUS_SUCCESS) { in connectAudioNative()
422 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectAudioNative()
438 BT_STATUS_SUCCESS) { in disconnectAudioNative()
442 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectAudioNative()
449 if ( (status = sBluetoothHfpClientInterface->start_voice_recognition()) != BT_STATUS_SUCCESS) { in startVoiceRecognitionNative()
[all …]
Dcom_android_bluetooth_hfp.cpp479 max_hf_clients)) != BT_STATUS_SUCCESS) { in initializeNative()
523 if ((status = sBluetoothHfpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectHfpNative()
527 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative()
542 if ( (status = sBluetoothHfpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectHfpNative()
546 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectHfpNative()
562 BT_STATUS_SUCCESS) { in connectAudioNative()
566 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectAudioNative()
582 BT_STATUS_SUCCESS) { in disconnectAudioNative()
586 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectAudioNative()
601 != BT_STATUS_SUCCESS) { in startVoiceRecognitionNative()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp134 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback()
191 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback()
282 remote_device_properties_callback(BT_STATUS_SUCCESS, (bt_bdaddr_t *)properties[addr_index].val, in device_found_callback()
555 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL; in acquire_wake_lock_callout()
586 return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL; in release_wake_lock_callout()
609 if (status != BT_STATUS_SUCCESS) { in remote_mas_instances_callback()
747 if (ret != BT_STATUS_SUCCESS) { in initNative()
753 if (ret != BT_STATUS_SUCCESS) { in initNative()
769 if ( (sBluetoothMceInterface->init(&sBluetoothMceCallbacks)) != BT_STATUS_SUCCESS) { in initNative()
801 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in enableNative()
[all …]
Dcom_android_bluetooth_avrcp.cpp210 BT_STATUS_SUCCESS) { in initNative()
246 songLen, songPos)) != BT_STATUS_SUCCESS) { in getPlayStatusRspNative()
250 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in getPlayStatusRspNative()
310 BT_STATUS_SUCCESS) { in getElementAttrRspNative()
316 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in getElementAttrRspNative()
329 (btrc_notification_type_t)type, &param)) != BT_STATUS_SUCCESS) { in registerNotificationRspPlayStatusNative()
333 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in registerNotificationRspPlayStatusNative()
357 (btrc_notification_type_t)type, &param)) != BT_STATUS_SUCCESS) { in registerNotificationRspTrackChangeNative()
362 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in registerNotificationRspTrackChangeNative()
375 (btrc_notification_type_t)type, &param)) != BT_STATUS_SUCCESS) { in registerNotificationRspPlayPosNative()
[all …]
Dcom_android_bluetooth_hid.cpp261 if ( (status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
309 BT_STATUS_SUCCESS) { in connectHidNative()
331 BT_STATUS_SUCCESS) { in disconnectHidNative()
354 BT_STATUS_SUCCESS) { in getProtocolModeNative()
375 BT_STATUS_SUCCESS) { in virtualUnPlugNative()
412 BT_STATUS_SUCCESS) { in setProtocolModeNative()
439 BT_STATUS_SUCCESS) { in getReportNative()
465 BT_STATUS_SUCCESS) { in setReportNative()
489 BT_STATUS_SUCCESS) { in sendDataNative()
Dcom_android_bluetooth_hdp.cpp160 if ( (status = sBluetoothHdpInterface->init(&sBluetoothHdpCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
213 BT_STATUS_SUCCESS) { in registerHealthAppNative()
227 if ((status = sBluetoothHdpInterface->unregister_application(app_id)) != BT_STATUS_SUCCESS) { in unregisterHealthAppNative()
230 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in unregisterHealthAppNative()
248 BT_STATUS_SUCCESS) { in connectChannelNative()
262 BT_STATUS_SUCCESS) { in disconnectChannelNative()
Dcom_android_bluetooth_a2dp.cpp164 if ( (status = sBluetoothA2dpInterface->init(&sBluetoothA2dpCallbacks)) != BT_STATUS_SUCCESS) { in initNative()
208 if ((status = sBluetoothA2dpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectA2dpNative()
212 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectA2dpNative()
227 if ( (status = sBluetoothA2dpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectA2dpNative()
231 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectA2dpNative()
Dcom_android_bluetooth_a2dp_sink.cpp170 if ( (status = sBluetoothA2dpInterface->init(&sBluetoothA2dpCallbacks)) != BT_STATUS_SUCCESS) { in initNative()
214 if ((status = sBluetoothA2dpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectA2dpNative()
218 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectA2dpNative()
233 if ( (status = sBluetoothA2dpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectA2dpNative()
237 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectA2dpNative()
Dcom_android_bluetooth_pan.cpp138 if ( (status = sPanIf->init(&sBluetoothPanCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
172 return status == BT_STATUS_SUCCESS ? JNI_TRUE : JNI_FALSE; in enablePanNative()
201 BT_STATUS_SUCCESS) { in connectPanNative()
223 BT_STATUS_SUCCESS) { in disconnectPanNative()
Dcom_android_bluetooth_avrcp_controller.cpp132 BT_STATUS_SUCCESS) { in initNative()
178 (uint8_t)key_code, (uint8_t)key_state))!= BT_STATUS_SUCCESS) { in sendPassThroughCommandNative()
183 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in sendPassThroughCommandNative()
Dcom_android_bluetooth_gatt.cpp906 if ( (status = sGattIf->init(&sGattCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAbstractionLayer.java71 public static final int BT_STATUS_SUCCESS = 0; field in AbstractionLayer
DBondStateMachine.java465 if (reason == AbstractionLayer.BT_STATUS_SUCCESS) in getUnbondReasonFromHALCode()