diff options
author | Jason Sams <jsams@google.com> | 2012-09-25 14:59:28 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2012-09-25 15:00:04 -0700 |
commit | 761d3d0df785761bb442c64793cc15eafa9171fd (patch) | |
tree | a728621aa96b9f3e3dea7e520f51a5eab7401436 /tests | |
parent | 64339168c4ff0b3ac249398811db7c88eca8f95c (diff) | |
download | frameworks_base-761d3d0df785761bb442c64793cc15eafa9171fd.zip frameworks_base-761d3d0df785761bb442c64793cc15eafa9171fd.tar.gz frameworks_base-761d3d0df785761bb442c64793cc15eafa9171fd.tar.bz2 |
Reduce test warmup time to avoid driving into thermal throttle.
bug 7216044
Change-Id: I72c83e31dc39a0a810d8a453903213bd428dbe29
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ public class ImageProcessingActivity extends Activity 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 @@ public class ImageProcessingActivity extends Activity 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; |