/frameworks/base/core/java/com/android/internal/widget/ |
D | WatchListDecorLayout.java | 112 private void applyMeasureToChild(View child, int widthMeasureSpec, int heightMeasureSpec) { in applyMeasureToChild() argument 137 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in applyMeasureToChild() 146 private int measureAndGetHeight(View child, int widthMeasureSpec, int heightMeasureSpec) { in measureAndGetHeight() argument 149 applyMeasureToChild(mBottomPanel, widthMeasureSpec, heightMeasureSpec); in measureAndGetHeight() 152 applyMeasureToChild(mBottomPanel, widthMeasureSpec, heightMeasureSpec); in measureAndGetHeight() 159 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 164 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY; in onMeasure() 174 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure() 206 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure() 216 measureAndGetHeight(mTopPanel, widthMeasureSpec, heightMeasureSpec)); in onMeasure() [all …]
|
D | PreferenceImageView.java | 48 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 59 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 61 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 65 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure() 69 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | AlertDialogLayout.java | 70 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 71 if (!tryOnMeasure(widthMeasureSpec, heightMeasureSpec)) { in onMeasure() 73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 77 private boolean tryOnMeasure(int widthMeasureSpec, int heightMeasureSpec) { in tryOnMeasure() argument 111 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in tryOnMeasure() 112 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in tryOnMeasure() 207 final int heightSizeAndState = resolveSizeAndState(usedHeight, heightMeasureSpec, 0); in tryOnMeasure() 213 forceUniformWidth(count, heightMeasureSpec); in tryOnMeasure() 225 private void forceUniformWidth(int count, int heightMeasureSpec) { in forceUniformWidth() argument 241 measureChildWithMargins(child, uniformMeasureSpec, 0, heightMeasureSpec, 0); in forceUniformWidth()
|
D | DialogViewAnimator.java | 42 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 45 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY; in onMeasure() 64 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure() 103 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure() 131 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in onMeasure()
|
D | DialogTitle.java | 51 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 52 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 74 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | WeightedLinearLayout.java | 57 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 64 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 88 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | ImageFloatingTextView.java | 120 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 121 int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mPaddingTop - mPaddingBottom; in onMeasure() 128 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 144 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | ActionBarContainer.java | 285 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 287 MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST && mHeight >= 0) { in onMeasure() 288 heightMeasureSpec = MeasureSpec.makeMeasureSpec( in onMeasure() 289 Math.min(mHeight, MeasureSpec.getSize(heightMeasureSpec)), MeasureSpec.AT_MOST); in onMeasure() 291 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 306 final int mode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 308 MeasureSpec.getSize(heightMeasureSpec) : Integer.MAX_VALUE; in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSHeaderInfoLayout.kt | 74 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 78 heightMeasureSpec) in onMeasure() 94 heightMeasureSpec) in onMeasure() 100 heightMeasureSpec) in onMeasure() 105 heightMeasureSpec) in onMeasure() 109 heightMeasureSpec) in onMeasure()
|
D | AutoSizingList.java | 64 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 65 int requestedHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | TileLayout.java | 101 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 108 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 139 public boolean updateMaxRows(int heightMeasureSpec, int tilesCount) { in updateMaxRows() argument 140 final int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mCellMarginTop in updateMaxRows()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | FlowLayout.java | 36 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 40 MeasureSpec.getSize(heightMeasureSpec) - getPaddingTop() - getPaddingBottom(); in onMeasure() 48 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure() 72 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED) { in onMeasure() 74 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GradientsActivity.java | 105 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 106 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 130 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 131 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 155 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 156 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 179 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 180 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
D | ErrorCatcher.java | 53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 58 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure() 61 resolveSize(child.getMeasuredHeight(), heightMeasureSpec)); in onMeasure() local 66 resolveSize(0, heightMeasureSpec)); in onMeasure()
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | FixedAspectSurfaceView.java | 86 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 91 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 144 height = View.resolveSizeAndState(height, heightMeasureSpec, 0); in onMeasure()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | FixedAspectSurfaceView.java | 86 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 91 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 144 height = View.resolveSizeAndState(height, heightMeasureSpec, 0); in onMeasure()
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerViewPager.java | 53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 61 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY; in onMeasure() 70 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure() 100 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure() 127 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in onMeasure()
|
D | TableLayout.java | 435 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 437 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure() 455 int heightMeasureSpec, int totalHeight) { in measureChildBeforeLayout() argument 463 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout() 470 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument 471 findLargestCells(widthMeasureSpec, heightMeasureSpec); in measureVertical() 474 super.measureVertical(widthMeasureSpec, heightMeasureSpec); in measureVertical() 483 private void findLargestCells(int widthMeasureSpec, int heightMeasureSpec) { in findLargestCells() argument 506 final int[] widths = row.getColumnsWidths(widthMeasureSpec, heightMeasureSpec); in findLargestCells()
|
D | TableRow.java | 112 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 114 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure() 193 int heightMeasureSpec, int totalHeight) { in measureChildBeforeLayout() argument 219 int childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in measureChildBeforeLayout() 248 totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout() 288 int[] getColumnsWidths(int widthMeasureSpec, int heightMeasureSpec) { in getColumnsWidths() argument 308 MeasureSpec.getSize(heightMeasureSpec), in getColumnsWidths()
|
D | TabWidget.java | 158 int heightMeasureSpec, int totalHeight) { in measureChildBeforeLayout() argument 162 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mImposedTabsHeight, in measureChildBeforeLayout() 167 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout() 171 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument 173 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal() 182 super.measureHorizontal(unspecifiedWidth, heightMeasureSpec); in measureHorizontal() 216 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ImageFloatingTextViewTest.java | 119 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(500, MeasureSpec.AT_MOST); in parametrizedTest() local 125 mTextView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest() 126 mView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutKeysLayout.java | 45 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 48 int height = MeasureSpec.getSize(heightMeasureSpec) - getPaddingTop() - getPaddingBottom(); in onMeasure() 54 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure() 79 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED) { in onMeasure() 81 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | ButtonBarLayout.java | 46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 63 super.onMeasure(initialWidthMeasureSpec, heightMeasureSpec); in onMeasure() 73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | ZenRadioLayout.java | 39 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 40 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 66 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PrintContentView.java | 223 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 226 measureChild(mStaticContent, widthMeasureSpec, heightMeasureSpec); in onMeasure() 229 measureChild(mSummaryContent, widthMeasureSpec, heightMeasureSpec); in onMeasure() 232 measureChild(mDynamicContent, widthMeasureSpec, heightMeasureSpec); in onMeasure() 234 measureChild(mPrintButton, widthMeasureSpec, heightMeasureSpec); in onMeasure() 245 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 269 resolveSize(heightSize, heightMeasureSpec)); in onMeasure()
|