Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfp.cpp295 if ( (status = sBluetoothHfpInterface->init(&sBluetoothHfpCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
339 if ((status = sBluetoothHfpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in connectHfpNative()
343 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectHfpNative()
358 if ( (status = sBluetoothHfpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { in disconnectHfpNative()
362 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectHfpNative()
378 BT_STATUS_SUCCESS) { in connectAudioNative()
382 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in connectAudioNative()
398 BT_STATUS_SUCCESS) { in disconnectAudioNative()
402 return (status == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disconnectAudioNative()
409 if ( (status = sBluetoothHfpInterface->start_voice_recognition()) != BT_STATUS_SUCCESS) { in startVoiceRecognitionNative()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp136 if (status != BT_STATUS_SUCCESS) { in adapter_properties_callback()
193 if (status != BT_STATUS_SUCCESS) { in remote_device_properties_callback()
284 remote_device_properties_callback(BT_STATUS_SUCCESS, (bt_bdaddr_t *)properties[addr_index].val, in device_found_callback()
519 if (ret != BT_STATUS_SUCCESS) { in initNative()
553 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in enableNative()
564 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in disableNative()
575 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in startDiscoveryNative()
586 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in cancelDiscoveryNative()
606 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in createBondNative()
626 result = (ret == BT_STATUS_SUCCESS) ? JNI_TRUE : JNI_FALSE; in removeBondNative()
[all …]
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_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_hid.cpp206 if ( (status = sBluetoothHidInterface->init(&sBluetoothHidCallbacks)) != BT_STATUS_SUCCESS) { in initializeNative()
254 BT_STATUS_SUCCESS) { in connectHidNative()
276 BT_STATUS_SUCCESS) { in disconnectHidNative()
299 BT_STATUS_SUCCESS) { in getProtocolModeNative()
320 BT_STATUS_SUCCESS) { in virtualUnPlugNative()
357 BT_STATUS_SUCCESS) { in setProtocolModeNative()
384 BT_STATUS_SUCCESS) { in getReportNative()
410 BT_STATUS_SUCCESS) { in setReportNative()
434 BT_STATUS_SUCCESS) { in sendDataNative()
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()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAbstractionLayer.java68 public static final int BT_STATUS_SUCCESS = 0; field in AbstractionLayer
DBondStateMachine.java344 if (reason == AbstractionLayer.BT_STATUS_SUCCESS) in getUnbondReasonFromHALCode()