Migration of MIME type resolution, DRM handling.
Since MediaFile is a hidden API, migrate it's logic inside the
MediaProvider boundary. Add tests for file name and extension
extraction.
When we detect a DRM file, ask DrmManagerClient to help resolve the
actual underlying MIME type. Then proceed with a normal scan, since
MediaMetadataRetriever already knows how to extract metadata from
DRM files.
Fix some hidden API annotations.
Bug: 141520121, 130680734
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibab11a51350235afc71aed42a89d288b05aa1a75
8 files changed