Home
last modified time | relevance | path

Searched refs:heightMeasureSpec (Results 1 – 25 of 140) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DAspectRatioFrameLayoutTest.java47 int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(50, View.MeasureSpec.EXACTLY); in measure_squareAspectRatio_squeezeWidth() local
49 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_squeezeWidth()
60 int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in measure_squareAspectRatio_stretchWidth() local
62 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_stretchWidth()
73 int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in measure_squareAspectRatio_doNotStretch() local
75 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_doNotStretch()
88 int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in measure_rectangleAspectRatio_stretch() local
90 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_rectangleAspectRatio_stretch()
/packages/apps/Contacts/src/com/android/contacts/widget/
DFullHeightLinearLayout.java44 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
45 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
46 heightMeasureSpec = MeasureSpec.makeMeasureSpec( in onMeasure()
47 MeasureSpec.getSize(heightMeasureSpec), MeasureSpec.EXACTLY); in onMeasure()
49 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DPreferenceImageView.java46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
57 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
59 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure()
67 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DSoftwareCameraPreview.java87 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
88 widthMeasureSpec = mPreview.getWidthMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
89 heightMeasureSpec = mPreview.getHeightMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
90 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DHardwareCameraPreview.java93 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
94 widthMeasureSpec = mPreview.getWidthMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
95 heightMeasureSpec = mPreview.getHeightMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
96 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DSoftwareCameraPreview.java95 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
96 widthMeasureSpec = preview.getWidthMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
97 heightMeasureSpec = preview.getHeightMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
98 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DHardwareCameraPreview.java100 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
101 widthMeasureSpec = preview.getWidthMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
102 heightMeasureSpec = preview.getHeightMeasureSpec(widthMeasureSpec, heightMeasureSpec); in onMeasure()
103 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Gallery2/src/com/android/photos/views/
DSquareImageView.java39 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
41 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
46 height = Math.min(height, MeasureSpec.getSize(heightMeasureSpec)); in onMeasure()
50 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerCircleFrameLayout.java50 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
59 final int height = MeasureSpec.getSize(heightMeasureSpec) - paddingTop - paddingBottom; in onMeasure()
69 heightMeasureSpec = MeasureSpec.makeMeasureSpec(size + paddingTop + paddingBottom, in onMeasure()
72 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DMeasurableLinearLayout.java31 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
32 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
36 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
39 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Settings/src/com/android/settings/datausage/
DMeasurableLinearLayout.java31 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
32 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
36 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
39 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java597 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
599 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
601 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
641 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
653 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in measureVertical()
709 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical()
814 int heightSizeAndState = resolveSizeAndState(heightSize, heightMeasureSpec, 0); in measureVertical()
953 forceUniformWidth(count, heightMeasureSpec); in measureVertical()
957 private void forceUniformWidth(int count, int heightMeasureSpec) { in forceUniformWidth() argument
974 measureChildWithMargins(child, uniformMeasureSpec, 0, heightMeasureSpec, 0); in forceUniformWidth()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java597 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
599 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
601 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
641 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
653 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in measureVertical()
709 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical()
814 int heightSizeAndState = resolveSizeAndState(heightSize, heightMeasureSpec, 0); in measureVertical()
953 forceUniformWidth(count, heightMeasureSpec); in measureVertical()
957 private void forceUniformWidth(int count, int heightMeasureSpec) { in forceUniformWidth() argument
974 measureChildWithMargins(child, uniformMeasureSpec, 0, heightMeasureSpec, 0); in forceUniformWidth()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java438 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(trackHeight, MeasureSpec.EXACTLY); in layoutTrack() local
439 mTrackImageView.measure(widthMeasureSpec, heightMeasureSpec); in layoutTrack()
450 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(mThumbHeight, MeasureSpec.EXACTLY); in layoutThumb() local
451 mThumbImageView.measure(widthMeasureSpec, heightMeasureSpec); in layoutThumb()
462 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(mPreviewHeight, MeasureSpec.EXACTLY); in layoutPreview() local
463 mPreviewTextView.measure(widthMeasureSpec, heightMeasureSpec); in layoutPreview()
468 mPreviewTextView.measure(widthMeasureSpec, heightMeasureSpec); in layoutPreview()
DMessageBubbleBackground.java35 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
36 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
45 heightMeasureSpec); in onMeasure()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DExpandedGridView.java29 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
33 heightMeasureSpec = MeasureSpec.makeMeasureSpec(65536, MeasureSpec.AT_MOST); in onMeasure()
34 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java297 protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec) { in onMeasure() argument
299 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
305 mVideoView.measure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
307 mThumbnailImage.measure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
322 MeasureSpec.getSize(heightMeasureSpec) / (float) desiredHeight); in onMeasure()
DImeDetectFrameLayout.java32 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
34 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
43 ((ImeUtil.ImeStateHost) getContext()).onDisplayHeightChanged(heightMeasureSpec); in onMeasure()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceSquareTextureView.java41 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
42 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
44 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSquareTextureView.java41 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
42 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
44 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Settings/src/com/android/settings/display/
DMessageBubbleBackground.java35 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
36 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
45 heightMeasureSpec); in onMeasure()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DAutoSizingTextView.kt33 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
34 mTextSizeHelper!!.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
35 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
DAutoSizingTextClock.kt35 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
36 mTextSizeHelper!!.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
37 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DMessageBubbleBackground.java35 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
36 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
45 heightMeasureSpec); in onMeasure()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DConstraintViewPager.java45 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
58 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxChildHeight, MeasureSpec.EXACTLY); in onMeasure()
60 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()

123456