summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-10-20 14:13:37 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-20 14:13:37 -0700
commitd6b52be74268fa9163f35a8e8612a8740e5f96aa (patch)
tree16dfa68b611c89b379cf0ed62c059404019e04c8
parent9a2b75b19b46ad5a66edf9a1c97f8da281c3dfdc (diff)
parent0a0a2d58d12fc261202da412f088431f39ea4ed0 (diff)
downloadLegacyCamera-d6b52be74268fa9163f35a8e8612a8740e5f96aa.zip
LegacyCamera-d6b52be74268fa9163f35a8e8612a8740e5f96aa.tar.gz
LegacyCamera-d6b52be74268fa9163f35a8e8612a8740e5f96aa.tar.bz2
Merge "Fixed the camera image stress test with the new UI."
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java5
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){