Skip to content

Commit 1d56afc

Browse files
stephenhinesAndroid (Google) Code Review
authored andcommitted
Merge "Revert "Deprecate"" into jb-dev
2 parents aa99729 + 9c9ad3f commit 1d56afc

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

+996
-1209
lines changed

api/current.txt

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

graphics/java/android/renderscript/Allocation.java

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

graphics/java/android/renderscript/AllocationAdapter.java

Lines changed: 6 additions & 10 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-
/** @deprecated renderscript is deprecated in J
24+
/**
2525
*
2626
**/
2727
public class AllocationAdapter extends Allocation {
@@ -129,7 +129,7 @@ void initLOD(int lod) {
129129
mSelectedZ = 0;
130130
}
131131

132-
/** @deprecated renderscript is deprecated in J
132+
/**
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-
/** @deprecated renderscript is deprecated in J
152+
/**
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-
/** @deprecated renderscript is deprecated in J
172+
/**
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-
/** @deprecated renderscript is deprecated in J
193+
/**
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,8 +211,6 @@ public void setZ(int z) {
211211
mSelectedZ = z;
212212
}
213213

214-
/** @deprecated renderscript is deprecated in J
215-
*/
216214
static public AllocationAdapter create1D(RenderScript rs, Allocation a) {
217215
rs.validate();
218216
AllocationAdapter aa = new AllocationAdapter(0, rs, a);
@@ -224,8 +222,6 @@ static public AllocationAdapter create1D(RenderScript rs, Allocation a) {
224222
return aa;
225223
}
226224

227-
/** @deprecated renderscript is deprecated in J
228-
*/
229225
static public AllocationAdapter create2D(RenderScript rs, Allocation a) {
230226
android.util.Log.e("rs", "create2d " + a);
231227
rs.validate();
@@ -239,7 +235,7 @@ static public AllocationAdapter create2D(RenderScript rs, Allocation a) {
239235
}
240236

241237

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

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-
/** @deprecated renderscript is deprecated in J
21+
/**
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-
/** @deprecated renderscript is deprecated in J
42+
/**
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-
/** @deprecated renderscript is deprecated in J
76+
/**
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-
/** @deprecated renderscript is deprecated in J
106+
/**
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-
/** @deprecated renderscript is deprecated in J
127+
/**
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-
/** @deprecated renderscript is deprecated in J
141+
/**
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-
/** @deprecated renderscript is deprecated in J
150+
/**
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-
/** @deprecated renderscript is deprecated in J
160+
/**
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-
/** @deprecated renderscript is deprecated in J
23+
/**
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-
/** @deprecated renderscript is deprecated in J
23+
/**
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-
/** @deprecated renderscript is deprecated in J
23+
/**
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-
/** @deprecated renderscript is deprecated in J
23+
/**
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-
/** @deprecated renderscript is deprecated in J
23+
/**
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-
/** @deprecated renderscript is deprecated in J
23+
/**
2424
* Class for exposing the native Renderscript double4 type back
2525
* to the Android system.
2626
*

0 commit comments

Comments
 (0)