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

Commit 26166043 authored by Kweku Adams's avatar Kweku Adams
Browse files

Remove @Deprecated && @removed hardware methods.

The methods were marked @removed in Oreo. Finally removing it from code.
SensorDirectChannel.isValid is currently used by Roboelectric so it will
have to be removed separately.

Bug: 135214188
Test: Android builds
Change-Id: Ib357ad76654326d94f6873102de22451bf4f5b59
parent a94ba372
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -265,19 +265,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);