Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 972fad90 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Improve support for half floats and expose as public API"

parents 5d682ce7 12ae9a07
Loading
Loading
Loading
Loading
+39 −0
Original line number Original line Diff line number Diff line
@@ -40576,6 +40576,45 @@ package android.util {
    method public abstract void setValue(T, float);
    method public abstract void setValue(T, float);
  }
  }
  public final class Half {
    method public static short abs(short);
    method public static short ceil(short);
    method public static short copySign(short, short);
    method public static boolean equals(short, short);
    method public static short floor(short);
    method public static int getExponent(short);
    method public static int getSign(short);
    method public static int getSignificand(short);
    method public static boolean greater(short, short);
    method public static boolean greaterEquals(short, short);
    method public static boolean isInfinite(short);
    method public static boolean isNaN(short);
    method public static boolean isNormalized(short);
    method public static boolean less(short, short);
    method public static boolean lessEquals(short, short);
    method public static short max(short, short);
    method public static short min(short, short);
    method public static short round(short);
    method public static float toFloat(short);
    method public static java.lang.String toHexString(short);
    method public static java.lang.String toString(short);
    method public static short trunc(short);
    method public static short valueOf(float);
    field public static final short EPSILON = 5120; // 0x1400
    field public static final short LOWEST_VALUE = -1025; // 0xfffffbff
    field public static final int MAX_EXPONENT = 15; // 0xf
    field public static final short MAX_VALUE = 31743; // 0x7bff
    field public static final int MIN_EXPONENT = -14; // 0xfffffff2
    field public static final short MIN_NORMAL = 1024; // 0x400
    field public static final short MIN_VALUE = 1; // 0x1
    field public static final short NEGATIVE_INFINITY = -1024; // 0xfffffc00
    field public static final short NEGATIVE_ZERO = -32768; // 0xffff8000
    field public static final short NaN = 32256; // 0x7e00
    field public static final short POSITIVE_INFINITY = 31744; // 0x7c00
    field public static final short POSITIVE_ZERO = 0; // 0x0
    field public static final int SIZE = 16; // 0x10
  }
  public abstract class IntProperty<T> extends android.util.Property {
  public abstract class IntProperty<T> extends android.util.Property {
    ctor public IntProperty(java.lang.String);
    ctor public IntProperty(java.lang.String);
    method public final void set(T, java.lang.Integer);
    method public final void set(T, java.lang.Integer);
+39 −0
Original line number Original line Diff line number Diff line
@@ -43743,6 +43743,45 @@ package android.util {
    method public abstract void setValue(T, float);
    method public abstract void setValue(T, float);
  }
  }
  public final class Half {
    method public static short abs(short);
    method public static short ceil(short);
    method public static short copySign(short, short);
    method public static boolean equals(short, short);
    method public static short floor(short);
    method public static int getExponent(short);
    method public static int getSign(short);
    method public static int getSignificand(short);
    method public static boolean greater(short, short);
    method public static boolean greaterEquals(short, short);
    method public static boolean isInfinite(short);
    method public static boolean isNaN(short);
    method public static boolean isNormalized(short);
    method public static boolean less(short, short);
    method public static boolean lessEquals(short, short);
    method public static short max(short, short);
    method public static short min(short, short);
    method public static short round(short);
    method public static float toFloat(short);
    method public static java.lang.String toHexString(short);
    method public static java.lang.String toString(short);
    method public static short trunc(short);
    method public static short valueOf(float);
    field public static final short EPSILON = 5120; // 0x1400
    field public static final short LOWEST_VALUE = -1025; // 0xfffffbff
    field public static final int MAX_EXPONENT = 15; // 0xf
    field public static final short MAX_VALUE = 31743; // 0x7bff
    field public static final int MIN_EXPONENT = -14; // 0xfffffff2
    field public static final short MIN_NORMAL = 1024; // 0x400
    field public static final short MIN_VALUE = 1; // 0x1
    field public static final short NEGATIVE_INFINITY = -1024; // 0xfffffc00
    field public static final short NEGATIVE_ZERO = -32768; // 0xffff8000
    field public static final short NaN = 32256; // 0x7e00
    field public static final short POSITIVE_INFINITY = 31744; // 0x7c00
    field public static final short POSITIVE_ZERO = 0; // 0x0
    field public static final int SIZE = 16; // 0x10
  }
  public abstract class IntProperty<T> extends android.util.Property {
  public abstract class IntProperty<T> extends android.util.Property {
    ctor public IntProperty(java.lang.String);
    ctor public IntProperty(java.lang.String);
    method public final void set(T, java.lang.Integer);
    method public final void set(T, java.lang.Integer);
+39 −0
Original line number Original line Diff line number Diff line
@@ -40669,6 +40669,45 @@ package android.util {
    method public abstract void setValue(T, float);
    method public abstract void setValue(T, float);
  }
  }
  public final class Half {
    method public static short abs(short);
    method public static short ceil(short);
    method public static short copySign(short, short);
    method public static boolean equals(short, short);
    method public static short floor(short);
    method public static int getExponent(short);
    method public static int getSign(short);
    method public static int getSignificand(short);
    method public static boolean greater(short, short);
    method public static boolean greaterEquals(short, short);
    method public static boolean isInfinite(short);
    method public static boolean isNaN(short);
    method public static boolean isNormalized(short);
    method public static boolean less(short, short);
    method public static boolean lessEquals(short, short);
    method public static short max(short, short);
    method public static short min(short, short);
    method public static short round(short);
    method public static float toFloat(short);
    method public static java.lang.String toHexString(short);
    method public static java.lang.String toString(short);
    method public static short trunc(short);
    method public static short valueOf(float);
    field public static final short EPSILON = 5120; // 0x1400
    field public static final short LOWEST_VALUE = -1025; // 0xfffffbff
    field public static final int MAX_EXPONENT = 15; // 0xf
    field public static final short MAX_VALUE = 31743; // 0x7bff
    field public static final int MIN_EXPONENT = -14; // 0xfffffff2
    field public static final short MIN_NORMAL = 1024; // 0x400
    field public static final short MIN_VALUE = 1; // 0x1
    field public static final short NEGATIVE_INFINITY = -1024; // 0xfffffc00
    field public static final short NEGATIVE_ZERO = -32768; // 0xffff8000
    field public static final short NaN = 32256; // 0x7e00
    field public static final short POSITIVE_INFINITY = 31744; // 0x7c00
    field public static final short POSITIVE_ZERO = 0; // 0x0
    field public static final int SIZE = 16; // 0x10
  }
  public abstract class IntProperty<T> extends android.util.Property {
  public abstract class IntProperty<T> extends android.util.Property {
    ctor public IntProperty(java.lang.String);
    ctor public IntProperty(java.lang.String);
    method public final void set(T, java.lang.Integer);
    method public final void set(T, java.lang.Integer);
+407 −51

File changed.

Preview size limit exceeded, changes collapsed.