summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-10-28 16:35:40 -0700
committerYu Shan Emily Lau <yslau@google.com>2010-10-28 16:35:40 -0700
commitd3ccb366eee12a802d94515974545e6414a61aa8 (patch)
tree61b8d1e21155d57359cd49ac4f1222fb00fd3666 /tests/src
parent95eac8d46a1bb9643b35e04a43ce8341f8bcbace (diff)
downloadLegacyCamera-d3ccb366eee12a802d94515974545e6414a61aa8.zip
LegacyCamera-d3ccb366eee12a802d94515974545e6414a61aa8.tar.gz
LegacyCamera-d3ccb366eee12a802d94515974545e6414a61aa8.tar.bz2
Fixed the camera latency image capture test case with the new UI.
Change-Id: I483c89ad9a27b28fc1a5bf85bdabca93c2dc9ac9
Diffstat (limited to 'tests/src')
-rwxr-xr-xtests/src/com/android/camera/stress/CameraLatency.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/camera/stress/CameraLatency.java b/tests/src/com/android/camera/stress/CameraLatency.java
index 76805c4..c4cb9ec 100755
--- a/tests/src/com/android/camera/stress/CameraLatency.java
+++ b/tests/src/com/android/camera/stress/CameraLatency.java
@@ -70,10 +70,11 @@ public class CameraLatency extends ActivityInstrumentationTestCase2 <Camera> {
public void testImageCapture() {
Log.v(TAG, "start testImageCapture test");
Instrumentation inst = getInstrumentation();
+ inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN);
+ inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_DOWN);
try {
for (int i = 0; i < TOTAL_NUMBER_OF_IMAGECAPTURE; 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);
//skip the first measurement