/packages/apps/Camera/src/com/android/camera/ |
H A D | CameraButtonIntentReceiver.java | 40 int cameraId = CameraSettings.readPreferredCameraId(pref); 41 if (holder.tryOpen(cameraId) == null) return;
|
H A D | CameraHolder.java | 191 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 D | CameraPreference.java | 38 public void onCameraPickerClicked(int cameraId); argument
|
H A D | CameraSettings.java | 76 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 D | Util.java | 310 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 D | ComboPreferences.java | 53 public void setLocalId(Context context, int cameraId) { argument 54 String prefName = context.getPackageName() + "_preferences_" + cameraId;
|
H A D | PhotoController.java | 117 protected void setCameraId(int cameraId) { argument 119 pref.setValue("" + cameraId);
|
H A D | PieController.java | 71 protected void setCameraId(int cameraId) { argument 73 pref.setValue("" + cameraId);
|
H A D | VideoController.java | 100 protected void setCameraId(int cameraId) { argument 102 pref.setValue("" + cameraId);
|
H A D | PanoramaModule.java | 344 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 D | CameraManager.java | 276 CameraProxy cameraOpen(int cameraId) { argument 283 mCamera = android.hardware.Camera.open(cameraId);
|
H A D | PhotoModule.java | 2402 public void onCameraPickerClicked(int cameraId) { argument 2405 mPendingSwitchCameraId = cameraId; 2407 Log.v(TAG, "Start to copy texture. cameraId=" + cameraId);
|
H A D | VideoModule.java | 2770 public void onCameraPickerClicked(int cameraId) { argument 2773 mPendingSwitchCameraId = cameraId;
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | CameraButtonIntentReceiver.java | 40 int cameraId = CameraSettings.readPreferredCameraId(pref); 41 if (holder.tryOpen(cameraId) == null) return;
|
H A D | CameraHolder.java | 120 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 D | Util.java | 257 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 D | CameraSettings.java | 71 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 D | ComboPreferences.java | 53 public void setLocalId(Context context, int cameraId) { argument 54 String prefName = context.getPackageName() + "_preferences_" + cameraId;
|
H A D | Camera.java | 2211 int cameraId = CameraSettings.readPreferredCameraId(mPreferences); 2212 if (mCameraId != cameraId) {
|
H A D | VideoCamera.java | 2116 int cameraId = CameraSettings.readPreferredCameraId(mPreferences); 2117 if (mCameraId != cameraId) {
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | VideoChatTestActivity.java | 283 int cameraId, android.hardware.Camera camera) { 286 android.hardware.Camera.getCameraInfo(cameraId, info); 282 getAutoDisplayOrientation(int displayOrientationDegrees, int cameraId, android.hardware.Camera camera) argument
|