commit | 761d3d0df785761bb442c64793cc15eafa9171fd | [log] [tgz] |
---|---|---|
author | Jason Sams <jsams@google.com> | Tue Sep 25 14:59:28 2012 -0700 |
committer | Jason Sams <jsams@google.com> | Tue Sep 25 15:00:04 2012 -0700 |
tree | a728621aa96b9f3e3dea7e520f51a5eab7401436 | |
parent | 64339168c4ff0b3ac249398811db7c88eca8f95c [diff] |
Reduce test warmup time to avoid driving into thermal throttle. bug 7216044 Change-Id: I72c83e31dc39a0a810d8a453903213bd428dbe29
diff --git a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java index c171a64..a8462e6 100644 --- a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java +++ b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java
@@ -377,7 +377,7 @@ long result = 0; //Log.v(TAG, "Warming"); - long t = java.lang.System.currentTimeMillis() + 2000; + long t = java.lang.System.currentTimeMillis() + 250; do { mTest.runTest(); mTest.finish(); @@ -391,7 +391,7 @@ mTest.runTest(); mTest.finish(); ct++; - } while ((t+5000) > java.lang.System.currentTimeMillis()); + } while ((t+1000) > java.lang.System.currentTimeMillis()); t = java.lang.System.currentTimeMillis() - t; float ft = (float)t; ft /= ct;