test_class.declarator: rule = new PowerMockRule()
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public PowerMockRule rule = new PowerMockRule();
test_class.type: PowerMockRule
test_class.var_name: rule
test_class.file: node_modules/react-native/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java
test_class.identifier: ColorUtilTest
test_case.body: @Test
    public void testGetOpacityFromColor() {
      assertEquals(PixelFormat.TRANSPARENT, ColorUtil.getOpacityFromColor(0x00000000));
      assertEquals(PixelFormat.TRANSPARENT, ColorUtil.getOpacityFromColor(0x00123456));
      assertEquals(PixelFormat.TRANSPARENT, ColorUtil.getOpacityFromColor(0x00FFFFFF));
      assertEquals(PixelFormat.TRANSLUCENT, ColorUtil.getOpacityFromColor(0xC0000000));
      assertEquals(PixelFormat.TRANSLUCENT, ColorUtil.getOpacityFromColor(0xC0123456));
      assertEquals(PixelFormat.TRANSLUCENT, ColorUtil.getOpacityFromColor(0xC0FFFFFF));
      assertEquals(PixelFormat.OPAQUE, ColorUtil.getOpacityFromColor(0xFF000000));
      assertEquals(PixelFormat.OPAQUE, ColorUtil.getOpacityFromColor(0xFF123456));
      assertEquals(PixelFormat.OPAQUE, ColorUtil.getOpacityFromColor(0xFFFFFFFF));
    }
test_case.class_method_signature: ColorUtilTest.testGetOpacityFromColor()
test_case.full_signature: @Test public void testGetOpacityFromColor()
test_case.identifier: testGetOpacityFromColor
test_case.invocations: assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor assertEquals getOpacityFromColor
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetOpacityFromColor()
focal_class.file: node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java
focal_class.identifier: ColorUtil
focal_class.class_method_signature: ColorUtil.multiplyColorAlpha(int color, int alpha)
focal_class.full_signature: public static int multiplyColorAlpha(int color, int alpha)
focal_class.identifier: multiplyColorAlpha
focal_class.modifiers: public static
focal_class.parameters: (int color, int alpha)
focal_class.return: int
focal_class.signature: int multiplyColorAlpha(int color, int alpha)
focal_class.class_method_signature: ColorUtil.getOpacityFromColor(int color)
focal_class.full_signature: public static int getOpacityFromColor(int color)
focal_class.identifier: getOpacityFromColor
focal_class.modifiers: public static
focal_class.parameters: (int color)
focal_class.return: int
focal_class.signature: int getOpacityFromColor(int color)
focal_method.body: public static int getOpacityFromColor(int color) {
      int colorAlpha = color >>> 24;
      if (colorAlpha == 255) {
        return PixelFormat.OPAQUE;
      } else if (colorAlpha == 0) {
        return PixelFormat.TRANSPARENT;
      } else {
        return PixelFormat.TRANSLUCENT;
      }
    }
focal_method.class_method_signature: ColorUtil.getOpacityFromColor(int color)
focal_method.full_signature: public static int getOpacityFromColor(int color)
focal_method.identifier: getOpacityFromColor
focal_method.modifiers: public static
focal_method.parameters: (int color)
focal_method.return: int
focal_method.signature: int getOpacityFromColor(int color)