Add @UnsupportedAppUsage annotations
For packages: android.renderscript This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I016f6e720e79c48afe44f4690b5dd99fc81ae780 Merged-In: I1aa8ebca448547031b426a7b305c5c3d6fcf2652
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.renderscript;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
|
||||
/**
|
||||
* @hide
|
||||
@@ -45,11 +47,13 @@ public class ProgramStore extends BaseObj {
|
||||
/**
|
||||
* Always drawn
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
ALWAYS (0),
|
||||
/**
|
||||
* Drawn if the incoming depth value is less than that in the
|
||||
* depth buffer
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
LESS (1),
|
||||
/**
|
||||
* Drawn if the incoming depth value is less or equal to that in
|
||||
@@ -93,9 +97,11 @@ public class ProgramStore extends BaseObj {
|
||||
*/
|
||||
public enum BlendSrcFunc {
|
||||
ZERO (0),
|
||||
@UnsupportedAppUsage
|
||||
ONE (1),
|
||||
DST_COLOR (2),
|
||||
ONE_MINUS_DST_COLOR (3),
|
||||
@UnsupportedAppUsage
|
||||
SRC_ALPHA (4),
|
||||
ONE_MINUS_SRC_ALPHA (5),
|
||||
DST_ALPHA (6),
|
||||
@@ -118,11 +124,14 @@ public class ProgramStore extends BaseObj {
|
||||
*
|
||||
*/
|
||||
public enum BlendDstFunc {
|
||||
@UnsupportedAppUsage
|
||||
ZERO (0),
|
||||
@UnsupportedAppUsage
|
||||
ONE (1),
|
||||
SRC_COLOR (2),
|
||||
ONE_MINUS_SRC_COLOR (3),
|
||||
SRC_ALPHA (4),
|
||||
@UnsupportedAppUsage
|
||||
ONE_MINUS_SRC_ALPHA (5),
|
||||
DST_ALPHA (6),
|
||||
ONE_MINUS_DST_ALPHA (7);
|
||||
@@ -299,6 +308,7 @@ public class ProgramStore extends BaseObj {
|
||||
*
|
||||
* @param rs Context to which the program will belong.
|
||||
**/
|
||||
@UnsupportedAppUsage
|
||||
public static ProgramStore BLEND_ALPHA_DEPTH_NONE(RenderScript rs) {
|
||||
if(rs.mProgramStore_BLEND_ALPHA_DEPTH_NO_DEPTH == null) {
|
||||
ProgramStore.Builder builder = new ProgramStore.Builder(rs);
|
||||
@@ -328,6 +338,7 @@ public class ProgramStore extends BaseObj {
|
||||
BlendDstFunc mBlendDst;
|
||||
boolean mDither;
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public Builder(RenderScript rs) {
|
||||
mRS = rs;
|
||||
mDepthFunc = DepthFunc.ALWAYS;
|
||||
@@ -347,6 +358,7 @@ public class ProgramStore extends BaseObj {
|
||||
*
|
||||
* @return this
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Builder setDepthFunc(DepthFunc func) {
|
||||
mDepthFunc = func;
|
||||
return this;
|
||||
@@ -360,6 +372,7 @@ public class ProgramStore extends BaseObj {
|
||||
*
|
||||
* @return this
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Builder setDepthMaskEnabled(boolean enable) {
|
||||
mDepthMask = enable;
|
||||
return this;
|
||||
@@ -394,6 +407,7 @@ public class ProgramStore extends BaseObj {
|
||||
*
|
||||
* @return this
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Builder setBlendFunc(BlendSrcFunc src, BlendDstFunc dst) {
|
||||
mBlendSrc = src;
|
||||
mBlendDst = dst;
|
||||
@@ -408,6 +422,7 @@ public class ProgramStore extends BaseObj {
|
||||
*
|
||||
* @return this
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Builder setDitherEnabled(boolean enable) {
|
||||
mDither = enable;
|
||||
return this;
|
||||
@@ -416,6 +431,7 @@ public class ProgramStore extends BaseObj {
|
||||
/**
|
||||
* Creates a program store from the current state of the builder
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public ProgramStore create() {
|
||||
mRS.validate();
|
||||
long id = mRS.nProgramStoreCreate(mColorMaskR, mColorMaskG, mColorMaskB, mColorMaskA,
|
||||
|
||||
Reference in New Issue
Block a user