summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-03-16 18:16:51 -0700
committerYu Shan Emily Lau <yslau@google.com>2010-03-16 18:38:26 -0700
commit1cffa446ee92314a09ef767970ee93fa8758c95a (patch)
tree02699bd74385df939f28975447e2e37469106412 /media
parent74d4843641ca1f810e27989873697cba1f41338a (diff)
downloadframeworks_base-1cffa446ee92314a09ef767970ee93fa8758c95a.zip
frameworks_base-1cffa446ee92314a09ef767970ee93fa8758c95a.tar.gz
frameworks_base-1cffa446ee92314a09ef767970ee93fa8758c95a.tar.bz2
Inserted a 1.5s wait time between the camera release and new camrea.
Change-Id: I7540064a6e5229be1ef0fe266cd3050ae36b33a4
Diffstat (limited to 'media')
-rw-r--r--media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java
index 8202efd..5ed68c5 100644
--- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java
+++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java
@@ -212,8 +212,13 @@ public class MediaPlayerPerformance extends ActivityInstrumentationTestCase<Medi
}
private void terminateMessageLooper() {
- mLooper.quit();
- mCamera.release();
+ try {
+ mLooper.quit();
+ mCamera.release();
+ Thread.sleep(1500);
+ } catch (Exception e) {
+ Log.v(TAG, e.toString());
+ }
}
private final class RawPreviewCallback implements PreviewCallback {