Fix gradient drawable CTS tests

Change-Id: I0dc3e4e387b577c586c05cbd221f3a53ddd1be8f
diff --git a/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java b/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java
index 979dd8d..0a19cb7 100644
--- a/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java
+++ b/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java
@@ -259,13 +259,13 @@
                 R.drawable.gradientdrawable_radius_base);
         gradientDrawable.setBounds(parentBounds);
         radius = gradientDrawable.getGradientRadius();
-        assertEquals(25, radius);
+        assertEquals(25.0f, radius, 0.0f);
 
         gradientDrawable = (GradientDrawable) resources.getDrawable(
                 R.drawable.gradientdrawable_radius_parent);
         gradientDrawable.setBounds(parentBounds);
         radius = gradientDrawable.getGradientRadius();
-        assertEquals(50, radius);
+        assertEquals(50.0f, radius, 0.0f);
     }
 
     public void testGetIntrinsicWidth() {