Lines Matching refs:camera
17 package com.android.camera;
19 import static com.android.camera.util.CameraUtil.Assert;
21 import android.hardware.Camera.CameraInfo;
22 import android.hardware.Camera.Parameters;
30 import com.android.camera.CameraManager.CameraProxy;
38 * The class is used to hold an {@code android.hardware.Camera} instance.
41 * in {@code android.hardware.Camera}. The difference is if {@code keep()} is
43 * android.hardware.Camera} instance for a while, so if {@code open()} is
45 * android.hardware.Camera}.
53 private long mKeepBeforeTime; // Keep the Camera before this time.
55 private boolean mCameraOpened; // true if camera is opened
57 private int mCameraId = -1; // current camera id
113 // We store the camera parameters when we actually open the device,
151 public static void injectMockCamera(CameraInfo[] info, CameraProxy[] camera) {
153 mMockCamera = camera;
165 mNumberOfCameras = android.hardware.Camera.getNumberOfCameras();
169 android.hardware.Camera.getCameraInfo(i, mInfo[i]);
173 // get the first (smallest) back and first front camera id
208 Log.v(TAG, "open camera " + cameraId);
221 Log.e(TAG, "fail to connect Camera:" + mCameraId + ", aborting.");
228 Log.e(TAG, "fail to reconnect Camera:" + mCameraId + ", aborting.");
240 * Tries to open the hardware camera. If the camera is being used or
274 // We must set this to null because it has a reference to Camera.
275 // Camera has references to the listeners.