From 0a0a2d58d12fc261202da412f088431f39ea4ed0 Mon Sep 17 00:00:00 2001 From: Yu Shan Emily Lau Date: Wed, 20 Oct 2010 12:44:31 -0700 Subject: Fixed the camera image stress test with the new UI. Change-Id: I3c4a5e7233d4dd0f26a92a440c70164c802a3ecc --- tests/src/com/android/camera/stress/ImageCapture.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/src/com') 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 { 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){ -- cgit v1.1