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.
Bug: 78562371
Test: Compile and "adb shell dumpsys bluetooth_manager"
Change-Id: Iaa9739f429795cbbb64b24eddfbf90beb8f090ba
Merged-In: Iaa9739f429795cbbb64b24eddfbf90beb8f090ba
(cherry picked from commit a9edfd4544b3091d597d61d99ccfa2475d3816d5)
3 files changed