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

/frameworks/support/design/src/android/support/design/widget/
H A DNavigationView.java200 protected void onMeasure(int widthSpec, int heightSpec) { argument
201 switch (MeasureSpec.getMode(widthSpec)) {
206 widthSpec = MeasureSpec.makeMeasureSpec(
207 Math.min(MeasureSpec.getSize(widthSpec), mMaxWidth), MeasureSpec.EXACTLY);
210 widthSpec = MeasureSpec.makeMeasureSpec(mMaxWidth, MeasureSpec.EXACTLY);
214 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.java591 final int widthSpec;
595 widthSpec = -1;
597 widthSpec = getAnchorView().getWidth();
599 widthSpec = mDropDownWidth;
625 mDropDownVerticalOffset, (widthSpec < 0)? -1 : widthSpec,
628 final int widthSpec;
630 widthSpec = ViewGroup.LayoutParams.MATCH_PARENT;
633 widthSpec = getAnchorView().getWidth();
635 widthSpec
[all...]
H A DGridLayout.java1000 private void measureChildrenWithMargins(int widthSpec, int heightSpec, boolean firstPass) { argument
1006 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, lp.height);
1017 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height);
1019 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize);
1032 protected void onMeasure(int widthSpec, int heightSpec) { argument
1042 int widthSpecSansPadding = adjust( widthSpec, -hPadding);
1065 resolveSizeAndState(measuredWidth, widthSpec, 0),
H A DPopupWindow.java878 * @param widthSpec an explicit width measure spec mode, either
890 public void setWindowLayoutMode(int widthSpec, int heightSpec) { argument
891 mWidthMode = widthSpec;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java183 protected void onMeasure(int widthSpec, int heightSpec) { argument
184 final int widthMode = MeasureSpec.getMode(widthSpec);
187 Log.w(TAG, "onMeasure: widthSpec " + MeasureSpec.toString(widthSpec) +
195 final int widthSize = MeasureSpec.getSize(widthSpec);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListPopupWindow.java586 int widthSpec = 0;
595 widthSpec = -1;
597 widthSpec = getAnchorView().getWidth();
599 widthSpec = mDropDownWidth;
625 mDropDownVerticalOffset, widthSpec, heightSpec);
628 widthSpec = ViewGroup.LayoutParams.MATCH_PARENT;
647 mPopup.setWindowLayoutMode(widthSpec, heightSpec);
1131 int widthSpec = MeasureSpec.makeMeasureSpec(mDropDownWidth, MeasureSpec.AT_MOST);
1133 hintView.measure(widthSpec, heightSpec);
/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.java647 int widthSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY);
653 extraView.measure(widthSpec, heightSpec);
690 int widthSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY);
696 extraView.measure(widthSpec, heightSpec);
H A DGridLayoutManager.java1059 private void measureScrapChild(int position, int widthSpec, int heightSpec, argument
1064 int childWidthSpec = ViewGroup.getChildMeasureSpec(widthSpec,
1180 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) { argument
1186 sizePrimary = MeasureSpec.getSize(widthSpec);
1191 sizeSecondary = MeasureSpec.getSize(widthSpec);
1193 modeSecondary = MeasureSpec.getMode(widthSpec);
1196 if (DEBUG) Log.v(getTag(), "onMeasure widthSpec " + Integer.toHexString(widthSpec) +
1294 int widthSpec, heightSpec;
1297 widthSpec
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java219 final int widthSpec = MeasureSpec.getSize(widthMeasureSpec);
221 if (computeMeasurements(widthSpec)) {
H A DResolverDrawerLayout.java667 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
678 measureChildWithMargins(child, widthSpec, widthPadding, heightSpec, heightUsed);
690 measureChildWithMargins(child, widthSpec, widthPadding, heightSpec, heightUsed);
H A DViewPager.java1425 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
1427 child.measure(widthSpec, heightSpec);
1456 final int widthSpec = MeasureSpec.makeMeasureSpec(
1458 child.measure(widthSpec, mChildHeightMeasureSpec);
1592 final int widthSpec = MeasureSpec.makeMeasureSpec(
1598 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.java487 int widthSpec = View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY);
489 view.measure(widthSpec, heightSpec);
654 int widthSpec = View.MeasureSpec.makeMeasureSpec(state.mMeasuredWidth,
658 view.measure(widthSpec, heightSpec);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java563 private void measureChildWithDecorationsAndMargin(View child, int widthSpec, int heightSpec, argument
568 widthSpec = updateSpecWithExtra(widthSpec, lp.leftMargin + mDecorInsets.left,
575 child.measure(widthSpec, heightSpec);
H A DRecyclerView.java2466 protected void onMeasure(int widthSpec, int heightSpec) { argument
2492 defaultOnMeasure(widthSpec, heightSpec);
2494 mLayout.onMeasure(mRecycler, mState, widthSpec, heightSpec);
2503 private void defaultOnMeasure(int widthSpec, int heightSpec) { argument
2504 final int widthMode = MeasureSpec.getMode(widthSpec);
2506 final int widthSize = MeasureSpec.getSize(widthSpec);
6898 final int widthSpec = getChildMeasureSpec(getWidth(),
6904 child.measure(widthSpec, heightSpec);
6926 final int widthSpec = getChildMeasureSpec(getWidth(),
6934 child.measure(widthSpec, heightSpe
7529 onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) argument
[all...]
H A DStaggeredGridLayoutManager.java1025 private void measureChildWithDecorationsAndMargin(View child, int widthSpec, argument
1029 widthSpec = updateSpecWithExtra(widthSpec, lp.leftMargin + mTmpRect.left,
1033 child.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.java1133 final int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY);
1136 measure(widthSpec, heightSpec);
H A DWebVttRenderer.java1174 final int widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY);
1177 measure(widthSpec, heightSpec);
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java900 private void measureChildrenWithMargins(int widthSpec, int heightSpec, boolean firstPass) { argument
906 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, lp.height);
917 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height);
919 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize);
932 protected void onMeasure(int widthSpec, int heightSpec) { argument
942 int widthSpecSansPadding = adjust( widthSpec, -hPadding);
965 ViewCompat.resolveSizeAndState(measuredWidth, widthSpec, 0),
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java1456 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
1458 child.measure(widthSpec, heightSpec);
1487 final int widthSpec = MeasureSpec.makeMeasureSpec(
1489 child.measure(widthSpec, mChildHeightMeasureSpec);
1616 final int widthSpec = MeasureSpec.makeMeasureSpec(
1622 child.measure(widthSpec, heightSpec);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewLayoutTest.java1485 int widthSpec, int heightSpec) {
1498 super.onMeasure(recycler, state, widthSpec, heightSpec);

Completed in 3099 milliseconds