Skip to content
Snippets Groups Projects
Commit ac69da6c authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

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
parent 846078a2
No related branches found
No related tags found
Loading
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