summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/camera/stress/VideoCapture.java
diff options
context:
space:
mode:
authorpriya <priyar@google.com>2013-10-09 11:51:11 -0700
committerpriya <priyar@google.com>2013-10-10 09:13:25 -0700
commit05f84f31e26acdb9acd89c016d795669b2f994b2 (patch)
tree98dbfdc738652e4fcf132178bc8ffd155ef4b8d0 /tests/src/com/android/camera/stress/VideoCapture.java
parent676b89cab6e9db1b784617fc16e97eadac7c4e2d (diff)
downloadandroid_packages_apps_Snap-05f84f31e26acdb9acd89c016d795669b2f994b2.tar.gz
android_packages_apps_Snap-05f84f31e26acdb9acd89c016d795669b2f994b2.tar.bz2
android_packages_apps_Snap-05f84f31e26acdb9acd89c016d795669b2f994b2.zip
Increased time to wait in all tests.
For CameraLAtency.java got rid of the key event to get rid of geo tagging dialog on first launch of camera. That will be taken care of by pushing the shared_pref file. Change-Id: I76a824b5690d6913630560d58739e2df5cc1c259
Diffstat (limited to 'tests/src/com/android/camera/stress/VideoCapture.java')
-rwxr-xr-xtests/src/com/android/camera/stress/VideoCapture.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/src/com/android/camera/stress/VideoCapture.java b/tests/src/com/android/camera/stress/VideoCapture.java
index 3688d8909..c7409829f 100755
--- a/tests/src/com/android/camera/stress/VideoCapture.java
+++ b/tests/src/com/android/camera/stress/VideoCapture.java
@@ -41,8 +41,8 @@ import com.android.camera.stress.CameraStressTestRunner;
*/
public class VideoCapture extends ActivityInstrumentationTestCase2 <CameraActivity> {
- private static final long WAIT_FOR_PREVIEW = 1500; //1.5 seconds
- private static final long WAIT_FOR_SWITCH_CAMERA = 3000; //2 seconds
+ private static final long WAIT_FOR_PREVIEW = 4 * 1000; //4 seconds
+ private static final long WAIT_FOR_SWITCH_CAMERA = 4 * 1000; //4 seconds
// Private intent extras which control the camera facing.
private final static String EXTRAS_CAMERA_FACING =
@@ -94,6 +94,9 @@ public class VideoCapture extends ActivityInstrumentationTestCase2 <CameraActivi
Thread.sleep(WAIT_FOR_SWITCH_CAMERA);
captureVideos("Back Camera Video Capture\n", inst);
act.finish();
+ // Wait for a clean finish.
+ Thread.sleep(2 * 1000); //sleep for 2 seconds
+
}
public void testFrontVideoCapture() throws Exception {
@@ -108,5 +111,8 @@ public class VideoCapture extends ActivityInstrumentationTestCase2 <CameraActivi
Thread.sleep(WAIT_FOR_SWITCH_CAMERA);
captureVideos("Front Camera Video Capture\n", inst);
act.finish();
+ // Wait for a clean finish.
+ Thread.sleep(2 * 1000); //sleep for 2 seconds.
+
}
}