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

Commit 06287994 authored by Xusong Wang's avatar Xusong Wang Committed by Automerger Merge Worker
Browse files

Deprecate RS Java APIs. am: 1f8dc651

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683498

Change-Id: I823539a725e083870cf734e45c254a97da982ee5
parents 44b972b1 1f8dc651
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