diff options
author | Tim Murray <timmurray@google.com> | 2014-02-14 20:47:33 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-02-14 20:47:34 +0000 |
commit | d7043f0084237200b6aab5d101c8ab6d3ab495c6 (patch) | |
tree | dcc67f8b7e750e3c30d4bd1120ba0b6c0f715d32 /rs/java | |
parent | fa8f95e9b96e3a12e98269c8a31ed34df6a323ca (diff) | |
parent | 67cc2d033e90572a198898e1814982bea71a2288 (diff) | |
download | frameworks_base-d7043f0084237200b6aab5d101c8ab6d3ab495c6.zip frameworks_base-d7043f0084237200b6aab5d101c8ab6d3ab495c6.tar.gz frameworks_base-d7043f0084237200b6aab5d101c8ab6d3ab495c6.tar.bz2 |
Merge "Add hidden minor version ID for support lib workarounds."
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 8618764..b211c5a 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. |