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
diff --git a/rs/java/android/renderscript/ProgramFragmentFixedFunction.java b/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
index 2b647c76..d05d41d 100644
--- a/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
+++ b/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
@@ -16,6 +16,8 @@
package android.renderscript;
+import android.annotation.UnsupportedAppUsage;
+
/**
* @hide
@@ -102,10 +104,12 @@
/**
* @deprecated in API 16
**/
+ @UnsupportedAppUsage
REPLACE (1),
/**
* @deprecated in API 16
**/
+ @UnsupportedAppUsage
MODULATE (2),
/**
* @deprecated in API 16
@@ -128,6 +132,7 @@
/**
* @deprecated in API 16
**/
+ @UnsupportedAppUsage
ALPHA (1),
/**
* @deprecated in API 16
@@ -136,10 +141,12 @@
/**
* @deprecated in API 16
**/
+ @UnsupportedAppUsage
RGB (3),
/**
* @deprecated in API 16
**/
+ @UnsupportedAppUsage
RGBA (4);
int mID;
@@ -228,6 +235,7 @@
*
* @param rs Context to which the program will belong.
*/
+ @UnsupportedAppUsage
public Builder(RenderScript rs) {
mRS = rs;
mSlots = new Slot[MAX_TEXTURE];
@@ -248,6 +256,7 @@
*
* @return this
*/
+ @UnsupportedAppUsage
public Builder setTexture(EnvMode env, Format fmt, int slot)
throws IllegalArgumentException {
if((slot < 0) || (slot >= MAX_TEXTURE)) {
@@ -277,6 +286,7 @@
* fragment shader
*
**/
+ @UnsupportedAppUsage
public Builder setVaryingColor(boolean enable) {
mVaryingColorEnable = enable;
return this;
@@ -288,6 +298,7 @@
* state of the builder.
*
*/
+ @UnsupportedAppUsage
public ProgramFragmentFixedFunction create() {
InternalBuilder sb = new InternalBuilder(mRS);
mNumTextures = 0;