From 05f84f31e26acdb9acd89c016d795669b2f994b2 Mon Sep 17 00:00:00 2001 From: priya Date: Wed, 9 Oct 2013 11:51:11 -0700 Subject: 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 --- tests/src/com/android/camera/stress/CameraLatency.java | 4 ++-- tests/src/com/android/camera/stress/CameraStartUp.java | 7 ++++--- tests/src/com/android/camera/stress/ImageCapture.java | 9 +++++++-- tests/src/com/android/camera/stress/VideoCapture.java | 10 ++++++++-- 4 files changed, 21 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/src/com/android/camera/stress/CameraLatency.java b/tests/src/com/android/camera/stress/CameraLatency.java index 527b5860d..22347ddb4 100755 --- a/tests/src/com/android/camera/stress/CameraLatency.java +++ b/tests/src/com/android/camera/stress/CameraLatency.java @@ -36,7 +36,7 @@ import java.io.FileWriter; public class CameraLatency extends ActivityInstrumentationTestCase2 { private String TAG = "CameraLatency"; private static final int TOTAL_NUMBER_OF_IMAGECAPTURE = 20; - private static final long WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN = 4000; + private static final long WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN = 6 * 1000; //6 seconds. private static final String CAMERA_TEST_OUTPUT_FILE = Environment.getExternalStorageDirectory().toString() + "/mediaStressOut.txt"; @@ -57,6 +57,7 @@ public class CameraLatency extends ActivityInstrumentationTestCase2 { private String TAG = "ImageCapture"; - private static final long WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN = 1500; //1.5 sedconds - private static final long WAIT_FOR_SWITCH_CAMERA = 3000; //3 seconds + private static final long WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN = 4 * 1000; //4 seconds + private static final long WAIT_FOR_SWITCH_CAMERA = 4 * 1000; //4 seconds private TestUtil testUtil = new TestUtil(); @@ -101,6 +101,9 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 { - 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