/packages/apps/Camera2/src/com/android/camera/widget/ |
D | AspectRatioDialogLayout.java | 40 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/ |
D | PreviewFrameLayout.java | 36 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/ |
D | TextureViewHelper.java | 57 private float mAspectRatio = MATCH_SCREEN; field in TextureViewHelper 150 if (mAspectRatio != aspectRatio) { in setAspectRatio() 151 Log.v(TAG, "aspect ratio changed from: " + mAspectRatio); in setAspectRatio() 152 mAspectRatio = aspectRatio; in setAspectRatio() 158 mCaptureLayoutHelper.onPreviewAspectRatioChanged(mAspectRatio); in onAspectRatioChanged() 161 listener.onPreviewAspectRatioChanged(mAspectRatio); in onAspectRatioChanged() 191 if (aspectRatio != mAspectRatio) { in updateTransformFullScreen() 213 if (aspectRatio != mAspectRatio) { 334 if (mAspectRatio == MATCH_SCREEN || mAspectRatio < 0 || mWidth == 0 || mHeight == 0) {
|
D | VideoUI.java | 59 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()
|
D | PhotoUI.java | 69 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()
|
D | CaptureLayoutHelper.java | 51 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/ |
D | FixedRatioImageView.java | 30 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/ |
D | AspectRatioFrameLayout.java | 36 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()
|
D | VideoPreference.java | 49 private float mAspectRatio = 1.0f; field in VideoPreference 122 layout.setAspectRatio(mAspectRatio); in onBindViewHolder() 202 mAspectRatio = mAnimationController.getVideoWidth() in updateAspectRatio()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlayer.java | 61 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/ |
D | VideoPreferenceTest.java | 93 assertThat(layout.mAspectRatio).isWithin(0.01f).of(VIDEO_WIDTH / (float) VIDEO_HEIGHT); in onBindViewHolder_hasCorrectRatio()
|