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
Showing
- system/bta/le_audio/client.cc 38 additions, 37 deletionssystem/bta/le_audio/client.cc
- system/bta/le_audio/devices.cc 36 additions, 36 deletionssystem/bta/le_audio/devices.cc
- system/bta/le_audio/devices.h 42 additions, 23 deletionssystem/bta/le_audio/devices.h
- system/bta/le_audio/devices_test.cc 8 additions, 7 deletionssystem/bta/le_audio/devices_test.cc
- system/bta/le_audio/le_audio_client_test.cc 2 additions, 2 deletionssystem/bta/le_audio/le_audio_client_test.cc
- system/bta/le_audio/state_machine.cc 15 additions, 10 deletionssystem/bta/le_audio/state_machine.cc
- system/bta/le_audio/state_machine_test.cc 6 additions, 6 deletionssystem/bta/le_audio/state_machine_test.cc
Loading
Please register or sign in to comment