Loading system/bta/csis/csis_client.cc +4 −2 Original line number Diff line number Diff line Loading @@ -250,8 +250,9 @@ class CsisClientImpl : public CsisClient { auto device = FindDeviceByAddress(addr); if (device == nullptr) { LOG(WARNING) << "Device not connected to profile" << ADDRESS_TO_LOGGABLE_STR(addr); LOG_WARN("Device not connected to profile %s", ADDRESS_TO_LOGGABLE_CSTR(addr)); callbacks_->OnConnectionState(addr, ConnectionState::DISCONNECTED); return; } Loading @@ -261,6 +262,7 @@ class CsisClientImpl : public CsisClient { } else { BTA_GATTC_CancelOpen(gatt_if_, addr, false); DoDisconnectCleanUp(device); callbacks_->OnConnectionState(addr, ConnectionState::DISCONNECTED); } } Loading system/bta/has/has_client.cc +4 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,10 @@ class HasClientImpl : public HasClient { callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, addr); } else { /* Removes active connection. */ if (is_connecting_actively) BTA_GATTC_CancelOpen(gatt_if_, addr, true); if (is_connecting_actively) { BTA_GATTC_CancelOpen(gatt_if_, addr, true); callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, addr); } } /* Removes all registrations for connection. */ Loading system/bta/le_audio/client.cc +3 −2 Original line number Diff line number Diff line Loading @@ -1290,8 +1290,9 @@ class LeAudioClientImpl : public LeAudioClient { LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address); if (!leAudioDevice) { LOG(ERROR) << __func__ << ", leAudioDevice not connected (" << ADDRESS_TO_LOGGABLE_STR(address) << ")"; LOG_WARN("leAudioDevice not connected ( %s )", ADDRESS_TO_LOGGABLE_CSTR(address)); callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, address); return; } Loading system/bta/vc/vc.cc +3 −2 Original line number Diff line number Diff line Loading @@ -630,8 +630,9 @@ class VolumeControlImpl : public VolumeControl { VolumeControlDevice* device = volume_control_devices_.FindByAddress(address); if (!device) { LOG(INFO) << "Device not connected to profile " << ADDRESS_TO_LOGGABLE_STR(address); LOG_WARN("Device not connected to profile %s", ADDRESS_TO_LOGGABLE_CSTR(address)); callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, address); return; } Loading Loading
system/bta/csis/csis_client.cc +4 −2 Original line number Diff line number Diff line Loading @@ -250,8 +250,9 @@ class CsisClientImpl : public CsisClient { auto device = FindDeviceByAddress(addr); if (device == nullptr) { LOG(WARNING) << "Device not connected to profile" << ADDRESS_TO_LOGGABLE_STR(addr); LOG_WARN("Device not connected to profile %s", ADDRESS_TO_LOGGABLE_CSTR(addr)); callbacks_->OnConnectionState(addr, ConnectionState::DISCONNECTED); return; } Loading @@ -261,6 +262,7 @@ class CsisClientImpl : public CsisClient { } else { BTA_GATTC_CancelOpen(gatt_if_, addr, false); DoDisconnectCleanUp(device); callbacks_->OnConnectionState(addr, ConnectionState::DISCONNECTED); } } Loading
system/bta/has/has_client.cc +4 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,10 @@ class HasClientImpl : public HasClient { callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, addr); } else { /* Removes active connection. */ if (is_connecting_actively) BTA_GATTC_CancelOpen(gatt_if_, addr, true); if (is_connecting_actively) { BTA_GATTC_CancelOpen(gatt_if_, addr, true); callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, addr); } } /* Removes all registrations for connection. */ Loading
system/bta/le_audio/client.cc +3 −2 Original line number Diff line number Diff line Loading @@ -1290,8 +1290,9 @@ class LeAudioClientImpl : public LeAudioClient { LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address); if (!leAudioDevice) { LOG(ERROR) << __func__ << ", leAudioDevice not connected (" << ADDRESS_TO_LOGGABLE_STR(address) << ")"; LOG_WARN("leAudioDevice not connected ( %s )", ADDRESS_TO_LOGGABLE_CSTR(address)); callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, address); return; } Loading
system/bta/vc/vc.cc +3 −2 Original line number Diff line number Diff line Loading @@ -630,8 +630,9 @@ class VolumeControlImpl : public VolumeControl { VolumeControlDevice* device = volume_control_devices_.FindByAddress(address); if (!device) { LOG(INFO) << "Device not connected to profile " << ADDRESS_TO_LOGGABLE_STR(address); LOG_WARN("Device not connected to profile %s", ADDRESS_TO_LOGGABLE_CSTR(address)); callbacks_->OnConnectionState(ConnectionState::DISCONNECTED, address); return; } Loading