Loading tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +8 −2 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel throw new RuntimeException("No test specified"); } TestShellActivity activity = (TestShellActivity) getActivity(); final TestShellActivity activity = (TestShellActivity) getActivity(); Log.v(LOGTAG, "About to run tests, calling gc first..."); freeMem(); Loading @@ -109,7 +109,13 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis, runner.mGetDrawTime, runner.mSaveImagePath); getInstrumentation().runOnMainSync(new Runnable() { @Override public void run() { activity.clearCache(); } }); if (mForwardServer != null) { mForwardServer.stop(); mForwardServer = null; Loading Loading
tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +8 −2 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel throw new RuntimeException("No test specified"); } TestShellActivity activity = (TestShellActivity) getActivity(); final TestShellActivity activity = (TestShellActivity) getActivity(); Log.v(LOGTAG, "About to run tests, calling gc first..."); freeMem(); Loading @@ -109,7 +109,13 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis, runner.mGetDrawTime, runner.mSaveImagePath); getInstrumentation().runOnMainSync(new Runnable() { @Override public void run() { activity.clearCache(); } }); if (mForwardServer != null) { mForwardServer.stop(); mForwardServer = null; Loading