diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-02-22 15:06:47 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-02-22 15:08:16 +0800 |
commit | 620144029819df06bda2452fa3ec15334f66bd65 (patch) | |
tree | 244e8173336887b3c65075c570a962b70ce49fee /media/tests | |
parent | e265532f30ca460dc0900c4cdfc3c7425ae7714b (diff) | |
download | frameworks_base-620144029819df06bda2452fa3ec15334f66bd65.zip frameworks_base-620144029819df06bda2452fa3ec15334f66bd65.tar.gz frameworks_base-620144029819df06bda2452fa3ec15334f66bd65.tar.bz2 |
Increase the sleep time to fix testTakePicture.
One of the build needs 5 seconds for snapshot in low light. I don't want to
increase the sleep time, but this is what we have now.
bug:2141755
Diffstat (limited to 'media/tests')
-rwxr-xr-x | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java | 2 | ||||
-rw-r--r-- | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java index 6087268..0e883e6 100755 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java @@ -48,7 +48,7 @@ public class MediaNames { public static final long PAUSE_WAIT_TIME = 3000; public static final long WAIT_TIME = 2000; - public static final long WAIT_LONG = 4000; + public static final long WAIT_SNAPSHOT_TIME = 5000; //Streaming Video public static final String VIDEO_HTTP3GP = "http://pvs.pv.com/jj/lipsync0.3gp"; diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java index fa0986a..784db97 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CameraTest.java @@ -192,7 +192,7 @@ public class CameraTest extends ActivityInstrumentationTestCase<MediaFrameworkTe } mCamera.setPreviewCallback(null); mCamera.takePicture(mShutterCallback, mRawPictureCallback, mJpegPictureCallback); - Thread.sleep(MediaNames.WAIT_LONG); + Thread.sleep(MediaNames.WAIT_SNAPSHOT_TIME); } catch (Exception e) { Log.v(TAG, e.toString()); } |