Lines Matching refs:camera
17 package com.android.camera;
43 import com.android.camera.app.AppController;
44 import com.android.camera.app.CameraAppUI;
45 import com.android.camera.app.CameraAppUI.BottomBarUISpec;
46 import com.android.camera.app.LocationManager;
47 import com.android.camera.app.MediaSaver;
48 import com.android.camera.debug.DebugPropertyHelper;
49 import com.android.camera.debug.Log;
50 import com.android.camera.debug.Log.Tag;
51 import com.android.camera.hardware.HardwareSpec;
52 import com.android.camera.module.ModuleController;
53 import com.android.camera.one.OneCamera;
54 import com.android.camera.one.OneCamera.AutoFocusState;
55 import com.android.camera.one.OneCamera.CaptureReadyCallback;
56 import com.android.camera.one.OneCamera.Facing;
57 import com.android.camera.one.OneCamera.OpenCallback;
58 import com.android.camera.one.OneCamera.PhotoCaptureParameters;
59 import com.android.camera.one.OneCamera.PhotoCaptureParameters.Flash;
60 import com.android.camera.one.OneCameraManager;
61 import com.android.camera.one.Settings3A;
62 import com.android.camera.one.v2.OneCameraManagerImpl;
63 import com.android.camera.remote.RemoteCameraModule;
64 import com.android.camera.session.CaptureSession;
65 import com.android.camera.settings.Keys;
66 import com.android.camera.settings.SettingsManager;
67 import com.android.camera.ui.CountDownView;
68 import com.android.camera.ui.PreviewStatusListener;
69 import com.android.camera.ui.TouchCoordinate;
70 import com.android.camera.util.CameraUtil;
71 import com.android.camera.util.GcamHelper;
72 import com.android.camera.util.Size;
73 import com.android.camera.util.UsageStatistics;
151 /** Timeout for camera open/close operations. */
177 /** The camera manager used to open cameras. */
179 /** The currently opened camera device, or null if the camera is closed. */
181 /** Held when opening or closing the camera. */
183 /** The direction the currently opened camera is facing to. */
258 /** Handler thread for camera-related operations. */
267 /** Current width of preview frames from camera. */
269 /** Current height of preview frames from camera.. */
553 // TODO: Check if we can really take a photo right now (memory, camera
572 // have to open the camera and start the preview here.
615 // the camera then point the camera to floor or sky, we still have
629 // Ignore since we manage the camera ourselves until we remove this.
635 // Sitcky HDR+ mode should hard reset HDR+ to on, and camera back
743 // If we receive this after the camera is closed, do nothing.
757 // Timeout in case camera fails to stop (unlikely).
945 throw new IllegalStateException("This should never be called with Camera API V1");
991 * returns the proper callback to be used for when the camera
1003 // At the time this callback is fired, the camera id setting
1004 // has changed to the desired camera.
1009 "Hdr plus should never be switching from front facing camera.");
1013 // switching to back camera again.
1027 // At the time this callback is fired, the camera id
1028 // has be set to the desired camera.
1032 Log.d(TAG, "Start to switch camera. cameraId=" + cameraId);
1222 * Open camera and start the preview.
1225 // Only enable HDR on the back camera
1236 throw new RuntimeException("Time out waiting to acquire camera-open lock.");
1239 throw new RuntimeException("Interrupted while waiting to acquire camera-open lock.", e);
1245 Log.e(TAG, "Could not open camera.");
1258 public void onCameraOpened(final OneCamera camera) {
1259 Log.d(TAG, "onCameraOpened: " + camera);
1260 mCamera = camera;
1271 camera.startPreview(new Surface(mPreviewTexture),
1277 // in pause(), getting ready to close the camera.
1284 Log.d(TAG, "Camera closed, aborting.");
1298 // in pause(), getting ready to close the camera.
1305 Log.d(TAG, "Camera closed, aborting.");
1326 throw new RuntimeException("Interrupted while waiting to acquire camera-open lock.", e);
1357 * Re-initialize the camera if e.g. the HDR mode or facing property changed.
1382 // orientation of the device (at least for the back-camera).
1384 // TODO: Remove this hack for the front camera as soon as b/16637957 is
1393 * Returns which way around the camera is facing, based on it's ID.
1396 * settings, rather than a Camera ID.
1408 // photo and video based image producers (presumably only Camera 1 api),