LeAudio: Improve BidirectionalPair type
- Changed get() to follow the common idiom, while copy constructor will be called anyway if non-reference type is on the left hand side of the assignment. There is no need for explicit reference getter. - It no longer requires comparison operators, which may no be defined for the more complex types. - For the more complex types a single bidirectional value cannot be computed (e.g. a bidirectional pair of ASEs). This allows us to wrap more complex types and simplify the code further. Bug: 295972694 Test: atest bluetooth_le_audio_test bluetooth_le_audio_client_test bluetooth_test_broadcaster bluetooth_test_broadcaster_state_machine Change-Id: I35518479075732d8aa87082dd9267864161f43b3
Showing
- system/bta/le_audio/client.cc 14 additions, 14 deletionssystem/bta/le_audio/client.cc
- system/bta/le_audio/devices.cc 1 addition, 1 deletionsystem/bta/le_audio/devices.cc
- system/bta/le_audio/devices.h 32 additions, 18 deletionssystem/bta/le_audio/devices.h
- system/bta/le_audio/le_audio_types.cc 17 additions, 0 deletionssystem/bta/le_audio/le_audio_types.cc
- system/bta/le_audio/le_audio_types.h 10 additions, 18 deletionssystem/bta/le_audio/le_audio_types.h
Loading
Please register or sign in to comment