Improve robustness of thumbnail color checks.

Comparing only a single pixel in the middle of the thumbnail was
pretty funky and unreliable.  This change improves the logic to
use gaussian blurring to average the entire bitmap, and then uses
HSV for color comparisons, which is more robust than RGB to
changes introduced by lossy compression algorithms.

Bug: 156984450
Test: atest CtsProviderTestCases:android.provider.cts.media.MediaStore_Video_ThumbnailsTest
Test: atest CtsProviderTestCases:android.provider.cts.media.MediaStore_Images_ThumbnailsTest
Change-Id: I41f0bf870096ae36bbc931badedb50b195d0d291
4 files changed