Home
last modified time | relevance | path

Searched refs:widthRatio (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/util/
DDisplayUtils.java82 final float widthRatio = (float) currentWidth / physicalWidth; in getPhysicalPixelDisplaySizeRatio() local
84 return Math.min(widthRatio, heightRatio); in getPhysicalPixelDisplaySizeRatio()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java272 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; in startPreview() local
275 transform.setScale(1, heightRatio/widthRatio); in startPreview()
277 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2); in startPreview()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DGhostedViewTransitionAnimatorController.kt305 val widthRatio = state.width.toFloat() / ghostedViewState.width in onTransitionAnimationProgress() constant
307 val scale = min(widthRatio, heightRatio) in onTransitionAnimationProgress()
DActivityTransitionAnimator.kt1114 val widthRatio = state.width.toFloat() / width in applyStateToWindow() constant
1116 val scale = maxOf(widthRatio, heightRatio) in applyStateToWindow()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandable.kt330 val widthRatio = in AnimatedContentInOverlay() constant
342 val scale = min(widthRatio, heightRatio) in AnimatedContentInOverlay()