Skip to content

Commit d6d6d35

Browse files
Alex SakhartchoukAndroid (Google) Code Review
authored andcommitted
Merge "Deprecate"
2 parents e17fc7d + a0c2eb2 commit d6d6d35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1208
-995
lines changed

api/current.txt

Lines changed: 525 additions & 570 deletions
Large diffs are not rendered by default.

graphics/java/android/renderscript/Allocation.java

Lines changed: 76 additions & 70 deletions
Large diffs are not rendered by default.

graphics/java/android/renderscript/AllocationAdapter.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import android.graphics.BitmapFactory;
2222
import android.util.TypedValue;
2323

24-
/**
24+
/** @deprecated renderscript is deprecated in J
2525
*
2626
**/
2727
public class AllocationAdapter extends Allocation {
@@ -129,7 +129,7 @@ void initLOD(int lod) {
129129
mSelectedZ = 0;
130130
}
131131

132-
/**
132+
/** @deprecated renderscript is deprecated in J
133133
* Set the active LOD. The LOD must be within the range for the
134134
* type being adapted. The base allocation must have mipmaps.
135135
*
@@ -149,7 +149,7 @@ public void setLOD(int lod) {
149149
initLOD(lod);
150150
}
151151

152-
/**
152+
/** @deprecated renderscript is deprecated in J
153153
* Set the active Face. The base allocation must be of a type
154154
* that includes faces.
155155
*
@@ -169,7 +169,7 @@ public void setFace(Type.CubemapFace cf) {
169169
mSelectedFace = cf;
170170
}
171171

172-
/**
172+
/** @deprecated renderscript is deprecated in J
173173
* Set the active Y. The y value must be within the range for
174174
* the allocation being adapted. The base allocation must
175175
* contain the Y dimension.
@@ -190,7 +190,7 @@ public void setY(int y) {
190190
mSelectedY = y;
191191
}
192192

193-
/**
193+
/** @deprecated renderscript is deprecated in J
194194
* Set the active Z. The z value must be within the range for
195195
* the allocation being adapted. The base allocation must
196196
* contain the Z dimension.
@@ -211,6 +211,8 @@ public void setZ(int z) {
211211
mSelectedZ = z;
212212
}
213213

214+
/** @deprecated renderscript is deprecated in J
215+
*/
214216
static public AllocationAdapter create1D(RenderScript rs, Allocation a) {
215217
rs.validate();
216218
AllocationAdapter aa = new AllocationAdapter(0, rs, a);
@@ -222,6 +224,8 @@ static public AllocationAdapter create1D(RenderScript rs, Allocation a) {
222224
return aa;
223225
}
224226

227+
/** @deprecated renderscript is deprecated in J
228+
*/
225229
static public AllocationAdapter create2D(RenderScript rs, Allocation a) {
226230
android.util.Log.e("rs", "create2d " + a);
227231
rs.validate();
@@ -235,7 +239,7 @@ static public AllocationAdapter create2D(RenderScript rs, Allocation a) {
235239
}
236240

237241

238-
/**
242+
/** @deprecated renderscript is deprecated in J
239243
* Override the Allocation resize. Resizing adapters is not
240244
* allowed and will throw a RSInvalidStateException.
241245
*

graphics/java/android/renderscript/BaseObj.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import android.util.Log;
2020

21-
/**
21+
/** @deprecated renderscript is deprecated in J
2222
* BaseObj is the base class for interfacing with native renderscript objects.
2323
* It primarly contains code for tracking the native object ID and forcably
2424
* disconecting the object from the native allocation for early cleanup.
@@ -39,7 +39,7 @@ void setID(int id) {
3939
mID = id;
4040
}
4141

42-
/**
42+
/** @deprecated renderscript is deprecated in J
4343
* Lookup the native object ID for this object. Primarily used by the
4444
* generated reflected code.
4545
*
@@ -73,7 +73,7 @@ void checkValid() {
7373
private String mName;
7474
RenderScript mRS;
7575

76-
/**
76+
/** @deprecated renderscript is deprecated in J
7777
* setName assigns a name to an object. This object can later be looked up
7878
* by this name. This name will also be retained if the object is written
7979
* to an A3D file.
@@ -103,7 +103,7 @@ public void setName(String name) {
103103
}
104104
}
105105

106-
/**
106+
/** @deprecated renderscript is deprecated in J
107107
* @return name of the renderscript object
108108
*/
109109
public String getName() {
@@ -124,7 +124,7 @@ protected void finalize() throws Throwable {
124124
super.finalize();
125125
}
126126

127-
/**
127+
/** @deprecated renderscript is deprecated in J
128128
* destroy disconnects the object from the native object effectively
129129
* rendering this java object dead. The primary use is to force immediate
130130
* cleanup of resources when it is believed the GC will not respond quickly
@@ -138,7 +138,7 @@ synchronized public void destroy() {
138138
mRS.nObjDestroy(mID);
139139
}
140140

141-
/**
141+
/** @deprecated renderscript is deprecated in J
142142
* If an object came from an a3d file, java fields need to be
143143
* created with objects from the native layer
144144
*/
@@ -147,7 +147,7 @@ void updateFromNative() {
147147
mName = mRS.nGetName(getID(mRS));
148148
}
149149

150-
/**
150+
/** @deprecated renderscript is deprecated in J
151151
* Calculates the hash code value for a BaseObj.
152152
*
153153
* @return int
@@ -157,7 +157,7 @@ public int hashCode() {
157157
return mID;
158158
}
159159

160-
/**
160+
/** @deprecated renderscript is deprecated in J
161161
* Compare the current BaseObj with another BaseObj for equality.
162162
*
163163
* @param obj The object to check equality with.

graphics/java/android/renderscript/Byte2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.util.Log;
2121

2222

23-
/**
23+
/** @deprecated renderscript is deprecated in J
2424
* Class for exposing the native Renderscript byte2 type back to the Android system.
2525
*
2626
**/

graphics/java/android/renderscript/Byte3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.util.Log;
2121

2222

23-
/**
23+
/** @deprecated renderscript is deprecated in J
2424
* Class for exposing the native Renderscript byte3 type back to the Android system.
2525
*
2626
**/

graphics/java/android/renderscript/Byte4.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.util.Log;
2121

2222

23-
/**
23+
/** @deprecated renderscript is deprecated in J
2424
* Class for exposing the native Renderscript byte4 type back to the Android system.
2525
*
2626
**/

graphics/java/android/renderscript/Double2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.util.Log;
2121

2222

23-
/**
23+
/** @deprecated renderscript is deprecated in J
2424
* Class for exposing the native Renderscript double2 type back
2525
* to the Android system.
2626
*

graphics/java/android/renderscript/Double3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.util.Log;
2121

2222

23-
/**
23+
/** @deprecated renderscript is deprecated in J
2424
* Class for exposing the native Renderscript double3 type back
2525
* to the Android system.
2626
*

graphics/java/android/renderscript/Double4.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.util.Log;
2121

2222

23-
/**
23+
/** @deprecated renderscript is deprecated in J
2424
* Class for exposing the native Renderscript double4 type back
2525
* to the Android system.
2626
*

0 commit comments

Comments
 (0)