diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-11-11 14:18:35 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-11-13 12:04:44 +0800 |
commit | 6eabb9b770a7c60cb92aa2e22f360754f32f39f8 (patch) | |
tree | 518cc22c29213a0147b37d10b0c667afd7175a6d /tests | |
parent | a2cbd31e81bf6b4a65ade4a5c34c303546d57d8c (diff) | |
download | packages_apps_LegacyCamera-6eabb9b770a7c60cb92aa2e22f360754f32f39f8.zip packages_apps_LegacyCamera-6eabb9b770a7c60cb92aa2e22f360754f32f39f8.tar.gz packages_apps_LegacyCamera-6eabb9b770a7c60cb92aa2e22f360754f32f39f8.tar.bz2 |
Close the camera application immediately when media server dies.
Crash the app earlier. Otherwise, the app will crash later in other
places and the log is gone. Getting a new Camera object is not good
because it's hard for the app to reset the current state. For example,
the state can be autofocus, preview, snapshot, recording, saving
thumbnail.
bug:3178948
Change-Id: Ibb38e6bfe927ed2ab9b87e2ee47044be8b96727b
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/src/com/android/camera/stress/ImageCapture.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java index 4960389..0fafb9d 100755 --- a/tests/src/com/android/camera/stress/ImageCapture.java +++ b/tests/src/com/android/camera/stress/ImageCapture.java @@ -214,14 +214,6 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> { Log.v(TAG, "value of i :" + i); getMemoryWriteToLog(output); } - //Check if the mediaserver died, if so, exit the test - if (Camera.mMediaServerDied){ - mOut.write("\nmedia server died\n"); - mOut.flush(); - output.close(); - Camera.mMediaServerDied = false; - assertTrue("Camera Image Capture", false); - } mOut.write(" ," + i); mOut.flush(); } |