Home
last modified time | relevance | path

Searched refs:mAspectRatio (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/widget/
DAspectRatioDialogLayout.java40 private Rational mAspectRatio; field in AspectRatioDialogLayout
51 mAspectRatio = defaultAspectRatio; in AspectRatioDialogLayout()
82 setAspectRatio(mAspectRatio); in updateSubviewReferences()
101 mListener.onConfirm(mAspectRatio); in updateSubviewReferences()
108 mAspectRatio = aspectRatio; in setAspectRatio()
110 if (mAspectRatio.equals(ResolutionUtil.ASPECT_RATIO_4x3)) { in setAspectRatio()
114 } else if (mAspectRatio.equals(ResolutionUtil.ASPECT_RATIO_16x9)) { in setAspectRatio()
/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java36 private double mAspectRatio; field in PreviewFrameLayout
51 if (mAspectRatio != ratio) { in setAspectRatio()
52 mAspectRatio = ratio; in setAspectRatio()
74 if (previewWidth > previewHeight * mAspectRatio) { in onMeasure()
75 previewWidth = (int) (previewHeight * mAspectRatio + .5); in onMeasure()
77 previewHeight = (int) (previewWidth / mAspectRatio + .5); in onMeasure()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java56 private float mAspectRatio = MATCH_SCREEN; field in TextureViewHelper
149 if (mAspectRatio != aspectRatio) { in setAspectRatio()
150 Log.v(TAG, "aspect ratio changed from: " + mAspectRatio); in setAspectRatio()
151 mAspectRatio = aspectRatio; in setAspectRatio()
157 mCaptureLayoutHelper.onPreviewAspectRatioChanged(mAspectRatio); in onAspectRatioChanged()
160 listener.onPreviewAspectRatioChanged(mAspectRatio); in onAspectRatioChanged()
190 if (aspectRatio != mAspectRatio) { in updateTransformFullScreen()
212 if (aspectRatio != mAspectRatio) {
333 if (mAspectRatio == MATCH_SCREEN || mAspectRatio < 0 || mWidth == 0 || mHeight == 0) {
DVideoUI.java59 private float mAspectRatio = UNSET; field in VideoUI
156 if (aspectRatio != mAspectRatio) { in setAspectRatio()
157 mAspectRatio = aspectRatio; in setAspectRatio()
158 mController.updatePreviewAspectRatio(mAspectRatio); in setAspectRatio()
298 mAspectRatio = 0.0f; in onPause()
DPhotoUI.java69 private float mAspectRatio = UNSET; field in PhotoUI
267 if (mAspectRatio != aspectRatio) { in updatePreviewAspectRatio()
268 mAspectRatio = aspectRatio; in updatePreviewAspectRatio()
270 mController.updatePreviewAspectRatio(mAspectRatio); in updatePreviewAspectRatio()
401 mAspectRatio = 0.0f; in onPause()
DCaptureLayoutHelper.java51 private float mAspectRatio = TextureViewHelper.MATCH_SCREEN; field in CaptureLayoutHelper
84 if (mAspectRatio == aspectRatio) { in onPreviewAspectRatioChanged()
87 mAspectRatio = aspectRatio; in onPreviewAspectRatioChanged()
108 mPositionConfiguration = getPositionConfiguration(mWindowWidth, mWindowHeight, mAspectRatio, in updatePositionConfiguration()