Package org.robolectric.nativeruntime
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 Summary
Modifier and Type Method Description static int
nativeHSVToColor(int alpha, float[] hsv)
static void
nativeRGBToHSV(int red, int greed, int blue, float[] hsv)
-
Method Details
-
nativeRGBToHSV
public static void nativeRGBToHSV(int red, int greed, int blue, float[] hsv) -
nativeHSVToColor
public static int nativeHSVToColor(int alpha, float[] hsv)
-