Home
last modified time | relevance | path

Searched refs:measureSpec (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java50 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in testRequestLayout() local
53 listView.measure(measureSpec, measureSpec); in testRequestLayout()
60 listView.measure(measureSpec, measureSpec); in testRequestLayout()
82 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in testNoSelectableItems() local
85 listView.measure(measureSpec, measureSpec); in testNoSelectableItems()
91 listView.measure(measureSpec, measureSpec); in testNoSelectableItems()
DLabelView.java130 private int measureWidth(int measureSpec) { in measureWidth() argument
132 int specMode = MeasureSpec.getMode(measureSpec); in measureWidth()
133 int specSize = MeasureSpec.getSize(measureSpec); in measureWidth()
156 private int measureHeight(int measureSpec) { in measureHeight() argument
158 int specMode = MeasureSpec.getMode(measureSpec); in measureHeight()
159 int specSize = MeasureSpec.getSize(measureSpec); in measureHeight()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIntrinsicSizeFrameLayout.java73 private int getIntrinsicMeasureSpec(int measureSpec, int intrinsicSize) { in getIntrinsicMeasureSpec() argument
76 return measureSpec; in getIntrinsicMeasureSpec()
78 final int mode = MeasureSpec.getMode(measureSpec); in getIntrinsicMeasureSpec()
79 final int size = MeasureSpec.getSize(measureSpec); in getIntrinsicMeasureSpec()
90 return measureSpec; in getIntrinsicMeasureSpec()
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java111 private int measureWidth(int measureSpec) { in measureWidth() argument
112 int specMode = MeasureSpec.getMode(measureSpec); in measureWidth()
113 int specSize = MeasureSpec.getSize(measureSpec); in measureWidth()
126 private int measureHeight(int measureSpec) { in measureHeight() argument
127 int specMode = MeasureSpec.getMode(measureSpec); in measureHeight()
128 int specSize = MeasureSpec.getSize(measureSpec); in measureHeight()
/frameworks/support/core-ui/java/android/support/v4/widget/
DSpace.java59 private static int getDefaultSize2(int size, int measureSpec) { in getDefaultSize2() argument
61 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize2()
62 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize2()
/frameworks/base/core/java/com/android/internal/widget/
DDrawingSpace.java51 private static int getDefaultSizeNonGreedy(int size, int measureSpec) { in getDefaultSizeNonGreedy() argument
53 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSizeNonGreedy()
54 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSizeNonGreedy()
DLockPatternView.java626 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
629 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
630 switch (MeasureSpec.getMode(measureSpec)) { in resolveMeasured()
/frameworks/base/core/java/android/widget/
DSpace.java75 private static int getDefaultSize2(int size, int measureSpec) { in getDefaultSize2() argument
77 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize2()
78 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize2()
DAdapterViewAnimator.java584 int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); in addChild() local
585 child.measure(measureSpec, measureSpec); in addChild()
DNumberPicker.java1645 private int makeMeasureSpec(int measureSpec, int maxSize) { in makeMeasureSpec() argument
1647 return measureSpec; in makeMeasureSpec()
1649 final int size = MeasureSpec.getSize(measureSpec); in makeMeasureSpec()
1650 final int mode = MeasureSpec.getMode(measureSpec); in makeMeasureSpec()
1653 return measureSpec; in makeMeasureSpec()
1674 int minSize, int measuredSize, int measureSpec) { in resolveSizeAndStateRespectingMinSize() argument
1677 return resolveSizeAndState(desiredWidth, measureSpec, 0); in resolveSizeAndStateRespectingMinSize()
DImageView.java1122 int measureSpec) {
1124 final int specMode = MeasureSpec.getMode(measureSpec);
1125 final int specSize = MeasureSpec.getSize(measureSpec);
DGridLayout.java1033 static int adjust(int measureSpec, int delta) { in adjust() argument
1035 MeasureSpec.getSize(measureSpec + delta), MeasureSpec.getMode(measureSpec)); in adjust()
1846 public int getMeasure(int measureSpec) {
1847 int mode = MeasureSpec.getMode(measureSpec);
1848 int size = MeasureSpec.getSize(measureSpec);
DVideoView.java208 public int resolveAdjustedSize(int desiredSize, int measureSpec) { in resolveAdjustedSize() argument
209 return getDefaultSize(desiredSize, measureSpec); in resolveAdjustedSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DResizingSpace.java78 private static int getDefaultSize2(int size, int measureSpec) { in getDefaultSize2() argument
80 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize2()
81 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize2()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DScaleFrameLayout.java176 private static int getScaledMeasureSpec(int measureSpec, float scale) { in getScaledMeasureSpec() argument
177 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec( in getScaledMeasureSpec()
178 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f), in getScaledMeasureSpec()
179 MeasureSpec.getMode(measureSpec)); in getScaledMeasureSpec()
/frameworks/support/compat/honeycomb/android/support/v4/view/
DViewCompatHC.java42 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
43 return View.resolveSizeAndState(size, measureSpec, childMeasuredState); in resolveSizeAndState()
/frameworks/support/design/src/android/support/design/widget/
DFloatingActionButton.java502 private static int resolveAdjustedSize(int desiredSize, int measureSpec) {
504 int specMode = MeasureSpec.getMode(measureSpec);
505 int specSize = MeasureSpec.getSize(measureSpec);
/frameworks/support/compat/java/android/support/v4/view/
DViewCompat.java400 int resolveSizeAndState(int size, int measureSpec, int childMeasuredState); in resolveSizeAndState() argument
620 public int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
621 return View.resolveSize(size, measureSpec); in resolveSizeAndState()
1185 public int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
1186 return ViewCompatHC.resolveSizeAndState(size, measureSpec, childMeasuredState); in resolveSizeAndState()
2435 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
2436 return IMPL.resolveSizeAndState(size, measureSpec, childMeasuredState); in resolveSizeAndState()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java932 static int adjust(int measureSpec, int delta) { in adjust() argument
934 MeasureSpec.getSize(measureSpec + delta), MeasureSpec.getMode(measureSpec)); in adjust()
1740 public int getMeasure(int measureSpec) {
1741 int mode = MeasureSpec.getMode(measureSpec);
1742 int size = MeasureSpec.getSize(measureSpec);
/frameworks/base/core/java/android/view/
DView.java19998 public static int resolveSize(int size, int measureSpec) { in resolveSize() argument
19999 return resolveSizeAndState(size, measureSpec, 0) & MEASURED_SIZE_MASK; in resolveSize()
20018 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
20019 final int specMode = MeasureSpec.getMode(measureSpec); in resolveSizeAndState()
20020 final int specSize = MeasureSpec.getSize(measureSpec); in resolveSizeAndState()
20049 public static int getDefaultSize(int size, int measureSpec) { in getDefaultSize() argument
20051 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize()
20052 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize()
22289 public static int getMode(int measureSpec) { in getMode() argument
22291 return (measureSpec & MODE_MASK); in getMode()
[all …]
DViewRootImpl.java2491 int measureSpec; in getRootMeasureSpec() local
2496 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY); in getRootMeasureSpec()
2500 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST); in getRootMeasureSpec()
2504 measureSpec = MeasureSpec.makeMeasureSpec(rootDimension, MeasureSpec.EXACTLY); in getRootMeasureSpec()
2507 return measureSpec; in getRootMeasureSpec()