Searched refs:CameraHolder (Results 1 - 18 of 18) sorted by relevance

/packages/apps/Camera/src/com/android/camera/
H A DCameraButtonIntentReceiver.java38 CameraHolder holder = CameraHolder.instance();
H A DCameraHolder.java42 * called before {@code release()}, CameraHolder will try to hold the {@code
49 public class CameraHolder { class
50 private static final String TAG = "CameraHolder";
120 private static CameraHolder sHolder;
121 public static synchronized CameraHolder instance() {
123 sHolder = new CameraHolder();
138 synchronized (CameraHolder.this) {
139 // In 'CameraHolder.open', the 'RELEASE_CAMERA' message
154 sHolder = new CameraHolder();
157 private CameraHolder() { method in class:CameraHolder
[all...]
H A DCameraSettings.java415 int n = CameraHolder.instance().getNumberOfCameras();
494 int backCameraId = CameraHolder.instance().getBackCameraId();
501 int frontCameraId = CameraHolder.instance().getFrontCameraId();
H A DUtil.java315 return CameraHolder.instance().open(cameraId);
555 int frontCameraId = CameraHolder.instance().getFrontCameraId();
561 int backCameraId = CameraHolder.instance().getBackCameraId();
698 CameraInfo info = CameraHolder.instance().getCameraInfo()[cameraId];
H A DPhotoModule.java487 int backCameraId = CameraHolder.instance().getBackCameraId();
732 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1422 mCameraId, CameraHolder.instance().getCameraInfo());
1710 CameraHolder.instance().keep(KEEP_CAMERA_TIMEOUT);
1825 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1878 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
2025 CameraHolder.instance().release();
2446 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
H A DCameraActivity.java144 CameraHolder.instance().keep();
H A DPanoramaModule.java337 CameraHolder.instance().release();
344 int cameraId = CameraHolder.instance().getBackCameraId();
352 if (cameraId == CameraHolder.instance().getFrontCameraId()) mUsingFrontCamera = true;
533 int cameraId = CameraHolder.instance().getBackCameraId();
H A DVideoModule.java432 mActivity.mNumberOfCameras = CameraHolder.instance().getNumberOfCameras();
519 mCameraId, CameraHolder.instance().getCameraInfo());
998 CameraHolder.instance().release();
1264 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1310 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1683 CameraInfo[] info = CameraHolder.instance().getCameraInfo();
/packages/apps/Camera/tests/src/com/android/camera/activity/
H A DCameraActivityTest.java23 import com.android.camera.CameraHolder;
40 CameraHolder.injectMockCamera(mCameraInfo, mOneMockCamera);
H A DCameraTestCase.java32 import com.android.camera.CameraHolder;
172 CameraHolder.injectMockCamera(null, null);
176 CameraHolder.injectMockCamera(mCameraInfo, null);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraButtonIntentReceiver.java38 CameraHolder holder = CameraHolder.instance();
H A DCameraHolder.java37 * called before {@code release()}, CameraHolder will try to hold the {@code
45 public class CameraHolder { class
46 private static final String TAG = "CameraHolder";
63 private static CameraHolder sHolder;
64 public static synchronized CameraHolder instance() {
66 sHolder = new CameraHolder();
81 synchronized (CameraHolder.this) {
82 // In 'CameraHolder.open', the 'RELEASE_CAMERA' message
87 if (CameraHolder.this.mUsers == 0) releaseCamera();
94 private CameraHolder() { method in class:CameraHolder
[all...]
H A DMenuHelper.java88 CameraHolder.instance().keep();
H A DUtil.java267 return CameraHolder.instance().open(cameraId);
500 int frontCameraId = CameraHolder.instance().getFrontCameraId();
506 int backCameraId = CameraHolder.instance().getBackCameraId();
623 CameraInfo info = CameraHolder.instance().getCameraInfo()[cameraId];
H A DCamera.java385 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
532 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1147 mNumberOfCameras = CameraHolder.instance().getNumberOfCameras();
1192 mBackCameraId = CameraHolder.instance().getBackCameraId();
1193 mFrontCameraId = CameraHolder.instance().getFrontCameraId();
1241 mCameraId, CameraHolder.instance().getCameraInfo());
1802 CameraHolder.instance().release();
H A DCameraSettings.java426 int backCameraId = CameraHolder.instance().getBackCameraId();
433 int frontCameraId = CameraHolder.instance().getFrontCameraId();
H A DVideoCamera.java371 mNumberOfCameras = CameraHolder.instance().getNumberOfCameras();
481 mBackCameraId = CameraHolder.instance().getBackCameraId();
482 mFrontCameraId = CameraHolder.instance().getFrontCameraId();
489 mCameraId, CameraHolder.instance().getCameraInfo());
955 CameraHolder.instance().release();
1250 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1281 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId];
1659 CameraInfo[] info = CameraHolder.instance().getCameraInfo();
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoramaActivity.java22 import com.android.camera.CameraHolder;
359 CameraHolder.instance().release();
366 int backCameraId = CameraHolder.instance().getBackCameraId();

Completed in 120 milliseconds