Use MSSIMComparer in VectorDrawableScaleTest

Bug: 130208336
Bug: 132133330
Test: This

Move VectorDrawableScaleTest to CtsUiRenderingTestCases so that it can
use the MSSIMComparer. At certain screen densities/sizes, the old
comparison model failed, even though to my eyes the failing result
looked the same as the golden image. Increasing the tolerance of the old
model seemed like it would result in passing images that should fail, so
switch to one that is more akin to perception. The MSSIM calculated
based on density/size from the report is 0.8792351428891768, so use a
threshold just below that. Other uses of the MSSIMComparer use
thresholds of around .9 or higher, so this seems reasonable.
Remove DBG_SCREENSHOT, since the BitmapDumper will now handle that.

In MSSIMComparer, support Bitmaps that are not a multiple of the
WINDOW_SIZE (10), since this test uses a size of 64.

In GoldenImageVerifier, support sizes other than
ActivityTestBase.TEST_WIDTH (90). Otherwise the 64 x 64 Bitmap in this
test throws ArrayIndexOutOfBoundsExceptions.

Move/copy asset files into UiRendering.

Change-Id: I9a5b4a451b5d1cc084c6d8616123dcdc48d02a99
Merged-In: I9a5b4a451b5d1cc084c6d8616123dcdc48d02a99
7 files changed