RE-APPLY: Use custom metadata object for all logging

The metadata object in AVRCP handles null checks and fields properly
helping prevent crashes caused by poorly behaving media apps. Also add
the duration and track number and total number of tracks fields to the
metadata string.

Re-applying skipped change: Iaa9739f429795cbbb64b24eddfbf90beb8f090ba

Bug: 78562371
Fixes: 112863287
Test: Compile and "adb shell dumpsys bluetooth_manager"
Change-Id: I15398d28381ed42c24780bafa6116b47fed023f1
3 files changed