Lines Matching refs:CAMERA
30 import android.hardware.Camera;
49 private Camera mCamera;
130 private final class CameraErrorCallback implements android.hardware.Camera.ErrorCallback {
131 public void onError(int error, android.hardware.Camera camera) {
132 if (error == android.hardware.Camera.CAMERA_ERROR_SERVER_DIED) {
133 assertTrue("Camera test mediaserver died", false);
145 //Test case for stressing the camera preview.
152 output.write("Camera start preview stress:\n");
163 mCamera = Camera.open();
182 //Test case for stressing the camera preview.
207 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
233 //Stress test case for switching camera and video recorder preview.
241 output.write("Camera and video recorder preview switching\n");
251 mCamera = Camera.open();
261 Log.v(TAG, "release camera");
271 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
360 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
410 output.write("Start camera time lapse stress:\n");
429 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
437 // http://developer.android.com/guide/topics/media/camera.html#time-lapse-video
470 assertTrue("Camera time lapse stress test IllegalStateException", false);
474 assertTrue("Camera time lapse stress test IOException", false);
478 assertTrue("Camera time lapse stress test Exception", false);