From 67cc2d033e90572a198898e1814982bea71a2288 Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Thu, 6 Feb 2014 16:39:38 -0800 Subject: Add hidden minor version ID for support lib workarounds. Change-Id: I7940e32c78caaab351fb28d92e5fadbea6292b27 --- rs/java/android/renderscript/RenderScript.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'rs') 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. -- cgit v1.1