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

Commit f62b9104 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove @Deprecated && @removed hardware methods."

parents 1e2efdee 26166043
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -234,19 +234,10 @@ package android.graphics.drawable {

package android.hardware {

  public final class HardwareBuffer implements java.lang.AutoCloseable android.os.Parcelable {
    method @Deprecated public void destroy();
    method @Deprecated public boolean isDestroyed();
  }

  public final class SensorDirectChannel implements java.nio.channels.Channel {
    method @Deprecated public boolean isValid();
  }

  public abstract class SensorManager {
    method @Deprecated public int configureDirectChannel(android.hardware.SensorDirectChannel, android.hardware.Sensor, int);
  }

}

package android.icu.util {
+0 −12
Original line number Diff line number Diff line
@@ -310,18 +310,6 @@ public final class HardwareBuffer implements Parcelable, AutoCloseable {
        return nGetUsage(mNativeObject);
    }

    /** @removed replaced by {@link #close()} */
    @Deprecated
    public void destroy() {
        close();
    }

    /** @removed replaced by {@link #isClosed()} */
    @Deprecated
    public boolean isDestroyed() {
        return isClosed();
    }

    /**
     * Destroys this buffer immediately. Calling this method frees up any
     * underlying native resources. After calling this method, this buffer
+0 −6
Original line number Diff line number Diff line
@@ -943,12 +943,6 @@ public abstract class SensorManager {
    /** @hide */
    protected abstract void destroyDirectChannelImpl(SensorDirectChannel channel);

    /** @removed */
    @Deprecated
    public int configureDirectChannel(SensorDirectChannel channel, Sensor sensor, int rateLevel) {
        return configureDirectChannelImpl(channel, sensor, rateLevel);
    }

    /** @hide */
    protected abstract int configureDirectChannelImpl(
            SensorDirectChannel channel, Sensor s, int rate);