Home
last modified time | relevance | path

Searched refs:heightMeasureSpec (Results 1 – 25 of 127) 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
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/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/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()
DStackLayout.java33 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
38 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure()
45 resolveSize(height, heightMeasureSpec)); in onMeasure()
/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/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/apps/Messaging/src/com/android/messaging/ui/
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/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/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/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/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()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadTextView.java62 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
63 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
68 int height = resolveSize(textBounds.height(), heightMeasureSpec); in onMeasure()
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadTextView.java63 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
64 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
69 int height = resolveSize(mTextBounds.height(), heightMeasureSpec); in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java38 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
40 int parentHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
48 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DFixedRatioImageView.java62 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
63 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
66 int height = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDragLayer.java105 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
107 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
132 measureChildWithMargins(mWorkspace, widthMeasureSpec, 0, heightMeasureSpec, in onMeasure()
136 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure()

123456