summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoCamera.java
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2010-12-16 18:34:48 -0800
committerYu Shan Emily Lau <yslau@google.com>2011-01-09 17:33:40 -0800
commitbbe9db4d12978f220aeb0379731b548420bbd6db (patch)
treecd99b3ce58540a4a7f5480a06aa84085184cc516 /src/com/android/camera/VideoCamera.java
parent1a04bb18bcfafb903f192a4e5b65f2d0720f371e (diff)
downloadLegacyCamera-bbe9db4d12978f220aeb0379731b548420bbd6db.zip
LegacyCamera-bbe9db4d12978f220aeb0379731b548420bbd6db.tar.gz
LegacyCamera-bbe9db4d12978f220aeb0379731b548420bbd6db.tar.bz2
Removed the flaky memory checking.
Added the image caputre and video recording stress test for the front facing camera. Change-Id: Ice3abf35791e1953f70ef25375409fd5efe870b3
Diffstat (limited to 'src/com/android/camera/VideoCamera.java')
-rw-r--r--src/com/android/camera/VideoCamera.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 053b074..15f81ce 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -311,6 +311,13 @@ public class VideoCamera extends NoSearchActivity
mPreferences = new ComboPreferences(this);
CameraSettings.upgradeGlobalPreferences(mPreferences.getGlobal());
mCameraId = CameraSettings.readPreferredCameraId(mPreferences);
+
+ //Testing purpose. Launch a specific camera through the intent extras.
+ int intentCameraId = Util.getCameraFacingIntentExtras(this);
+ if (intentCameraId != -1) {
+ mCameraId = intentCameraId;
+ }
+
mPreferences.setLocalId(this, mCameraId);
CameraSettings.upgradeLocalPreferences(mPreferences.getLocal());