Provide thumbnails for generic Uris.

A specific media item can be surfaced multiple ways, through both
it's type-specific Uri, and through generic collection Uris such as
Files.getContentUris().

It's entirely reasonable for apps to request thumbnails for any Uri
hosted by MediaProvider, so resolve the underlying media type for
any of these generic collection Uris.

Bug: 143351625
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ib92b008130832def7c65784e2e38853e62856d0b
1 file changed