Home | History | Annotate | Download | only in camera

Lines Matching full:camera

17 package com.android.camera;
19 import static com.android.camera.Util.Assert;
21 import android.hardware.Camera.CameraInfo;
22 import android.hardware.Camera.Parameters;
33 * The class is used to hold an {@code android.hardware.Camera} instance.
36 * in {@code android.hardware.Camera}. The difference is if {@code keep()} is
38 * android.hardware.Camera} instance for a while, so if {@code open()} is
40 * android.hardware.Camera}.
42 * <p>This is used in switching between {@code Camera} and {@code VideoCamera}
47 private android.hardware.Camera mCameraDevice;
48 private long mKeepBeforeTime = 0; // Keep the Camera before this time.
52 private int mCameraId = -1; // current camera id
56 // We store the camera parameters when we actually open the device,
58 // This prevents the parameters set by the Camera activity used by
98 mNumberOfCameras = android.hardware.Camera.getNumberOfCameras();
102 android.hardware.Camera.getCameraInfo(i, mInfo[i]);
120 public synchronized android.hardware.Camera open(int cameraId)
130 Log.v(TAG, "open camera " + cameraId);
131 mCameraDevice = android.hardware.Camera.open(cameraId);
134 Log.e(TAG, "fail to connect Camera", e);
154 * Tries to open the hardware camera. If the camera is being used or
157 public synchronized android.hardware.Camera tryOpen(int cameraId) {
188 // We must set this to null because it has a reference to Camera.
189 // Camera has references to the listeners.
199 // Keep the camera instance for 3 seconds.