Loading media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java +3 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ public class MediaPlayerPerformance extends ActivityInstrumentationTestCase2<Med protected void setUp() throws Exception { super.setUp(); //Insert a 2 second before launching the test activity. This is //the workaround for the race condition of requesting the updated surface. Thread.sleep(2000); getActivity(); if (MediaFrameworkPerfTestRunner.mGetNativeHeapDump) MediaTestUtil.getNativeHeapDump(this.getName() + "_before"); Loading media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java +6 −1 Original line number Diff line number Diff line Loading @@ -43,13 +43,18 @@ import android.test.InstrumentationTestCase; /** * Junit / Instrumentation test case for the media player */ public class MediaPlayerStressTest extends InstrumentationTestCase { public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2<MediaFrameworkTest> { private String TAG = "MediaPlayerStressTest"; public MediaPlayerStressTest() { super("com.android.mediaframeworktest", MediaFrameworkTest.class); } protected void setUp() throws Exception { //Insert a 2 second before launching the test activity. This is //the workaround for the race condition of requesting the updated surface. Thread.sleep(2000); getActivity(); super.setUp(); } Loading media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,9 @@ public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2<Me if (! sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { fail("Failed to start the looper."); } //Insert a 2 second before launching the test activity. This is //the workaround for the race condition of requesting the updated surface. Thread.sleep(2000); getActivity(); super.setUp(); } Loading Loading
media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java +3 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ public class MediaPlayerPerformance extends ActivityInstrumentationTestCase2<Med protected void setUp() throws Exception { super.setUp(); //Insert a 2 second before launching the test activity. This is //the workaround for the race condition of requesting the updated surface. Thread.sleep(2000); getActivity(); if (MediaFrameworkPerfTestRunner.mGetNativeHeapDump) MediaTestUtil.getNativeHeapDump(this.getName() + "_before"); Loading
media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java +6 −1 Original line number Diff line number Diff line Loading @@ -43,13 +43,18 @@ import android.test.InstrumentationTestCase; /** * Junit / Instrumentation test case for the media player */ public class MediaPlayerStressTest extends InstrumentationTestCase { public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2<MediaFrameworkTest> { private String TAG = "MediaPlayerStressTest"; public MediaPlayerStressTest() { super("com.android.mediaframeworktest", MediaFrameworkTest.class); } protected void setUp() throws Exception { //Insert a 2 second before launching the test activity. This is //the workaround for the race condition of requesting the updated surface. Thread.sleep(2000); getActivity(); super.setUp(); } Loading
media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,9 @@ public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2<Me if (! sem.tryAcquire(WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) { fail("Failed to start the looper."); } //Insert a 2 second before launching the test activity. This is //the workaround for the race condition of requesting the updated surface. Thread.sleep(2000); getActivity(); super.setUp(); } Loading