diff options
author | Tim Murray <timmurray@google.com> | 2014-02-06 16:39:38 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2014-02-06 17:07:05 -0800 |
commit | 67cc2d033e90572a198898e1814982bea71a2288 (patch) | |
tree | e3989ee09618a0a0f3892e813571aaeb8ac24a1e /rs/java | |
parent | 449273e2d575041ffe1a5d435666d36923de888b (diff) | |
download | frameworks_base-67cc2d033e90572a198898e1814982bea71a2288.zip frameworks_base-67cc2d033e90572a198898e1814982bea71a2288.tar.gz frameworks_base-67cc2d033e90572a198898e1814982bea71a2288.tar.bz2 |
Add hidden minor version ID for support lib workarounds.
Change-Id: I7940e32c78caaab351fb28d92e5fadbea6292b27
Diffstat (limited to 'rs/java')
-rw-r--r-- | rs/java/android/renderscript/RenderScript.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/RenderScript.java b/rs/java/android/renderscript/RenderScript.java index 9c8775a..24c8eb4 100644 --- a/rs/java/android/renderscript/RenderScript.java +++ b/rs/java/android/renderscript/RenderScript.java @@ -103,6 +103,20 @@ public class RenderScript { static File mCacheDir; + // this should be a monotonically increasing ID + // used in conjunction with the API version of a device + static final long sMinorID = 1; + + /** + * Returns an identifier that can be used to identify a particular + * minor version of RS. + * + * @hide + */ + public static long getMinorID() { + return sMinorID; + } + /** * Sets the directory to use as a persistent storage for the * renderscript object file cache. |