Searched refs:cameraId (Results 1 - 21 of 21) sorted by relevance

/packages/apps/Camera/src/com/android/camera/
H A DCameraButtonIntentReceiver.java40 int cameraId = CameraSettings.readPreferredCameraId(pref);
41 if (holder.tryOpen(cameraId) == null) return;
H A DCameraHolder.java191 public synchronized CameraProxy open(int cameraId) argument
194 collectState(cameraId, mCameraDevice);
201 if (mCameraDevice != null && mCameraId != cameraId) {
208 Log.v(TAG, "open camera " + cameraId);
210 mCameraDevice = CameraManager.instance().cameraOpen(cameraId);
214 mCameraDevice = mMockCamera[cameraId];
216 mCameraId = cameraId;
241 public synchronized CameraProxy tryOpen(int cameraId) { argument
243 return !mCameraOpened ? open(cameraId) : null;
H A DCameraPreference.java38 public void onCameraPickerClicked(int cameraId); argument
H A DCameraSettings.java76 int cameraId, CameraInfo[] cameraInfo) {
79 mCameraId = cameraId;
92 public static String getDefaultVideoQuality(int cameraId, argument
96 cameraId, Integer.valueOf(defaultQuality))) {
412 int cameraId = readPreferredCameraId(pref);
413 if (cameraId == 0) return; // fast path
416 if (cameraId < 0 || cameraId >= n) {
426 int cameraId) {
428 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId));
75 CameraSettings(Activity activity, Parameters parameters, int cameraId, CameraInfo[] cameraInfo) argument
425 writePreferredCameraId(SharedPreferences pref, int cameraId) argument
[all...]
H A DUtil.java310 public static CameraManager.CameraProxy openCamera(Activity activity, int cameraId) argument
315 return CameraHolder.instance().open(cameraId);
389 public static int getDisplayOrientation(int degrees, int cameraId) { argument
393 Camera.getCameraInfo(cameraId, info);
404 public static int getCameraOrientation(int cameraId) { argument
406 Camera.getCameraInfo(cameraId, info);
548 int cameraId = -1;
557 cameraId = frontCameraId;
563 cameraId = backCameraId;
566 return cameraId;
693 getJpegRotation(int cameraId, int orientation) argument
[all...]
H A DComboPreferences.java53 public void setLocalId(Context context, int cameraId) { argument
54 String prefName = context.getPackageName() + "_preferences_" + cameraId;
H A DPhotoController.java117 protected void setCameraId(int cameraId) { argument
119 pref.setValue("" + cameraId);
H A DPieController.java71 protected void setCameraId(int cameraId) { argument
73 pref.setValue("" + cameraId);
H A DVideoController.java100 protected void setCameraId(int cameraId) { argument
102 pref.setValue("" + cameraId);
H A DPanoramaModule.java344 int cameraId = CameraHolder.instance().getBackCameraId();
349 if (cameraId == -1) cameraId = 0;
350 mCameraDevice = Util.openCamera(mActivity, cameraId);
351 mCameraOrientation = Util.getCameraOrientation(cameraId);
352 if (cameraId == CameraHolder.instance().getFrontCameraId()) mUsingFrontCamera = true;
533 int cameraId = CameraHolder.instance().getBackCameraId();
534 int orientation = Util.getDisplayOrientation(degrees, cameraId);
H A DCameraManager.java276 CameraProxy cameraOpen(int cameraId) { argument
283 mCamera = android.hardware.Camera.open(cameraId);
H A DPhotoModule.java2402 public void onCameraPickerClicked(int cameraId) { argument
2405 mPendingSwitchCameraId = cameraId;
2407 Log.v(TAG, "Start to copy texture. cameraId=" + cameraId);
H A DVideoModule.java2770 public void onCameraPickerClicked(int cameraId) { argument
2773 mPendingSwitchCameraId = cameraId;
/packages/apps/LegacyCamera/src/com/android/camera/
H A DCameraButtonIntentReceiver.java40 int cameraId = CameraSettings.readPreferredCameraId(pref);
41 if (holder.tryOpen(cameraId) == null) return;
H A DCameraHolder.java120 public synchronized android.hardware.Camera open(int cameraId) argument
123 if (mCameraDevice != null && mCameraId != cameraId) {
130 Log.v(TAG, "open camera " + cameraId);
131 mCameraDevice = android.hardware.Camera.open(cameraId);
132 mCameraId = cameraId;
157 public synchronized android.hardware.Camera tryOpen(int cameraId) { argument
159 return mUsers == 0 ? open(cameraId) : null;
H A DUtil.java257 public static android.hardware.Camera openCamera(Activity activity, int cameraId) argument
267 return CameraHolder.instance().open(cameraId);
338 public static int getDisplayOrientation(int degrees, int cameraId) { argument
342 Camera.getCameraInfo(cameraId, info);
353 public static int getCameraOrientation(int cameraId) { argument
355 Camera.getCameraInfo(cameraId, info);
493 int cameraId = -1;
502 cameraId = frontCameraId;
508 cameraId = backCameraId;
511 return cameraId;
618 setRotationParameter(Parameters parameters, int cameraId, int orientation) argument
[all...]
H A DCameraSettings.java71 int cameraId, CameraInfo[] cameraInfo) {
74 mCameraId = cameraId;
86 public static String getDefaultVideoQuality(int cameraId, argument
89 if (CamcorderProfile.hasProfile(cameraId, quality)) {
357 int cameraId) {
359 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId));
70 CameraSettings(Activity activity, Parameters parameters, int cameraId, CameraInfo[] cameraInfo) argument
356 writePreferredCameraId(SharedPreferences pref, int cameraId) argument
H A DComboPreferences.java53 public void setLocalId(Context context, int cameraId) { argument
54 String prefName = context.getPackageName() + "_preferences_" + cameraId;
H A DCamera.java2211 int cameraId = CameraSettings.readPreferredCameraId(mPreferences);
2212 if (mCameraId != cameraId) {
H A DVideoCamera.java2116 int cameraId = CameraSettings.readPreferredCameraId(mPreferences);
2117 if (mCameraId != cameraId) {
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
H A DVideoChatTestActivity.java283 int cameraId, android.hardware.Camera camera) {
286 android.hardware.Camera.getCameraInfo(cameraId, info);
282 getAutoDisplayOrientation(int displayOrientationDegrees, int cameraId, android.hardware.Camera camera) argument

Completed in 288 milliseconds