summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-12-10 12:11:02 -0800
committerYu Shan Emily Lau <yslau@google.com>2010-12-10 12:11:02 -0800
commitd1388c708afdc08a59f2bfb29d69a5b82593977a (patch)
treee851ef546bfb18308cdce17b3ee1e1fefeae5181 /tests/src/com/android
parent587ed2356a337e809095ae44f22b5e85aad54583 (diff)
downloadLegacyCamera-d1388c708afdc08a59f2bfb29d69a5b82593977a.zip
LegacyCamera-d1388c708afdc08a59f2bfb29d69a5b82593977a.tar.gz
LegacyCamera-d1388c708afdc08a59f2bfb29d69a5b82593977a.tar.bz2
Modified the key event injection to adopt the Camera UI change.
Change-Id: Ic36c73a92ee4f0f54253f69eef5d1489659d58e4
Diffstat (limited to 'tests/src/com/android')
-rwxr-xr-xtests/src/com/android/camera/stress/CameraLatency.java1
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java1
2 files changed, 0 insertions, 2 deletions
diff --git a/tests/src/com/android/camera/stress/CameraLatency.java b/tests/src/com/android/camera/stress/CameraLatency.java
index 24def76..7d7a49a 100755
--- a/tests/src/com/android/camera/stress/CameraLatency.java
+++ b/tests/src/com/android/camera/stress/CameraLatency.java
@@ -71,7 +71,6 @@ public class CameraLatency extends ActivityInstrumentationTestCase2 <Camera> {
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);
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java
index dfe3ed6..f376487 100755
--- a/tests/src/com/android/camera/stress/ImageCapture.java
+++ b/tests/src/com/android/camera/stress/ImageCapture.java
@@ -206,7 +206,6 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
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_CENTER);