connectAllSupportedProfile as all connection policy are set to UNKNOWN
CONNECTION_POLICY_UNKNOWN is the default value, and it only be cleared as unpair. If the device is connected after the pairing, it would connectAllSupportedProfile with setConnectionPolicy to CONNECTION_POLICY_ALLOWED. With LE audio only device combine with LE audio toggle, it would be possible that all the supported profile become CONNECTION_POLICY_FORBBIDEN. We should check if one of the profile is ALLOWED or FORBBIDEN, we would only connect the enabled profile, and not to overwrite the connection policy setting Also contains minor refactor in this change about connectAllSupprotedProfile, it would make the improvement on the readability on log and code Bug: 279366294 Test: disable le audio toggle, and then connect/disconnect device Change-Id: I69da124ee955c9b4714c3b6091feadad7772d3fe
Loading
Please register or sign in to comment