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
This commit is contained in:
Wu-cheng Li
2010-02-22 15:06:47 +08:00
parent e265532f30
commit 6201440298
2 changed files with 2 additions and 2 deletions

View File

@@ -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";

View File

@@ -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());
}