PhonePolicy: Fix no auto-connect to other profiles while previous attempt failed partially

When profiles connected, we may do auto-connect other profiles if they
are not connected, and add into a retry set. It will be removed from
this set when connected. If the auto-connecting profile is not
connected, it will stay at this set, and cause we won't auto-connect
next time. This CL removes device from profiles' retry set by
disconnection state.

Bug: 127872462
Test: runtest bluetooth -c com.android.bluetooth.btservice.PhonePolicyTest
Change-Id: I8cf037206357bac1ef5034f71f60010aab25e2c1
2 files changed