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

Commit 67485cf9 authored by Xusong Wang's avatar Xusong Wang Committed by Gerrit Code Review
Browse files

Merge changes from topic "rs-deprecation"

* changes:
  Silence compiler errors because of renderscript deprecation.
  Deprecate RS Java APIs.
parents 81f00f01 2edb06b8
Loading
Loading
Loading
Loading
+1029 −1029

File changed.

Preview size limit exceeded, changes collapsed.

+5 −1
Original line number Diff line number Diff line
@@ -52,8 +52,12 @@ import android.view.Surface;
 * <p>For more information about creating an application that uses RenderScript, read the
 * <a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a> developer guide.</p>
 * </div>
 *
 * @deprecated Renderscript has been deprecated in API level 31. Please refer to the <a
 * href="https://developer.android.com/guide/topics/renderscript/migration-guide">migration
 * guide</a> for the proposed alternatives.
 **/

@Deprecated
public class Allocation extends BaseObj {
    private static final int MAX_NUMBER_IO_INPUT_ALLOC = 16;

+4 −0
Original line number Diff line number Diff line
@@ -19,7 +19,11 @@ package android.renderscript;
/**
 * Only intended for use by generated reflected code.
 *
 * @deprecated Renderscript has been deprecated in API level 31. Please refer to the <a
 * href="https://developer.android.com/guide/topics/renderscript/migration-guide">migration
 * guide</a> for the proposed alternatives.
 **/
@Deprecated
public class AllocationAdapter extends Allocation {
    Type mWindow;

+4 −0
Original line number Diff line number Diff line
@@ -27,7 +27,11 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
 * It is responsible for lifetime management and resource tracking. This class
 * should not be used by a user application.
 *
 * @deprecated Renderscript has been deprecated in API level 31. Please refer to the <a
 * href="https://developer.android.com/guide/topics/renderscript/migration-guide">migration
 * guide</a> for the proposed alternatives.
 **/
@Deprecated
public class BaseObj {
    BaseObj(long id, RenderScript rs) {
        rs.validate();
+4 −0
Original line number Diff line number Diff line
@@ -20,7 +20,11 @@ package android.renderscript;
/**
 * Class for exposing the native RenderScript byte2 type back to the Android system.
 *
 * @deprecated Renderscript has been deprecated in API level 31. Please refer to the <a
 * href="https://developer.android.com/guide/topics/renderscript/migration-guide">migration
 * guide</a> for the proposed alternatives.
 **/
@Deprecated
public class Byte2 {
    public byte x;
    public byte y;
Loading