summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/camera/stress/ImageCapture.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/ImageCapture.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/ImageCapture.java')
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java
index fd7e2afa7..f5f430225 100755
--- a/tests/src/com/android/camera/stress/ImageCapture.java
+++ b/tests/src/com/android/camera/stress/ImageCapture.java
@@ -40,8 +40,8 @@ import android.app.Activity;
public class ImageCapture extends ActivityInstrumentationTestCase2 <CameraActivity> {
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 <CameraActivi
Thread.sleep(WAIT_FOR_SWITCH_CAMERA);
captureImages("Back Camera Image Capture\n", inst);
act.finish();
+ // Wait for a clean finish.
+ Thread.sleep(2 * 1000); //sleep for 2 seconds.
+
}
public void testFrontImageCapture() throws Exception {
@@ -115,5 +118,7 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <CameraActivi
Thread.sleep(WAIT_FOR_SWITCH_CAMERA);
captureImages("Front Camera Image Capture\n", inst);
act.finish();
+ // Wait for a clean finish.
+ Thread.sleep(2 * 1000); //sleep for 2 seconds.
}
}