diff options
author | Yu Shan Emily Lau <yslau@google.com> | 2010-10-28 16:35:40 -0700 |
---|---|---|
committer | Yu Shan Emily Lau <yslau@google.com> | 2010-10-28 16:35:40 -0700 |
commit | d3ccb366eee12a802d94515974545e6414a61aa8 (patch) | |
tree | 61b8d1e21155d57359cd49ac4f1222fb00fd3666 /tests | |
parent | 95eac8d46a1bb9643b35e04a43ce8341f8bcbace (diff) | |
download | LegacyCamera-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')
-rwxr-xr-x | tests/src/com/android/camera/stress/CameraLatency.java | 3 |
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 |