Home
last modified time | relevance | path

Searched refs:widthSpec (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/widget/
DListPopupWindow.java603 final int widthSpec; in show() local
607 widthSpec = -1; in show()
609 widthSpec = getAnchorView().getWidth(); in show()
611 widthSpec = mDropDownWidth; in show()
637 mDropDownVerticalOffset, (widthSpec < 0)? -1 : widthSpec, in show()
640 final int widthSpec; in show()
642 widthSpec = ViewGroup.LayoutParams.MATCH_PARENT; in show()
645 widthSpec = getAnchorView().getWidth(); in show()
647 widthSpec = mDropDownWidth; in show()
662 mPopup.setWidth(widthSpec); in show()
[all …]
DGridLayout.java1006 private void measureChildrenWithMargins(int widthSpec, int heightSpec, boolean firstPass) { in measureChildrenWithMargins() argument
1012 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, lp.height); in measureChildrenWithMargins()
1023 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height); in measureChildrenWithMargins()
1025 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize); in measureChildrenWithMargins()
1038 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
1048 int widthSpecSansPadding = adjust( widthSpec, -hPadding); in onMeasure()
1071 resolveSizeAndState(measuredWidth, widthSpec, 0), in onMeasure()
DPopupWindow.java998 public void setWindowLayoutMode(int widthSpec, int heightSpec) { in setWindowLayoutMode() argument
999 mWidthMode = widthSpec; in setWindowLayoutMode()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListPopupWindow.java641 final int widthSpec; in show() local
645 widthSpec = -1; in show()
647 widthSpec = getAnchorView().getWidth(); in show()
649 widthSpec = mDropDownWidth; in show()
675 mDropDownVerticalOffset, (widthSpec < 0)? -1 : widthSpec, in show()
678 final int widthSpec; in show()
680 widthSpec = ViewGroup.LayoutParams.MATCH_PARENT; in show()
683 widthSpec = getAnchorView().getWidth(); in show()
685 widthSpec = mDropDownWidth; in show()
700 mPopup.setWidth(widthSpec); in show()
[all …]
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/
DStickyHeaderRecyclerView.java75 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
76 super.onMeasure(widthSpec, heightSpec); in onMeasure()
78 measureChild(getHeader(), widthSpec, heightSpec); in onMeasure() local
/frameworks/support/design/src/android/support/design/widget/
DNavigationView.java210 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
211 switch (MeasureSpec.getMode(widthSpec)) { in onMeasure()
216 widthSpec = MeasureSpec.makeMeasureSpec( in onMeasure()
217 Math.min(MeasureSpec.getSize(widthSpec), mMaxWidth), MeasureSpec.EXACTLY); in onMeasure()
220 widthSpec = MeasureSpec.makeMeasureSpec(mMaxWidth, MeasureSpec.EXACTLY); in onMeasure()
224 super.onMeasure(widthSpec, heightSpec); in onMeasure()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java191 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
192 final int widthMode = MeasureSpec.getMode(widthSpec); in onMeasure()
195 Log.w(TAG, "onMeasure: widthSpec " + MeasureSpec.toString(widthSpec) + in onMeasure()
203 final int widthSize = MeasureSpec.getSize(widthSpec); in onMeasure()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DHierarchicalMove.java100 int widthSpec = wide ? LayoutParams.WRAP_CONTENT : LayoutParams.MATCH_PARENT; in sendMessage() local
101 LayoutParams params = new LayoutParams(widthSpec, LayoutParams.WRAP_CONTENT); in sendMessage()
/frameworks/base/core/java/android/transition/
DTransitionUtils.java106 int widthSpec = View.MeasureSpec.makeMeasureSpec(right - left, View.MeasureSpec.EXACTLY); in copyViewImage() local
108 copy.measure(widthSpec, heightSpec); in copyViewImage()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java707 private void measureChildWithDecorationsAndMargin(View child, int widthSpec, int heightSpec, in measureChildWithDecorationsAndMargin() argument
712 widthSpec = updateSpecWithExtra(widthSpec, lp.leftMargin + mDecorInsets.left, in measureChildWithDecorationsAndMargin()
721 measure = shouldReMeasureChild(child, widthSpec, heightSpec, lp); in measureChildWithDecorationsAndMargin()
723 measure = shouldMeasureChild(child, widthSpec, heightSpec, lp); in measureChildWithDecorationsAndMargin()
726 child.measure(widthSpec, heightSpec); in measureChildWithDecorationsAndMargin()
DRecyclerView.java2767 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
2769 defaultOnMeasure(widthSpec, heightSpec); in onMeasure()
2773 final int widthMode = MeasureSpec.getMode(widthSpec); in onMeasure()
2777 mLayout.onMeasure(mRecycler, mState, widthSpec, heightSpec); in onMeasure()
2786 mLayout.setMeasureSpecs(widthSpec, heightSpec); in onMeasure()
2791 mLayout.setMeasuredDimensionFromChildren(widthSpec, heightSpec); in onMeasure()
2802 mLayout.setMeasuredDimensionFromChildren(widthSpec, heightSpec); in onMeasure()
2806 mLayout.onMeasure(mRecycler, mState, widthSpec, heightSpec); in onMeasure()
2831 mLayout.onMeasure(mRecycler, mState, widthSpec, heightSpec); in onMeasure()
2840 void defaultOnMeasure(int widthSpec, int heightSpec) { in defaultOnMeasure() argument
[all …]
DStaggeredGridLayoutManager.java1135 private void measureChildWithDecorationsAndMargin(View child, int widthSpec,
1139 widthSpec = updateSpecWithExtra(widthSpec, lp.leftMargin + mTmpRect.left,
1144 ? shouldReMeasureChild(child, widthSpec, heightSpec, lp)
1145 : shouldMeasureChild(child, widthSpec, heightSpec, lp);
1147 child.measure(widthSpec, heightSpec);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DBaseCardView.java657 int widthSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY); in animateInfoOffset() local
663 extraView.measure(widthSpec, heightSpec); in animateInfoOffset()
700 int widthSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY); in animateInfoHeight() local
706 extraView.measure(widthSpec, heightSpec); in animateInfoHeight()
DGridLayoutManager.java1176 private void measureScrapChild(int position, int widthSpec, int heightSpec, in measureScrapChild() argument
1185 int childWidthSpec = ViewGroup.getChildMeasureSpec(widthSpec, in measureScrapChild()
1324 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) { in onMeasure() argument
1330 sizePrimary = MeasureSpec.getSize(widthSpec); in onMeasure()
1335 sizeSecondary = MeasureSpec.getSize(widthSpec); in onMeasure()
1337 modeSecondary = MeasureSpec.getMode(widthSpec); in onMeasure()
1340 if (DEBUG) Log.v(getTag(), "onMeasure widthSpec " + Integer.toHexString(widthSpec) + in onMeasure()
1436 int widthSpec, heightSpec; in measureChild() local
1439 widthSpec = ViewGroup.getChildMeasureSpec( in measureChild()
1445 widthSpec = ViewGroup.getChildMeasureSpec(secondarySpec, widthUsed, lp.width); in measureChild()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java220 final int widthSpec = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
222 if (computeMeasurements(widthSpec)) { in onMeasure()
DResolverDrawerLayout.java748 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
759 measureChildWithMargins(child, widthSpec, widthPadding, heightSpec, heightUsed);
771 measureChildWithMargins(child, widthSpec, widthPadding, heightSpec, heightUsed);
DViewPager.java1441 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
1443 child.measure(widthSpec, heightSpec);
1472 final int widthSpec = MeasureSpec.makeMeasureSpec(
1474 child.measure(widthSpec, mChildHeightMeasureSpec);
1608 final int widthSpec = MeasureSpec.makeMeasureSpec(
1614 child.measure(widthSpec, heightSpec);
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java778 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY); in layoutChildren() local
787 child.measure(widthSpec, heightSpec); in layoutChildren()
906 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY); in fillUp() local
944 child.measure(widthSpec, heightSpec); in fillUp()
1020 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY); in fillDown() local
1058 child.measure(widthSpec, heightSpec); in fillDown()
/frameworks/base/core/java/android/app/
DActivityTransitionCoordinator.java489 int widthSpec = View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY); in setSharedElementState() local
491 view.measure(widthSpec, heightSpec); in setSharedElementState()
656 int widthSpec = View.MeasureSpec.makeMeasureSpec(state.mMeasuredWidth, in setOriginalSharedElementState() local
660 view.measure(widthSpec, heightSpec); in setOriginalSharedElementState()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java906 private void measureChildrenWithMargins(int widthSpec, int heightSpec, boolean firstPass) { in measureChildrenWithMargins() argument
912 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, lp.height); in measureChildrenWithMargins()
923 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height); in measureChildrenWithMargins()
925 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize); in measureChildrenWithMargins()
938 protected void onMeasure(int widthSpec, int heightSpec) { in onMeasure() argument
948 int widthSpecSansPadding = adjust( widthSpec, -hPadding); in onMeasure()
971 ViewCompat.resolveSizeAndState(measuredWidth, widthSpec, 0), in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskView.java269 int widthSpec = MeasureSpec.makeMeasureSpec(widthWithoutPadding, MeasureSpec.EXACTLY); in measureContents() local
273 measureChildren(widthSpec, heightSpec); in measureContents()
/frameworks/base/media/java/android/media/
DTtmlRenderer.java707 final int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY); in setSize() local
710 measure(widthSpec, heightSpec); in setSize()
DClosedCaptionRenderer.java178 final int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY); in setSize() local
181 measure(widthSpec, heightSpec); in setSize()
DWebVttRenderer.java1174 final int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY); in setSize() local
1177 measure(widthSpec, heightSpec); in setSize()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java1591 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
1593 child.measure(widthSpec, heightSpec);
1622 final int widthSpec = MeasureSpec.makeMeasureSpec(
1624 child.measure(widthSpec, mChildHeightMeasureSpec);
1748 final int widthSpec = MeasureSpec.makeMeasureSpec(
1754 child.measure(widthSpec, heightSpec);

12