Home
last modified time | relevance | path

Searched refs:mAspectRatio (Results 1 – 12 of 12) 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()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DFixedRatioImageView.java30 private float mAspectRatio; field in FixedRatioImageView
45 mAspectRatio = a.getFloat(R.styleable.FixedRatioImageView_aspect_ratio, in FixedRatioImageView()
57 mAspectRatio = aspectRatio; in setAspectRatio()
67 setMeasuredDimension((int) (height * mAspectRatio), height); in onMeasure()
70 setMeasuredDimension(width, (int) (width / mAspectRatio)); in onMeasure()
/packages/apps/Settings/src/com/android/settings/widget/
DAspectRatioFrameLayout.java36 float mAspectRatio = 1.0f; field in AspectRatioFrameLayout
51 mAspectRatio = array.getFloat( in AspectRatioFrameLayout()
58 mAspectRatio = aspectRadio; in setAspectRatio()
70 final float aspectRatioDiff = mAspectRatio - viewAspectRatio; in onMeasure()
76 width = (int) (height * mAspectRatio); in onMeasure()
DVideoPreference.java56 private float mAspectRatio = 1.0f; field in VideoPreference
129 layout.setAspectRatio(mAspectRatio); in onBindViewHolder()
274 mAspectRatio = mMediaPlayer.getVideoWidth() / (float) mMediaPlayer.getVideoHeight(); in updateAspectRatio()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DAspectRatioFrameLayout.java36 float mAspectRatio = 1.0f; field in AspectRatioFrameLayout
51 mAspectRatio = array.getFloat( in AspectRatioFrameLayout()
58 mAspectRatio = aspectRadio; in setAspectRatio()
70 final float aspectRatioDiff = mAspectRatio - viewAspectRatio; in onMeasure()
76 width = (int) (height * mAspectRatio); in onMeasure()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java61 private float mAspectRatio = Float.NaN; field in DvrPlayer
541 if (mAspectRatio != videoAspectRatio in setTvViewCallbacks()
545 mAspectRatio = videoAspectRatio; in setTvViewCallbacks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DVideoPreferenceTest.java88 assertThat(layout.mAspectRatio).isWithin(0.01f).of(VIDEO_WIDTH / (float) VIDEO_HEIGHT); in onBindViewHolder_hasCorrectRatio()