Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 23f2347a authored by Michal Belusiak's avatar Michal Belusiak
Browse files

Bass: Refactor handling select source requests

Collect the variables that depend on syncHandle and modify them
together where possible. Add synchronization to ensure they are
updated safely. This prevents unexpected behavior from concurrent
modifications. Allow the creation of isAddedToSelectSourceRequest
since they are modified simultaneously. In the future, this will
simplify refactoring to create a single object to store them together.

Ignore synced broadcast in onSyncEstablished if there is no pending
synchronization. There is no possibility to unsync it as we do not
have mPeriodicAdvCallbacksMap for it.

Bug: 389722679
Flag: EXEMPT, refactor covered by unit tests
Test: atest BassClientServiceTest
Change-Id: Iddf2dfdd880b6c9594e6d8e627d9ecabe610cc9e
parent 4a9aa21c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment