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

This commit is contained in:
TreeHugger Robot
2019-06-21 00:51:31 +00:00
committed by Android (Google) Code Review
3 changed files with 0 additions and 27 deletions

View File

@@ -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 {

View File

@@ -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

View File

@@ -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);