Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DScrollViewScenario.java74 protected ViewFactoryBase(float heightRatio) { in ViewFactoryBase() argument
75 mHeightRatio = heightRatio; in ViewFactoryBase()
100 public Params addTextView(final String text, float heightRatio) { in addTextView() argument
101 mViewFactories.add(new ViewFactoryBase(heightRatio) { in addTextView()
117 public Params addTextViews(int numViews, String textPrefix, float heightRatio) { in addTextViews() argument
119 addTextView(textPrefix + i, heightRatio); in addTextViews()
129 public Params addButton(final String text, float heightRatio) { in addButton() argument
130 mViewFactories.add(new ViewFactoryBase(heightRatio) { in addButton()
146 public Params addButtons(int numButtons, String textPrefix, float heightRatio) { in addButtons() argument
148 addButton(textPrefix + i, heightRatio); in addButtons()
[all …]
/frameworks/base/core/java/android/util/
DDisplayUtils.java83 final float heightRatio = (float) currentHeight / physicalHeight; in getPhysicalPixelDisplaySizeRatio() local
84 return Math.min(widthRatio, heightRatio); in getPhysicalPixelDisplaySizeRatio()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java273 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; 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.kt306 val heightRatio = state.height.toFloat() / ghostedViewState.height in onTransitionAnimationProgress() constant
307 val scale = min(widthRatio, heightRatio) in onTransitionAnimationProgress()
DActivityTransitionAnimator.kt1115 val heightRatio = state.height.toFloat() / height in applyStateToWindow() constant
1116 val scale = maxOf(widthRatio, heightRatio) in applyStateToWindow()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandable.kt336 val heightRatio = in AnimatedContentInOverlay() constant
342 val scale = min(widthRatio, heightRatio) in AnimatedContentInOverlay()