diff options
author | Mathew Inwood <mathewi@google.com> | 2018-08-06 11:18:49 +0100 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2018-08-06 11:19:48 +0100 |
commit | 1532447a7b186fc31026231996ade3befe8e9ffa (patch) | |
tree | 201c9440b3e3b8e05c79c430506258e03a378d04 /rs/java/android/renderscript/RenderScript.java | |
parent | 5caebe341576d52502ce397f3c778fe259c17948 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
-rw-r--r-- | rs/java/android/renderscript/RenderScript.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java index 0f22568a9e2a..429315782a63 100644 --- a/rs/java/android/renderscript/RenderScript.java +++ b/rs/java/android/renderscript/RenderScript.java @@ -22,6 +22,7 @@ import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.concurrent.locks.ReentrantReadWriteLock; +import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.res.AssetManager; import android.graphics.Bitmap; @@ -103,6 +104,7 @@ public class RenderScript { * Detect the bitness of the VM to allow FieldPacker to do the right thing. */ static native int rsnSystemGetPointerSize(); + @UnsupportedAppUsage static int sPointerSize; static { @@ -153,6 +155,7 @@ public class RenderScript { * @return Always return 1 * */ + @UnsupportedAppUsage public static long getMinorID() { return 1; } @@ -833,6 +836,7 @@ public class RenderScript { native long rsnScriptCCreate(long con, String resName, String cacheDir, byte[] script, int length); + @UnsupportedAppUsage synchronized long nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { validate(); return rsnScriptCCreate(mContext, resName, cacheDir, script, length); @@ -1158,6 +1162,7 @@ public class RenderScript { * sendToClient} by scripts from this context. * */ + @UnsupportedAppUsage RSMessageHandler mMessageCallback = null; public void setMessageHandler(RSMessageHandler msg) { @@ -1232,6 +1237,7 @@ public class RenderScript { } } + @UnsupportedAppUsage void validate() { if (mContext == 0) { throw new RSInvalidStateException("Calling RS with no Context active."); @@ -1495,6 +1501,7 @@ public class RenderScript { * @param sdkVersion The target SDK Version. * @return RenderScript */ + @UnsupportedAppUsage public static RenderScript create(Context ctx, int sdkVersion) { return create(ctx, sdkVersion, ContextType.NORMAL, CREATE_FLAG_NONE); } @@ -1508,6 +1515,7 @@ public class RenderScript { * @param flags The OR of the CREATE_FLAG_* options desired * @return RenderScript */ + @UnsupportedAppUsage private static RenderScript create(Context ctx, int sdkVersion, ContextType ct, int flags) { if (sdkVersion < 23) { return internalCreate(ctx, sdkVersion, ct, flags); |