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/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/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()
DVideoView.java142 public int resolveAdjustedSize(int desiredSize, int measureSpec) { in resolveAdjustedSize() argument
144 int specMode = MeasureSpec.getMode(measureSpec); in resolveAdjustedSize()
145 int specSize = MeasureSpec.getSize(measureSpec); in resolveAdjustedSize()
DNumberPicker.java1485 private int makeMeasureSpec(int measureSpec, int maxSize) { in makeMeasureSpec() argument
1487 return measureSpec; in makeMeasureSpec()
1489 final int size = MeasureSpec.getSize(measureSpec); in makeMeasureSpec()
1490 final int mode = MeasureSpec.getMode(measureSpec); in makeMeasureSpec()
1493 return measureSpec; in makeMeasureSpec()
1514 int minSize, int measuredSize, int measureSpec) { in resolveSizeAndStateRespectingMinSize() argument
1517 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.java827 int measureSpec) { in resolveAdjustedSize() argument
829 int specMode = MeasureSpec.getMode(measureSpec); in resolveAdjustedSize()
830 int specSize = MeasureSpec.getSize(measureSpec); in resolveAdjustedSize()
DGridLayout.java1685 public int getMeasure(int measureSpec) {
1686 int mode = MeasureSpec.getMode(measureSpec);
1687 int size = MeasureSpec.getSize(measureSpec);
/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.java241 int measureSpec = View.MeasureSpec.makeMeasureSpec(bottom - top, in onLayout() local
243 mActiveChild = selectActiveChild(measureSpec); in onLayout()
DLockPatternView.java454 private int resolveMeasured(int measureSpec, int desired) in resolveMeasured() argument
457 int specSize = MeasureSpec.getSize(measureSpec); in resolveMeasured()
458 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/
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()
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()
/frameworks/base/core/java/android/view/
DView.java15621 public static int resolveSize(int size, int measureSpec) {
15622 return resolveSizeAndState(size, measureSpec, 0) & MEASURED_SIZE_MASK;
15638 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) {
15640 int specMode = MeasureSpec.getMode(measureSpec);
15641 int specSize = MeasureSpec.getSize(measureSpec);
15669 public static int getDefaultSize(int size, int measureSpec) {
15671 int specMode = MeasureSpec.getMode(measureSpec);
15672 int specSize = MeasureSpec.getSize(measureSpec);
17286 public static int getMode(int measureSpec) {
17287 return (measureSpec & MODE_MASK);
[all …]
DViewRootImpl.java1925 int measureSpec; in getRootMeasureSpec() local
1930 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY); in getRootMeasureSpec()
1934 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST); in getRootMeasureSpec()
1938 measureSpec = MeasureSpec.makeMeasureSpec(rootDimension, MeasureSpec.EXACTLY); in getRootMeasureSpec()
1941 return measureSpec; in getRootMeasureSpec()