Loading android/app/jni/com_android_bluetooth_hfpclient.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -546,7 +546,8 @@ static jboolean connectNative(JNIEnv* env, jobject object, jbyteArray address) { return JNI_FALSE; } bt_status_t status = sBluetoothHfpClientInterface->connect((RawAddress*)addr); bt_status_t status = sBluetoothHfpClientInterface->connect((const RawAddress*)addr); if (status != BT_STATUS_SUCCESS) { ALOGE("Failed AG connection, status: %d", status); } Loading system/btif/src/btif_hf_client.cc +1 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,7 @@ static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { return BT_STATUS_SUCCESS; } static bt_status_t connect(RawAddress* bd_addr) { static bt_status_t connect(const RawAddress* bd_addr) { BTIF_TRACE_EVENT("HFP Client version is %s", btif_hf_client_version); CHECK_BTHF_CLIENT_INIT(); return btif_queue_connect(UUID_SERVCLASS_HF_HANDSFREE, bd_addr, connect_int); Loading system/include/hardware/bt_hf_client.h +1 −1 Original line number Diff line number Diff line Loading @@ -337,7 +337,7 @@ typedef struct { bt_status_t (*init)(bthf_client_callbacks_t* callbacks); /** connect to audio gateway */ bt_status_t (*connect)(RawAddress* bd_addr); bt_status_t (*connect)(const RawAddress* bd_addr); /** disconnect from audio gateway */ bt_status_t (*disconnect)(const RawAddress* bd_addr); Loading Loading
android/app/jni/com_android_bluetooth_hfpclient.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -546,7 +546,8 @@ static jboolean connectNative(JNIEnv* env, jobject object, jbyteArray address) { return JNI_FALSE; } bt_status_t status = sBluetoothHfpClientInterface->connect((RawAddress*)addr); bt_status_t status = sBluetoothHfpClientInterface->connect((const RawAddress*)addr); if (status != BT_STATUS_SUCCESS) { ALOGE("Failed AG connection, status: %d", status); } Loading
system/btif/src/btif_hf_client.cc +1 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,7 @@ static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { return BT_STATUS_SUCCESS; } static bt_status_t connect(RawAddress* bd_addr) { static bt_status_t connect(const RawAddress* bd_addr) { BTIF_TRACE_EVENT("HFP Client version is %s", btif_hf_client_version); CHECK_BTHF_CLIENT_INIT(); return btif_queue_connect(UUID_SERVCLASS_HF_HANDSFREE, bd_addr, connect_int); Loading
system/include/hardware/bt_hf_client.h +1 −1 Original line number Diff line number Diff line Loading @@ -337,7 +337,7 @@ typedef struct { bt_status_t (*init)(bthf_client_callbacks_t* callbacks); /** connect to audio gateway */ bt_status_t (*connect)(RawAddress* bd_addr); bt_status_t (*connect)(const RawAddress* bd_addr); /** disconnect from audio gateway */ bt_status_t (*disconnect)(const RawAddress* bd_addr); Loading