Class ColorNatives

java.lang.Object
org.robolectric.nativeruntime.ColorNatives

public final class ColorNatives
extends Object
Native methods for Color JNI registration.

Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/Color.java

  • Method Details

    • nativeRGBToHSV

      public static void nativeRGBToHSV​(int red, int greed, int blue, float[] hsv)
    • nativeHSVToColor

      public static int nativeHSVToColor​(int alpha, float[] hsv)