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:
Mathew Inwood
2018-08-06 11:18:49 +01:00
parent 5caebe3415
commit 1532447a7b
19 changed files with 115 additions and 90 deletions

View File

@@ -21,6 +21,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import android.annotation.UnsupportedAppUsage;
import android.content.res.Resources;
import android.util.Log;
@@ -45,6 +46,7 @@ public class Program extends BaseObj {
*
**/
public enum TextureType {
@UnsupportedAppUsage
TEXTURE_2D (0),
TEXTURE_CUBE (1);
@@ -199,20 +201,30 @@ public class Program extends BaseObj {
public static class BaseProgramBuilder {
@UnsupportedAppUsage
RenderScript mRS;
@UnsupportedAppUsage
Element mInputs[];
@UnsupportedAppUsage
Element mOutputs[];
@UnsupportedAppUsage
Type mConstants[];
Type mTextures[];
TextureType mTextureTypes[];
String mTextureNames[];
@UnsupportedAppUsage
int mInputCount;
@UnsupportedAppUsage
int mOutputCount;
@UnsupportedAppUsage
int mConstantCount;
@UnsupportedAppUsage
int mTextureCount;
@UnsupportedAppUsage
String mShader;
@UnsupportedAppUsage
protected BaseProgramBuilder(RenderScript rs) {
mRS = rs;
mInputs = new Element[MAX_INPUT];