Support odd (that is, non-even) densities in GradientDrawable#testPreloadDensity

Bug: 35385573
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.drawable.cts.GradientDrawableTest

Also adds a hard-coded tvdpi test, which runs regardless of device DPI.

Change-Id: I1c89d77c7d6ff17e8c1979f736a2a1527eea1f76
1 file changed