[go: nahoru, domu]

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

12

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

Completed in 434 milliseconds

12