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

Commit d6a21352 authored by Neil Fuller's avatar Neil Fuller
Browse files

Remove FloatMath methods from the API

Also removing FloatMathTest. The tests are being
moved into a legacy CTS suite.

Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I397fd6bcc4d988db6301245f9d47460bd6c28821
parent dbf62ace
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -33951,14 +33951,6 @@ package android.util {
  }
  public deprecated class FloatMath {
    method public static float ceil(float);
    method public static float cos(float);
    method public static float exp(float);
    method public static float floor(float);
    method public static float hypot(float, float);
    method public static float pow(float, float);
    method public static float sin(float);
    method public static float sqrt(float);
  }
  public final class JsonReader implements java.io.Closeable {
+15 −0
Original line number Diff line number Diff line
@@ -108,6 +108,21 @@ package android.text.format {

}

package android.util {

  public deprecated class FloatMath {
    method public static float ceil(float);
    method public static float cos(float);
    method public static float exp(float);
    method public static float floor(float);
    method public static float hypot(float, float);
    method public static float pow(float, float);
    method public static float sin(float);
    method public static float sqrt(float);
  }

}

package android.view {

  public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
+0 −8
Original line number Diff line number Diff line
@@ -36162,14 +36162,6 @@ package android.util {
  }
  public deprecated class FloatMath {
    method public static float ceil(float);
    method public static float cos(float);
    method public static float exp(float);
    method public static float floor(float);
    method public static float hypot(float, float);
    method public static float pow(float, float);
    method public static float sin(float);
    method public static float sqrt(float);
  }
  public final class JsonReader implements java.io.Closeable {
+15 −0
Original line number Diff line number Diff line
@@ -108,6 +108,21 @@ package android.text.format {

}

package android.util {

  public deprecated class FloatMath {
    method public static float ceil(float);
    method public static float cos(float);
    method public static float exp(float);
    method public static float floor(float);
    method public static float hypot(float, float);
    method public static float pow(float, float);
    method public static float sin(float);
    method public static float sqrt(float);
  }

}

package android.view {

  public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
+10 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@ package android.util;
 * {@link java.lang.Math}. {@link java.lang.Math} should be used in
 * preference.
 *
 * <p>All methods were removed from the public API in version 23.
 *
 * @deprecated Use {@link java.lang.Math} instead.
 */
@Deprecated
@@ -39,6 +41,7 @@ public class FloatMath {
     *
     * @param value to be converted
     * @return the floor of value
     * @removed
     */
    public static float floor(float value) {
        return (float) Math.floor(value);
@@ -50,6 +53,7 @@ public class FloatMath {
     *
     * @param value to be converted
     * @return the ceiling of value
     * @removed
     */
    public static float ceil(float value) {
        return (float) Math.ceil(value);
@@ -60,6 +64,7 @@ public class FloatMath {
     *
     * @param angle to compute the cosine of, in radians
     * @return the sine of angle
     * @removed
     */
    public static float sin(float angle) {
        return (float) Math.sin(angle);
@@ -70,6 +75,7 @@ public class FloatMath {
     *
     * @param angle to compute the cosine of, in radians
     * @return the cosine of angle
     * @removed
     */
    public static float cos(float angle) {
        return (float) Math.cos(angle);
@@ -81,6 +87,7 @@ public class FloatMath {
     *
     * @param value to compute sqrt of
     * @return the square root of value
     * @removed
     */
    public static float sqrt(float value) {
        return (float) Math.sqrt(value);
@@ -92,6 +99,7 @@ public class FloatMath {
     *
     * @param value to compute the exponential of
     * @return the exponential of value
     * @removed
     */
    public static float exp(float value) {
        return (float) Math.exp(value);
@@ -104,6 +112,7 @@ public class FloatMath {
     * @param x the base of the operation.
     * @param y the exponent of the operation.
     * @return {@code x} to the power of {@code y}.
     * @removed
     */
    public static float pow(float x, float y) {
        return (float) Math.pow(x, y);
@@ -116,6 +125,7 @@ public class FloatMath {
     * @param x a float number
     * @param y a float number
     * @return the hypotenuse
     * @removed
     */
    public static float hypot(float x, float y) {
        return (float) Math.hypot(x, y);
Loading