test_class.file: richpath/src/test/java/com/richpath/util/UtilsTest.java
test_class.identifier: UtilsTest
test_case.body: @Test
      public void testGetDimenFromString() throws Exception {
  
          assertEquals(22.0, Utils.getDimenFromString("22dip"), 0);
          assertEquals(1.5f, Utils.getDimenFromString("1.5dp"), 0);
          assertEquals(0.7f, Utils.getDimenFromString("0.7sp"), 0);
          assertEquals(2f, Utils.getDimenFromString("2in"), 0);
          assertEquals(22f, Utils.getDimenFromString("22px"), 0);
  
      }
test_case.class_method_signature: UtilsTest.testGetDimenFromString()
test_case.full_signature: @Test public void testGetDimenFromString()
test_case.identifier: testGetDimenFromString
test_case.invocations: assertEquals getDimenFromString assertEquals getDimenFromString assertEquals getDimenFromString assertEquals getDimenFromString assertEquals getDimenFromString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetDimenFromString()
focal_class.file: richpath/src/main/java/com/richpath/util/Utils.java
focal_class.identifier: Utils
focal_class.class_method_signature: Utils.dpToPixel(Context context, float dp)
focal_class.full_signature: static float dpToPixel(Context context, float dp)
focal_class.identifier: dpToPixel
focal_class.modifiers: static
focal_class.parameters: (Context context, float dp)
focal_class.return: float
focal_class.signature: float dpToPixel(Context context, float dp)
focal_class.class_method_signature: Utils.getDimenFromString(String value)
focal_class.full_signature: static float getDimenFromString(String value)
focal_class.identifier: getDimenFromString
focal_class.modifiers: static
focal_class.parameters: (String value)
focal_class.return: float
focal_class.signature: float getDimenFromString(String value)
focal_class.class_method_signature: Utils.getColorFromString(String value)
focal_class.full_signature: static int getColorFromString(String value)
focal_class.identifier: getColorFromString
focal_class.modifiers: static
focal_class.parameters: (String value)
focal_class.return: int
focal_class.signature: int getColorFromString(String value)
focal_method.body: static float getDimenFromString(String value) {
      int end = value.charAt(value.length() - 3) == 'd' ? 3 : 2;
      return Float.parseFloat(value.substring(0, value.length() - end));
    }
focal_method.class_method_signature: Utils.getDimenFromString(String value)
focal_method.full_signature: static float getDimenFromString(String value)
focal_method.identifier: getDimenFromString
focal_method.invocations: charAt length parseFloat substring length
focal_method.modifiers: static
focal_method.parameters: (String value)
focal_method.return: float
focal_method.signature: float getDimenFromString(String value)