A2DP: JNI callback to query if mandatory codec is more preferred

Because previous codec preference is saved at Java layer, this change
provides a method for the Bluetooth stack to query whether those
optional codecs are enabled or not.

Bug: 134131114
Bug: 147572898
Test: Local A2DP initializes connections
Change-Id: Ife9ba2686c434d689ba211dc3e8c2d16ac1526e7
2 files changed