diff options
author | Yu Shan Emily Lau <yslau@google.com> | 2010-10-20 12:44:31 -0700 |
---|---|---|
committer | Yu Shan Emily Lau <yslau@google.com> | 2010-10-20 12:46:05 -0700 |
commit | 0a0a2d58d12fc261202da412f088431f39ea4ed0 (patch) | |
tree | c899fbb980f29f638c834e844d03a8036b958e69 /tests | |
parent | e6da834b082439299bb60529e690845e14dfdbc4 (diff) | |
download | LegacyCamera-0a0a2d58d12fc261202da412f088431f39ea4ed0.zip LegacyCamera-0a0a2d58d12fc261202da412f088431f39ea4ed0.tar.gz LegacyCamera-0a0a2d58d12fc261202da412f088431f39ea4ed0.tar.bz2 |
Fixed the camera image stress test with the new UI.
Change-Id: I3c4a5e7233d4dd0f26a92a440c70164c802a3ecc
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/src/com/android/camera/stress/ImageCapture.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java index cd2bd29..4960389 100755 --- a/tests/src/com/android/camera/stress/ImageCapture.java +++ b/tests/src/com/android/camera/stress/ImageCapture.java @@ -203,10 +203,11 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> { mOut.write("Camera Image Capture\n"); mOut.write("No of loops :" + total_num_of_images + "\n"); mOut.write("loop: "); - + //Move the foucs to the image capture button + inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); + inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN); for (int i = 0; i < total_num_of_images; i++) { Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); - inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_UP); inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER); Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); if (( i % NO_OF_LOOPS_TAKE_MEMORY_SNAPSHOT) == 0){ |