summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/FileA3D.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-08-06 12:11:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-08-06 12:11:30 +0000
commit3d05f769a393d43953bcee1437b67066c2e85a02 (patch)
tree201c9440b3e3b8e05c79c430506258e03a378d04 /rs/java/android/renderscript/FileA3D.java
parent5caebe341576d52502ce397f3c778fe259c17948 (diff)
parent1532447a7b186fc31026231996ade3befe8e9ffa (diff)
Merge "Add @UnsupportedAppUsage annotations"
Diffstat (limited to 'rs/java/android/renderscript/FileA3D.java')
-rw-r--r--rs/java/android/renderscript/FileA3D.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/FileA3D.java b/rs/java/android/renderscript/FileA3D.java
index 278d309c74f7..9a6b0bcd4544 100644
--- a/rs/java/android/renderscript/FileA3D.java
+++ b/rs/java/android/renderscript/FileA3D.java
@@ -19,6 +19,7 @@ package android.renderscript;
import java.io.File;
import java.io.InputStream;
+import android.annotation.UnsupportedAppUsage;
import android.content.res.AssetManager;
import android.content.res.Resources;
@@ -53,6 +54,7 @@ public class FileA3D extends BaseObj {
* @deprecated in API 16
* RenderScript Mesh object
**/
+ @UnsupportedAppUsage
MESH (1);
int mID;
@@ -100,6 +102,7 @@ public class FileA3D extends BaseObj {
* @return type of a renderscript object the index entry
* describes
*/
+ @UnsupportedAppUsage
public EntryType getEntryType() {
return mEntryType;
}
@@ -109,6 +112,7 @@ public class FileA3D extends BaseObj {
* Used to load the object described by the index entry
* @return base renderscript object described by the entry
*/
+ @UnsupportedAppUsage
public BaseObj getObject() {
mRS.validate();
BaseObj obj = internalCreate(mRS, this);
@@ -212,6 +216,7 @@ public class FileA3D extends BaseObj {
*
* @return entry in the a3d file described by the index
*/
+ @UnsupportedAppUsage
public IndexEntry getIndexEntry(int index) {
if(getIndexEntryCount() == 0 || index < 0 || index >= mFileEntries.length) {
return null;
@@ -284,6 +289,7 @@ public class FileA3D extends BaseObj {
*
* @return a3d file containing renderscript objects
*/
+ @UnsupportedAppUsage
static public FileA3D createFromResource(RenderScript rs, Resources res, int id) {
rs.validate();