Fix density tests.

6949465 android.content.res.cts.ConfigTest#testNewScreenSize failures on JO
6949464 android.content.res.cts.ConfigTest#testDensity failures on JO
6949462 android.content.res.cts.ConfigTest#testCombinations failures on JO
6949461 android.content.res.cts.ConfigTest#testAllEmptyConfigs failures on JO
6949460 android.content.res.cts.ConfigTest#testAllClassicConfigs failures on JO
6948930 android.content.res.cts.ConfigTest#testPrecidence failures on JO

Change-Id: Ida75c9caaeaa8eb06a2d63b5cff33f5670aa2013
diff --git a/tests/tests/content/src/android/content/res/cts/ConfigTest.java b/tests/tests/content/src/android/content/res/cts/ConfigTest.java
index 60197b6..b49f156 100755
--- a/tests/tests/content/src/android/content/res/cts/ConfigTest.java
+++ b/tests/tests/content/src/android/content/res/cts/ConfigTest.java
@@ -123,6 +123,7 @@
                 case DENSITY:
                     // this is the ratio from the standard
                     mMetrics.density = (((float)value)/((float)DisplayMetrics.DENSITY_DEFAULT));
+                    mConfig.densityDpi = value;
                     break;
                 case SCREENLAYOUT:
                     mConfig.screenLayout = value;
@@ -182,6 +183,7 @@
         config.mConfig.smallestScreenWidthDp = 320;
         config.mConfig.screenWidthDp = 320;
         config.mConfig.screenHeightDp = 480;
+        config.mConfig.densityDpi = 160;
         config.mMetrics.widthPixels = 200;
         config.mMetrics.heightPixels = 320;
         config.mMetrics.density = 1;