/packages/apps/Camera2/src/com/android/camera/ |
D | CameraHolder.java | 57 private int mCameraId = -1; // current camera id field in CameraHolder 202 if (mCameraDevice != null && mCameraId != cameraId) { in open() 205 mCameraId = -1; in open() 221 Log.e(TAG, "fail to connect Camera:" + mCameraId + ", aborting."); in open() 224 mCameraId = cameraId; in open() 228 Log.e(TAG, "fail to reconnect Camera:" + mCameraId + ", aborting."); in open() 250 collectState(mCameraId, mCameraDevice); in release() 277 mCameraId = -1; in strongRelease()
|
D | VideoModule.java | 106 private int mCameraId; field in VideoModule 209 mActivity, mCameraId, mHandler, in openCamera() 329 mCameraId = getPreferredCameraId(mPreferences); in init() 331 mPreferences.setLocalId(mActivity, mCameraId); in init() 396 int rotation = CameraUtil.getJpegRotation(mCameraId, mOrientation); in takeASnapshot() 417 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences() 557 videoQuality = CameraSettings.getSupportedHighestVideoQuality(mCameraId, in readVideoPreferences() 593 mProfile = CamcorderProfile.get(mCameraId, quality); in readVideoPreferences() 693 mCameraDisplayOrientation = CameraUtil.getDisplayOrientation(mDisplayRotation, mCameraId); in setDisplayOrientation() 925 CameraUtil.getDisplayOrientation(mDisplayRotation, mCameraId)); in setupMediaRecorderPreviewDisplay() [all …]
|
D | PhotoModule.java | 122 private int mCameraId; field in PhotoModule 365 mCameraId = getPreferredCameraId(mPreferences); in init() 373 mPreferences.setLocalId(mActivity, mCameraId); in init() 456 mCameraId = mPendingSwitchCameraId; in switchCamera() 458 setCameraId(mCameraId); in switchCamera() 467 mPreferences.setLocalId(mActivity, mCameraId); in switchCamera() 470 mActivity, mCameraId, mHandler, in switchCamera() 474 Log.e(TAG, "Failed to open camera:" + mCameraId + ", aborting."); in switchCamera() 479 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in switchCamera() 611 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in startFaceDetection() [all …]
|
D | CameraSettings.java | 80 private final int mCameraId; field in CameraSettings 86 mCameraId = cameraId; in CameraSettings() 180 filterUnsupportedOptions(group, videoQuality, getSupportedVideoQuality(mCameraId)); in initPreference() 228 boolean isFrontCamera = (frontCameraId == mCameraId); in initPreference()
|
/packages/apps/Camera/src/com/android/camera/ |
D | VideoModule.java | 127 private int mCameraId; field in VideoModule 249 mActivity.mCameraDevice = Util.openCamera(mActivity, mCameraId); in openCamera() 422 mCameraId = getPreferredCameraId(mPreferences); in init() 424 mPreferences.setLocalId(mActivity, mCameraId); in init() 498 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences() 693 String defaultQuality = CameraSettings.getDefaultVideoQuality(mCameraId, in readVideoPreferences() 727 CamcorderProfile profile = CamcorderProfile.get(mCameraId, quality); in readVideoPreferences() 744 mProfile = CamcorderProfile.get(mCameraId, quality); in readVideoPreferences() 865 mCameraDisplayOrientation = Util.getDisplayOrientation(0, mCameraId); in setDisplayOrientation() 868 mCameraDisplayOrientation = Util.getDisplayOrientation(mDisplayRotation, mCameraId); in setDisplayOrientation() [all …]
|
D | PhotoModule.java | 133 private int mCameraId; field in PhotoModule 337 mCameraDevice = Util.openCamera(mActivity, mCameraId); in run() 467 mCameraId = getPreferredCameraId(mPreferences); in init() 487 mPreferences.setLocalId(mActivity, mCameraId); in init() 758 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in startFaceDetection() 1134 mJpegRotation = Util.getJpegRotation(mCameraId, mOrientation); in capture() 1269 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences() 1681 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in initializeFocusManager() 1737 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in onConfigurationChanged() 1906 mDisplayOrientation = Util.getDisplayOrientation(mDisplayRotation, mCameraId); in setDisplayOrientation() [all …]
|
D | CameraHolder.java | 57 private int mCameraId = -1; // current camera id field in CameraHolder 201 if (mCameraDevice != null && mCameraId != cameraId) { in open() 204 mCameraId = -1; in open() 216 mCameraId = cameraId; in open() 256 collectState(mCameraId, mCameraDevice); in release() 277 mCameraId = -1; in release()
|
D | CameraSettings.java | 76 private final int mCameraId; field in CameraSettings 82 mCameraId = cameraId; in CameraSettings() 537 mCameraId, CamcorderProfile.QUALITY_HIGH); in getSupportedVideoQuality() 539 mCameraId, CamcorderProfile.QUALITY_LOW); in getSupportedVideoQuality() 551 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_1080P)) { in getFineResolutionQuality() 554 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_720P)) { in getFineResolutionQuality() 557 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_480P)) { in getFineResolutionQuality()
|
D | ActivityBase.java | 84 protected int mCameraId; field in ActivityBase 160 mCameraDevice = Util.openCamera(ActivityBase.this, mCameraId); in run()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | VideoCamera.java | 243 private int mCameraId; field in VideoCamera 360 mCameraId = CameraSettings.readPreferredCameraId(mPreferences); in onCreate() 365 mCameraId = intentCameraId; in onCreate() 368 mPreferences.setLocalId(this, mCameraId); in onCreate() 388 mCameraDevice = Util.openCamera(VideoCamera.this, mCameraId); in onCreate() 489 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences() 718 String defaultQuality = CameraSettings.getDefaultVideoQuality(mCameraId, in readVideoPreferences() 780 mProfile = CamcorderProfile.get(mCameraId, quality); in readVideoPreferences() 840 mCameraDevice = Util.openCamera(this, mCameraId); in doOnResume() 923 int orientation = Util.getDisplayOrientation(mDisplayRotation, mCameraId); in startPreview() [all …]
|
D | Camera.java | 269 private int mCameraId; field in Camera 385 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in initializeFirstTime() 532 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in startFaceDetection() 1050 Util.setRotationParameter(mParameters, mCameraId, mOrientation); in capture() 1088 mCameraId = CameraSettings.readPreferredCameraId(mPreferences); in getPreferredCameraId() 1093 mCameraId = intentCameraId; in getPreferredCameraId() 1100 mCameraDevice = Util.openCamera(Camera.this, mCameraId); 1144 mPreferences.setLocalId(this, mCameraId); in onCreate() 1241 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences() 1542 mCameraDevice = Util.openCamera(this, mCameraId); in doOnResume() [all …]
|
D | CameraHolder.java | 52 private int mCameraId = -1; // current camera id field in CameraHolder 123 if (mCameraDevice != null && mCameraId != cameraId) { in open() 126 mCameraId = -1; in open() 132 mCameraId = cameraId; in open() 191 mCameraId = -1; in releaseCamera()
|
D | CameraSettings.java | 68 private final int mCameraId; field in CameraSettings 74 mCameraId = cameraId; in CameraSettings() 458 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_1080P)) { in getSupportedVideoQuality() 461 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_720P)) { in getSupportedVideoQuality() 464 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_480P)) { in getSupportedVideoQuality()
|