/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | AspectRatioFrameLayoutTest.java | 46 int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in measure_squareAspectRatio_squeezeWidth() local 49 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_squeezeWidth() 59 int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(50, View.MeasureSpec.EXACTLY); in measure_squareAspectRatio_stretchWidth() local 62 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_stretchWidth() 72 int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in measure_squareAspectRatio_doNotStretch() local 75 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_doNotStretch() 87 int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in measure_rectangleAspectRatio_stretch() local 90 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_rectangleAspectRatio_stretch()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | CenteredLinearLayout.java | 38 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 39 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 45 int measureMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 46 widthMeasureSpec = MeasureSpec.makeMeasureSpec(mMaxWidth, measureMode); in onMeasure() 48 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/ |
D | PreferenceImageView.java | 46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 47 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 53 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure() 67 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | ButtonBarLayout.java | 53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 54 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 71 if (!isStacked() && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 77 initialWidthMeasureSpec = widthMeasureSpec; in onMeasure() 94 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | BottomLabelLayout.java | 47 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 48 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 56 if (!isStacked && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 62 initialWidthMeasureSpec = widthMeasureSpec; in onMeasure() 78 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | MatchParentShrinkingLinearLayout.java | 597 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 652 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical() 709 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical() 844 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical() 872 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical() 949 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in measureVertical() 992 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | BottomLabelLayout.java | 47 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 48 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 56 if (!isStacked && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 62 initialWidthMeasureSpec = widthMeasureSpec; in onMeasure() 78 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | MatchParentShrinkingLinearLayout.java | 597 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 652 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical() 709 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical() 844 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical() 872 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical() 949 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in measureVertical() 992 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | SoftwareCameraPreview.java | 87 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()
|
D | HardwareCameraPreview.java | 93 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()
|
D | CameraPreview.java | 69 public int getWidthMeasureSpec(final int widthMeasureSpec, final int heightMeasureSpec) { in getWidthMeasureSpec() argument 71 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getWidthMeasureSpec() 74 return widthMeasureSpec; in getWidthMeasureSpec() 78 public int getHeightMeasureSpec(final int widthMeasureSpec, final int heightMeasureSpec) { in getHeightMeasureSpec() argument 81 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getHeightMeasureSpec()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | EllipsizeLayout.kt | 71 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 73 MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 80 val parentWidth = MeasureSpec.getSize(widthMeasureSpec) in onMeasure() 82 MeasureSpec.makeMeasureSpec(MeasureSpec.getSize(widthMeasureSpec), in onMeasure() 133 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
|
D | EllipsizeLayout.java | 62 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 64 && (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY)) { in onMeasure() 71 final int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 73 makeMeasureSpec(MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.UNSPECIFIED); in onMeasure() 122 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | SoftwareCameraPreview.java | 95 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()
|
D | HardwareCameraPreview.java | 100 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()
|
D | CameraPreview.java | 92 public int getWidthMeasureSpec(final int widthMeasureSpec, final int heightMeasureSpec) { in getWidthMeasureSpec() argument 94 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getWidthMeasureSpec() 97 return widthMeasureSpec; in getWidthMeasureSpec() 101 public int getHeightMeasureSpec(final int widthMeasureSpec, final int heightMeasureSpec) { in getHeightMeasureSpec() argument 104 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getHeightMeasureSpec()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | SquareImageView.java | 39 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 40 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 43 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 50 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | HeaderGridView.java | 79 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 80 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 197 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 201 widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth, in onMeasure() 202 MeasureSpec.getMode(widthMeasureSpec)); in onMeasure() 203 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | TimerCircleFrameLayout.java | 50 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 58 final int width = MeasureSpec.getSize(widthMeasureSpec) - paddingLeft - paddingRight; in onMeasure() 67 widthMeasureSpec = MeasureSpec.makeMeasureSpec(size + paddingLeft + paddingRight, in onMeasure() 72 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | MeasurableLinearLayout.java | 31 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/ |
D | MeasurableLinearLayout.java | 31 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/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationFastScroller.java | 437 int widthMeasureSpec = MeasureSpec.makeMeasureSpec(mTrackWidth, MeasureSpec.EXACTLY); in layoutTrack() local 439 mTrackImageView.measure(widthMeasureSpec, heightMeasureSpec); in layoutTrack() 449 int widthMeasureSpec = MeasureSpec.makeMeasureSpec(mTrackWidth, MeasureSpec.EXACTLY); in layoutThumb() local 451 mThumbImageView.measure(widthMeasureSpec, heightMeasureSpec); in layoutThumb() 461 int widthMeasureSpec = MeasureSpec.makeMeasureSpec(mContainer.width(), MeasureSpec.AT_MOST); in layoutPreview() local 463 mPreviewTextView.measure(widthMeasureSpec, heightMeasureSpec); in layoutPreview() 467 widthMeasureSpec = MeasureSpec.makeMeasureSpec(mPreviewMinWidth, MeasureSpec.EXACTLY); in layoutPreview() 468 mPreviewTextView.measure(widthMeasureSpec, heightMeasureSpec); in layoutPreview()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/widget/ |
D | ConstraintViewPager.java | 52 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 53 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 61 view.measure(widthMeasureSpec, in onMeasure() 86 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), maxChildHeight); in onMeasure()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | OneRowGridView.java | 39 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 43 widthMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY); in onMeasure() 45 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | VideoThumbnailView.java | 297 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() 321 MeasureSpec.getSize(widthMeasureSpec) / (float) desiredWidth, in onMeasure()
|