Skip to content
Snippets Groups Projects
Commit f609a972 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

LeAudio: Improve context type management function naming

While the previous change was focused on the data type
system used for passing audio contexts, this one takes the
code logic into the account and improves the naming scheme
for better context awareness and code readability.

It renames functions around the context type management.
The 'active context' term was ambigious and was replaced
with 'available context', which the BT spec. is using.
Functions now use more coherent naming scheme and since
some of them were returning a bit masks which were
not bit-tested but logically ANDed with other booleans,
they now return boolean type to avoid the confusion and
implicit conversion bugs to happen.

Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test bluetooth_test_broadcaster bluetooth_test_broadcaster_state_machine  --no-bazel-mode
Bug: 249737696
Tag: #refactor
Change-Id: I4305dc64c04bedb904d5e23ef29f5282a27a2860
parent 97f2d3a8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment