Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java48 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in testRequestLayout() local
51 listView.measure(measureSpec, measureSpec); in testRequestLayout()
58 listView.measure(measureSpec, measureSpec); in testRequestLayout()
80 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); in testNoSelectableItems() local
83 listView.measure(measureSpec, measureSpec); in testNoSelectableItems()
89 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/support/v7/gridlayout/src/android/support/v7/widget/
DViewGroup.java55 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { in resolveSizeAndState() argument
57 return View.resolveSizeAndState(size, measureSpec, childMeasuredState); in resolveSizeAndState()
60 int specMode = MeasureSpec.getMode(measureSpec); in resolveSizeAndState()
61 int specSize = MeasureSpec.getSize(measureSpec); in resolveSizeAndState()
DSpace.java69 private static int getDefaultSize2(int size, int measureSpec) { in getDefaultSize2() argument
71 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize2()
72 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize2()
DGridLayout.java1620 public int getMeasure(int measureSpec) {
1621 int mode = MeasureSpec.getMode(measureSpec);
1622 int size = MeasureSpec.getSize(measureSpec);
/frameworks/base/core/java/android/widget/
DSpace.java69 private static int getDefaultSize2(int size, int measureSpec) { in getDefaultSize2() argument
71 int specMode = MeasureSpec.getMode(measureSpec); in getDefaultSize2()
72 int specSize = MeasureSpec.getSize(measureSpec); in getDefaultSize2()
DNumberPicker.java1515 private int makeMeasureSpec(int measureSpec, int maxSize) { in makeMeasureSpec() argument
1517 return measureSpec; in makeMeasureSpec()
1519 final int size = MeasureSpec.getSize(measureSpec); in makeMeasureSpec()
1520 final int mode = MeasureSpec.getMode(measureSpec); in makeMeasureSpec()
1523 return measureSpec; in makeMeasureSpec()
1544 int minSize, int measuredSize, int measureSpec) { in resolveSizeAndStateRespectingMinSize() argument
1547 return resolveSizeAndState(desiredWidth, measureSpec, 0); in resolveSizeAndStateRespectingMinSize()
DAdapterViewAnimator.java582 int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); in addChild() local
583 child.measure(measureSpec, measureSpec); in addChild()
DImageView.java867 int measureSpec) { in resolveAdjustedSize() argument
869 int specMode = MeasureSpec.getMode(measureSpec); in resolveAdjustedSize()
870 int specSize = MeasureSpec.getSize(measureSpec); in resolveAdjustedSize()
DVideoView.java185 public int resolveAdjustedSize(int desiredSize, int measureSpec) { in resolveAdjustedSize() argument
186 return getDefaultSize(desiredSize, measureSpec); in resolveAdjustedSize()
DGridLayout.java984 static int adjust(int measureSpec, int delta) { in adjust() argument
986 MeasureSpec.getSize(measureSpec + delta), MeasureSpec.getMode(measureSpec)); in adjust()
1684 public int getMeasure(int measureSpec) {
1685 int mode = MeasureSpec.getMode(measureSpec);
1686 int size = MeasureSpec.getSize(measureSpec);
/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/base/core/java/com/android/internal/widget/
DFaceUnlockView.java36 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
39 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
40 switch (MeasureSpec.getMode(measureSpec)) { in resolveMeasured()
DSizeAdaptiveLayout.java239 int measureSpec = View.MeasureSpec.makeMeasureSpec(bottom - top, in onLayout() local
241 mActiveChild = selectActiveChild(measureSpec); in onLayout()
DLockPatternView.java456 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
459 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
460 switch (MeasureSpec.getMode(measureSpec)) { in resolveMeasured()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DSizeAdaptiveLayoutTest.java156 int measureSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST); in testOpenWrapContent() local
157 mSizeAdaptiveLayout.measure(500, measureSpec); in testOpenWrapContent()
486 int measureSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST); in measureAndLayout() local
487 mSizeAdaptiveLayout.measure(500, measureSpec); in measureAndLayout()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DGlowPadView.java341 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
344 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
345 switch (MeasureSpec.getMode(measureSpec)) { in resolveMeasured()
DMultiWaveView.java316 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
319 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
320 switch (MeasureSpec.getMode(measureSpec)) { in resolveMeasured()
/frameworks/base/core/java/android/view/
DView.java15960 public static int resolveSize(int size, int measureSpec) {
15961 return resolveSizeAndState(size, measureSpec, 0) & MEASURED_SIZE_MASK;
15977 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) {
15979 int specMode = MeasureSpec.getMode(measureSpec);
15980 int specSize = MeasureSpec.getSize(measureSpec);
16008 public static int getDefaultSize(int size, int measureSpec) {
16010 int specMode = MeasureSpec.getMode(measureSpec);
16011 int specSize = MeasureSpec.getSize(measureSpec);
17648 public static int getMode(int measureSpec) {
17649 return (measureSpec & MODE_MASK);
[all …]
DViewRootImpl.java2125 int measureSpec; in getRootMeasureSpec() local
2130 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY); in getRootMeasureSpec()
2134 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST); in getRootMeasureSpec()
2138 measureSpec = MeasureSpec.makeMeasureSpec(rootDimension, MeasureSpec.EXACTLY); in getRootMeasureSpec()
2141 return measureSpec; in getRootMeasureSpec()