Loading system/bta/le_audio/state_machine.cc +8 −6 Original line number Diff line number Diff line Loading @@ -688,12 +688,14 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine { */ group->UpdateAudioContextTypeAvailability(); /* ACL of one of the device has been dropped. * If there is active CIS, do nothing here. Just update the available * contexts table. if (group->IsAnyDeviceConnected()) { /* * ACL of one of the device has been dropped. If number of CISes has * changed notify upper layer so the offloader can be updated with CIS * information. */ if (group->IsAnyDeviceConnected() && !group->HaveAllCisesDisconnected()) { if ((group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) && if (!group->HaveAllCisesDisconnected() && (group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) && (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING)) { /* We keep streaming but want others to let know user that it might be Loading system/bta/le_audio/state_machine_test.cc +2 −0 Original line number Diff line number Diff line Loading @@ -2988,6 +2988,8 @@ TEST_F(StateMachineTest, testStateTransitionTimeoutOnIdleState) { .source = types::AudioContexts(context_type)})); // Disconnect device // in client.cc before this function is called, state of device is changed. leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); LeAudioGroupStateMachine::Get()->ProcessHciNotifAclDisconnected( group, leAudioDevice); Loading Loading
system/bta/le_audio/state_machine.cc +8 −6 Original line number Diff line number Diff line Loading @@ -688,12 +688,14 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine { */ group->UpdateAudioContextTypeAvailability(); /* ACL of one of the device has been dropped. * If there is active CIS, do nothing here. Just update the available * contexts table. if (group->IsAnyDeviceConnected()) { /* * ACL of one of the device has been dropped. If number of CISes has * changed notify upper layer so the offloader can be updated with CIS * information. */ if (group->IsAnyDeviceConnected() && !group->HaveAllCisesDisconnected()) { if ((group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) && if (!group->HaveAllCisesDisconnected() && (group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING) && (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_STREAMING)) { /* We keep streaming but want others to let know user that it might be Loading
system/bta/le_audio/state_machine_test.cc +2 −0 Original line number Diff line number Diff line Loading @@ -2988,6 +2988,8 @@ TEST_F(StateMachineTest, testStateTransitionTimeoutOnIdleState) { .source = types::AudioContexts(context_type)})); // Disconnect device // in client.cc before this function is called, state of device is changed. leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); LeAudioGroupStateMachine::Get()->ProcessHciNotifAclDisconnected( group, leAudioDevice); Loading