floss: Refactor GetProfileConnectionState
Currently, GetProfileConnectionState returns different values for different profiles and expects a magic constant (the enum Profile) instead of the profile UUID. Update the api to take the profile uuid instead (which is a Bluetooth assigned UUID) and return a consistent ProfileConnectionState enum. This also distinguishes between a Connected and Active state since some profiles have idle states (i.e. a2dp, hfp) even when they're connected. Bug: 262939746 Tag: #floss Test: Manual test on ChromeOS Change-Id: I42aeecec40c40b9015ef11d8e85c445ab7440f98
Showing
- system/gd/rust/linux/client/src/command_handler.rs 10 additions, 4 deletionssystem/gd/rust/linux/client/src/command_handler.rs
- system/gd/rust/linux/client/src/dbus_iface.rs 3 additions, 3 deletionssystem/gd/rust/linux/client/src/dbus_iface.rs
- system/gd/rust/linux/service/src/iface_bluetooth.rs 3 additions, 3 deletionssystem/gd/rust/linux/service/src/iface_bluetooth.rs
- system/gd/rust/linux/stack/src/bluetooth.rs 15 additions, 10 deletionssystem/gd/rust/linux/stack/src/bluetooth.rs
- system/gd/rust/linux/stack/src/bluetooth_media.rs 62 additions, 9 deletionssystem/gd/rust/linux/stack/src/bluetooth_media.rs
- system/gd/rust/topshim/src/profiles/mod.rs 26 additions, 0 deletionssystem/gd/rust/topshim/src/profiles/mod.rs
Loading
Please register or sign in to comment