Home
last modified time | relevance | path

Searched refs:measureSpec (Results 1 – 19 of 19) 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.java61 private static int getDefaultSize2(int size, int measureSpec) { in getDefaultSize2() argument
63 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize2()
64 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize2()
/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.java1663 private int makeMeasureSpec(int measureSpec, int maxSize) { in makeMeasureSpec() argument
1665 return measureSpec; in makeMeasureSpec()
1667 final int size = MeasureSpec.getSize(measureSpec); in makeMeasureSpec()
1668 final int mode = MeasureSpec.getMode(measureSpec); in makeMeasureSpec()
1671 return measureSpec; in makeMeasureSpec()
1692 int minSize, int measuredSize, int measureSpec) { in resolveSizeAndStateRespectingMinSize() argument
1695 return resolveSizeAndState(desiredWidth, measureSpec, 0); in resolveSizeAndStateRespectingMinSize()
DImageView.java1181 int measureSpec) {
1183 final int specMode = MeasureSpec.getMode(measureSpec);
1184 final int specSize = MeasureSpec.getSize(measureSpec);
DGridLayout.java1042 static int adjust(int measureSpec, int delta) { in adjust() argument
1044 MeasureSpec.getSize(measureSpec + delta), MeasureSpec.getMode(measureSpec)); in adjust()
1855 public int getMeasure(int measureSpec) {
1856 int mode = MeasureSpec.getMode(measureSpec);
1857 int size = MeasureSpec.getSize(measureSpec);
DVideoView.java238 public int resolveAdjustedSize(int desiredSize, int measureSpec) { in resolveAdjustedSize() argument
239 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.java180 private static int getScaledMeasureSpec(int measureSpec, float scale) { in getScaledMeasureSpec() argument
181 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec( in getScaledMeasureSpec()
182 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f), in getScaledMeasureSpec()
183 MeasureSpec.getMode(measureSpec)); in getScaledMeasureSpec()
/frameworks/support/design/src/android/support/design/widget/
DFloatingActionButton.java506 private static int resolveAdjustedSize(int desiredSize, int measureSpec) {
508 int specMode = MeasureSpec.getMode(measureSpec);
509 int specSize = MeasureSpec.getSize(measureSpec);
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java938 static int adjust(int measureSpec, int delta) { in adjust() argument
940 MeasureSpec.getSize(measureSpec + delta), MeasureSpec.getMode(measureSpec)); in adjust()
1746 public int getMeasure(int measureSpec) {
1747 int mode = MeasureSpec.getMode(measureSpec);
1748 int size = MeasureSpec.getSize(measureSpec);
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java640 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
643 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
644 switch (MeasureSpec.getMode(measureSpec)) { in resolveMeasured()
/frameworks/base/core/java/android/view/
DView.java22137 public static int resolveSize(int size, int measureSpec) {
22138 return resolveSizeAndState(size, measureSpec, 0) & MEASURED_SIZE_MASK;
22157 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) {
22158 final int specMode = MeasureSpec.getMode(measureSpec);
22159 final int specSize = MeasureSpec.getSize(measureSpec);
22188 public static int getDefaultSize(int size, int measureSpec) {
22190 int specMode = MeasureSpec.getMode(measureSpec);
22191 int specSize = MeasureSpec.getSize(measureSpec);
24594 public static int getMode(int measureSpec) {
24596 return (measureSpec & MODE_MASK);
[all …]
DViewRootImpl.java2634 int measureSpec; in getRootMeasureSpec() local
2639 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY); in getRootMeasureSpec()
2643 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST); in getRootMeasureSpec()
2647 measureSpec = MeasureSpec.makeMeasureSpec(rootDimension, MeasureSpec.EXACTLY); in getRootMeasureSpec()
2650 return measureSpec; in getRootMeasureSpec()
/frameworks/support/compat/java/android/support/v4/view/
DViewCompat.java2228 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
2229 return View.resolveSizeAndState(size, measureSpec, childMeasuredState); in resolveSizeAndState()