Deprecate RS Java APIs.

This CL marks RenderScript Java APIs as deprecated.

Bug: 168711199
Test: m
Test: CtsRenderscriptTestCases
Test: CtsRsCppTestCases
Test: CtsRsBlasTestCases
Change-Id: Id271a794679d445c480d62c87ae6c8150f6901f8
Merged-In: Id271a794679d445c480d62c87ae6c8150f6901f8
(cherry picked from commit 8b4548c43a)
This commit is contained in:
Xusong Wang
2021-01-05 10:09:52 -08:00
parent c65ed07b59
commit 1f8dc651a8
63 changed files with 1147 additions and 903 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

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

View File

@@ -20,7 +20,11 @@ package android.renderscript;
/**
* Class for exposing the native RenderScript byte3 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 Byte3 {
public byte x;
public byte y;

View File

@@ -20,7 +20,11 @@ package android.renderscript;
/**
* Class for exposing the native RenderScript byte4 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 Byte4 {
public byte x;
public byte y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic double type.
* Provides two double fields packed.
*
* @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 Double2 {
public double x;
public double y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic double type.
* Provides three double fields packed.
*
* @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 Double3 {
public double x;
public double y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic double type.
* Provides four double fields packed.
*
* @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 Double4 {
public double x;
public double y;

View File

@@ -51,7 +51,12 @@ import android.compat.annotation.UnsupportedAppUsage;
* <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 Element extends BaseObj {
int mSize;
Element[] mElements;

View File

@@ -26,7 +26,11 @@ import java.util.BitSet;
* reflected code generated by the RS tool chain. It should not
* be called directly.
*
* @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 FieldPacker {
public FieldPacker(int len) {
mPos = 0;

View File

@@ -36,6 +36,7 @@ import java.io.InputStream;
* index entries for all the objects stored inside it.
*
**/
@Deprecated
public class FileA3D extends BaseObj {
/**

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic float type.
* Provides two float fields packed.
*
* @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 Float2 {
public float x;
public float y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic float type.
* Provides three float fields packed.
*
* @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 Float3 {
public float x;
public float y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic float type.
* Provides four float fields packed.
*
* @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 Float4 {
public float x;
public float y;

View File

@@ -45,6 +45,7 @@ import java.util.Map;
* them in the script to suit the user's rendering needs. Font colors work as a state machine.
* Every new call to draw text uses the last color set in the script.</p>
**/
@Deprecated
public class Font extends BaseObj {
//These help us create a font by family name

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic int type.
* Provides two int fields packed.
*
* @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 Int2 {
public int x;
public int y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic int type.
* Provides three int fields packed.
*
* @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 Int3 {
public int x;
public int y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic int type.
* Provides four int fields packed.
*
* @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 Int4 {
public int x;
public int y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic long type.
* Provides two long fields packed.
*
* @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 Long2 {
public long x;
public long y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic long type.
* Provides three long fields packed.
*
* @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 Long3 {
public long x;
public long y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic long type.
* Provides four long fields packed.
*
* @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 Long4 {
public long x;
public long y;

View File

@@ -20,7 +20,11 @@ package android.renderscript;
/**
* Class for exposing the native RenderScript rs_matrix2x2 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 Matrix2f {
/**

View File

@@ -20,7 +20,11 @@ package android.renderscript;
/**
* Class for exposing the native RenderScript rs_matrix3x3 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 Matrix3f {
/**

View File

@@ -22,7 +22,11 @@ import android.compat.annotation.UnsupportedAppUsage;
/**
* Class for exposing the native RenderScript rs_matrix4x4 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 Matrix4f {
/**

View File

@@ -40,6 +40,7 @@ import java.util.Vector;
* index sets or primitive types.
* </p>
**/
@Deprecated
public class Mesh extends BaseObj {
/**

View File

@@ -32,7 +32,11 @@ import java.io.UnsupportedEncodingException;
* Program is a base class for all the objects that modify
* various stages of the graphics pipeline
*
* @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 Program extends BaseObj {
static final int MAX_INPUT = 8;
static final int MAX_OUTPUT = 8;

View File

@@ -37,6 +37,7 @@ import android.compat.annotation.UnsupportedAppUsage;
* </p>
*
**/
@Deprecated
public class ProgramFragment extends Program {
ProgramFragment(long id, RenderScript rs) {
super(id, rs);

View File

@@ -29,6 +29,7 @@ import android.compat.annotation.UnsupportedAppUsage;
* blended with results of up to two texture lookups.</p
*
**/
@Deprecated
public class ProgramFragmentFixedFunction extends ProgramFragment {
ProgramFragmentFixedFunction(long id, RenderScript rs) {
super(id, rs);

View File

@@ -25,6 +25,7 @@ import android.compat.annotation.UnsupportedAppUsage;
* Program raster is primarily used to specify whether point sprites are enabled and to control
* the culling mode. By default, back faces are culled.
**/
@Deprecated
public class ProgramRaster extends BaseObj {
/**

View File

@@ -34,7 +34,11 @@ import android.os.Build;
* framebuffer</li>
* </ul>
*
* @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 ProgramStore extends BaseObj {
/**
* Specifies the function used to determine whether a fragment

View File

@@ -34,7 +34,6 @@
* The signatures don't have to be exact or in any strict order. As long as the input name in the shader
* matches a channel name and size available on the mesh, the runtime takes care of connecting the
* two. Unlike OpenGL, there is no need to link the vertex and fragment programs.</p>
*
**/
package android.renderscript;
@@ -49,6 +48,7 @@ import android.compat.annotation.UnsupportedAppUsage;
* geometric data in a user-defined way.
*
**/
@Deprecated
public class ProgramVertex extends Program {
ProgramVertex(long id, RenderScript rs) {

View File

@@ -27,6 +27,7 @@ import android.compat.annotation.UnsupportedAppUsage;
* without writing any GLSL code.
*
**/
@Deprecated
public class ProgramVertexFixedFunction extends ProgramVertex {
ProgramVertexFixedFunction(long id, RenderScript rs) {

View File

@@ -20,7 +20,12 @@ package android.renderscript;
/**
* Base class for all exceptions thrown by the Android
* RenderScript
*
* @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 RSDriverException extends RSRuntimeException {
public RSDriverException(String string) {
super(string);

View File

@@ -20,7 +20,12 @@ package android.renderscript;
/**
* Base class for all exceptions thrown by the Android
* RenderScript
*
* @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 RSIllegalArgumentException extends RSRuntimeException {
public RSIllegalArgumentException(String string) {
super(string);

View File

@@ -20,7 +20,12 @@ package android.renderscript;
/**
* Base class for all exceptions thrown by the Android
* RenderScript
*
* @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 RSInvalidStateException extends RSRuntimeException {
public RSInvalidStateException(String string) {
super(string);

View File

@@ -20,7 +20,12 @@ package android.renderscript;
/**
* Base class for all exceptions thrown by the Android
* RenderScript
*
* @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 RSRuntimeException
extends java.lang.RuntimeException {
public RSRuntimeException(String string) {

View File

@@ -33,6 +33,7 @@ import android.view.SurfaceView;
* <a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a> developer guide.</p>
* </div>
*/
@Deprecated
public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback {
private SurfaceHolder mSurfaceHolder;
private RenderScriptGL mRS;

View File

@@ -28,6 +28,7 @@ import android.view.TextureView;
* to draw on.
*
*/
@Deprecated
public class RSTextureView extends TextureView implements TextureView.SurfaceTextureListener {
private RenderScriptGL mRS;
private SurfaceTexture mSurfaceTexture;

View File

@@ -44,7 +44,12 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
* <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 RenderScript {
static final long TRACE_TAG = Trace.TRACE_TAG_RS;

View File

@@ -23,7 +23,11 @@ import java.io.File;
/**
* Used only for tracking the RenderScript cache directory.
* @hide
* @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 RenderScriptCacheDir {
/**
* Sets the directory to use as a persistent storage for the

View File

@@ -37,6 +37,7 @@ import android.view.SurfaceHolder;
* <a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a> developer guide.</p>
* </div>
**/
@Deprecated
public class RenderScriptGL extends RenderScript {
int mWidth;
int mHeight;

View File

@@ -25,7 +25,12 @@ package android.renderscript;
* android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE}; using a Sampler on
* an {@link android.renderscript.Allocation} that was not created with {@link
* android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE} is undefined.
*
* @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 Sampler extends BaseObj {
public enum Value {
NEAREST (0),

View File

@@ -22,7 +22,12 @@ import android.util.SparseArray;
/**
* The parent class for all executable scripts. This should not be used by
* applications.
*
* @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 Script extends BaseObj {
/**

View File

@@ -25,7 +25,12 @@ import java.io.InputStream;
/**
* The superclass for all user-defined scripts. This is only
* intended to be used by the generated derived classes.
*
* @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 ScriptC extends Script {
private static final String TAG = "ScriptC";

View File

@@ -37,7 +37,12 @@ import java.util.Map;
* Grouping kernels together allows for more efficient execution. For example,
* runtime and compiler optimization can be applied to reduce computation and
* communication overhead, and to make better use of the CPU and the GPU.
*
* @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 final class ScriptGroup extends BaseObj {
private static final String TAG = "ScriptGroup";
IO mOutputs[];

View File

@@ -23,7 +23,12 @@ package android.renderscript;
* operations.
*
* Not intended for direct use.
*
* @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 abstract class ScriptIntrinsic extends Script {
ScriptIntrinsic(long id, RenderScript rs) {
super(id, rs);

View File

@@ -23,7 +23,11 @@ package android.renderscript;
* allocation. The 8 nearest values are sampled and linearly interpolated. The
* result is placed in the output.
*
* @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 final class ScriptIntrinsic3DLUT extends ScriptIntrinsic {
private Allocation mLUT;
private Element mElement;

View File

@@ -29,7 +29,11 @@ import java.lang.annotation.RetentionPolicy;
*
* For detailed description of BLAS, please refer to http://www.netlib.org/blas/
*
* @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 final class ScriptIntrinsicBLAS extends ScriptIntrinsic {
private Allocation mLUT;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Intrinsic kernels for blending two {@link android.renderscript.Allocation} objects.
*
* @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 ScriptIntrinsicBlend extends ScriptIntrinsic {
ScriptIntrinsicBlend(long id, RenderScript rs) {
super(id, rs);

View File

@@ -20,8 +20,11 @@ package android.renderscript;
* Intrinsic Gausian blur filter. Applies a gaussian blur of the
* specified radius to all elements of an allocation.
*
*
* @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 final class ScriptIntrinsicBlur extends ScriptIntrinsic {
private final float[] mValues = new float[9];
private Allocation mInput;

View File

@@ -36,7 +36,12 @@ package android.renderscript;
* Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4},
* {@link Element#F32}, {@link Element#F32_2}, {@link
* Element#F32_3}, and {@link Element#F32_4}.
*
* @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 final class ScriptIntrinsicColorMatrix extends ScriptIntrinsic {
private final Matrix4f mMatrix = new Matrix4f();
private final Float4 mAdd = new Float4();

View File

@@ -19,7 +19,11 @@ package android.renderscript;
/**
* Intrinsic for applying a 3x3 convolve to an allocation.
*
* @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 final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic {
private final float[] mValues = new float[9];
private Allocation mInput;

View File

@@ -19,7 +19,11 @@ package android.renderscript;
/**
* Intrinsic for applying a 5x5 convolve to an allocation.
*
* @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 final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic {
private final float[] mValues = new float[25];
private Allocation mInput;

View File

@@ -19,8 +19,11 @@ package android.renderscript;
/**
* Intrinsic Histogram filter.
*
*
* @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 final class ScriptIntrinsicHistogram extends ScriptIntrinsic {
private Allocation mOut;

View File

@@ -21,7 +21,12 @@ package android.renderscript;
* channel of the input has an independant lookup table. The
* tables are 256 entries in size and can cover the full value
* range of {@link Element#U8_4}.
*
* @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 final class ScriptIntrinsicLUT extends ScriptIntrinsic {
private final Matrix4f mMatrix = new Matrix4f();
private Allocation mTables;

View File

@@ -18,7 +18,12 @@ package android.renderscript;
/**
* Intrinsic for performing a resize of a 2D allocation.
*
* @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 final class ScriptIntrinsicResize extends ScriptIntrinsic {
private Allocation mInput;

View File

@@ -23,7 +23,12 @@ package android.renderscript;
* The input allocation should be supplied in a supported YUV format
* as a YUV element Allocation. The output is RGBA; the alpha channel
* will be set to 255.
*
* @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 final class ScriptIntrinsicYuvToRGB extends ScriptIntrinsic {
private Allocation mInput;

View File

@@ -22,7 +22,12 @@ package android.renderscript;
*
* Vector version of the basic short type.
* Provides two short fields packed.
*
* @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 Short2 {
public short x;
public short y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic short type.
* Provides three short fields packed.
*
* @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 Short3 {
public short x;
public short y;

View File

@@ -19,7 +19,12 @@ package android.renderscript;
/**
* Vector version of the basic short type.
* Provides four short fields packed.
*
* @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 Short4 {
public short x;
public short y;

View File

@@ -42,7 +42,12 @@ package android.renderscript;
* <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 Type extends BaseObj {
int mDimX;
int mDimY;