HomeSort by relevance Sort by last modified time
    Searched refs:MeasureSpec (Results 51 - 75 of 357) sorted by null

1 23 4 5 6 7 8 91011>>

  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
ButtonBarLayout.java 53 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
70 if (!isStacked() && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) {
71 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST);
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
TestedFrameLayout.java 59 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY);
71 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY);
77 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY &&
78 MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.EXACTLY) {
80 MeasureSpec.getSize(widthMeasureSpec),
81 MeasureSpec.getSize(heightMeasureSpec
    [all...]
DefaultMeasureSpecTest.java 19 import static android.view.View.MeasureSpec.AT_MOST;
20 import static android.view.View.MeasureSpec.EXACTLY;
21 import static android.view.View.MeasureSpec.UNSPECIFIED;
22 import static android.view.View.MeasureSpec.makeMeasureSpec;
128 int mode = View.MeasureSpec.getMode(mHSpec);
134 mExpectedH = Math.min(View.MeasureSpec.getSize(mHSpec), mExpectedH + 5);
143 int mode = View.MeasureSpec.getMode(mWSpec);
149 mExpectedW = Math.min(View.MeasureSpec.getSize(mWSpec), mExpectedW + 5);
165 final int size = View.MeasureSpec.getSize(spec);
166 int mode = View.MeasureSpec.getMode(spec)
    [all...]
WrapContentBasicTest.java 51 private static int WRAP = View.MeasureSpec.makeMeasureSpec(10, View.MeasureSpec.AT_MOST);
52 private static int EXACT = View.MeasureSpec.makeMeasureSpec(10, View.MeasureSpec.EXACTLY);
53 private static int UNSPECIFIED = View.MeasureSpec
54 .makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
112 int hSpec = View.MeasureSpec.makeMeasureSpec(111, View.MeasureSpec.EXACTLY);
121 int wSpec = View.MeasureSpec.makeMeasureSpec(111, View.MeasureSpec.EXACTLY)
    [all...]
LinearLayoutManagerWrapContentWithAspectRatioTest.java 116 wrapContent.hSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
120 wrapContent.wSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
174 MeasureSpecMatcher.is(0, View.MeasureSpec.UNSPECIFIED));
177 MeasureSpecMatcher.is(parentDim, View.MeasureSpec.AT_MOST));
183 MeasureSpecMatcher.is(0, View.MeasureSpec.UNSPECIFIED));
186 MeasureSpecMatcher.is(parentDim, View.MeasureSpec.AT_MOST));
193 MeasureSpecMatcher.is(0, View.MeasureSpec.UNSPECIFIED));
196 MeasureSpecMatcher.is(parentDim, View.MeasureSpec.AT_MOST))
    [all...]
  /frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
ThemePreviewLayout.java 100 int wSize = MeasureSpec.getSize(widthMeasureSpec) - mPaddingLeft - mPaddingRight;
105 int childWidthSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
106 int childHeightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
140 childWidthSpec = MeasureSpec.makeMeasureSpec(itemWidth, MeasureSpec.EXACTLY);
141 childHeightSpec = MeasureSpec.makeMeasureSpec(itemHeight, MeasureSpec.EXACTLY);
  /frameworks/base/core/java/com/android/internal/widget/
AlertDialogLayout.java 107 final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
108 final int heightSize = MeasureSpec.getSize(heightMeasureSpec);
109 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
115 topPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED);
124 buttonPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED);
135 if (heightMode == MeasureSpec.UNSPECIFIED) {
136 childHeightSpec = MeasureSpec.UNSPECIFIED;
138 childHeightSpec = MeasureSpec.makeMeasureSpec(
163 final int childHeightSpec = MeasureSpec.makeMeasureSpec(
164 buttonHeight, MeasureSpec.EXACTLY)
    [all...]
DialogViewAnimator.java 44 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY ||
45 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY;
114 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
117 MeasureSpec.EXACTLY);
126 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
129 MeasureSpec.EXACTLY);
WeightedLinearLayout.java 25 import static android.view.View.MeasureSpec.*;
69 widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, EXACTLY);
77 widthMeasureSpec = MeasureSpec.makeMeasureSpec(weightedMin, EXACTLY);
80 widthMeasureSpec = MeasureSpec.makeMeasureSpec(weightedMax, EXACTLY);
MessagingLinearLayout.java 90 switch (MeasureSpec.getMode(heightMeasureSpec)) {
91 case MeasureSpec.AT_MOST:
92 heightMeasureSpec = MeasureSpec.makeMeasureSpec(
93 Math.min(mMaxHeight, MeasureSpec.getSize(heightMeasureSpec)),
94 MeasureSpec.AT_MOST);
96 case MeasureSpec.UNSPECIFIED:
97 heightMeasureSpec = MeasureSpec.makeMeasureSpec(
99 MeasureSpec.AT_MOST);
101 case MeasureSpec.EXACTLY:
104 final int targetHeight = MeasureSpec.getSize(heightMeasureSpec)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
KeyboardShortcutKeysLayout.java 46 int width = MeasureSpec.getSize(widthMeasureSpec) - getPaddingLeft() - getPaddingRight();
48 int height = MeasureSpec.getSize(heightMeasureSpec) - getPaddingTop() - getPaddingBottom();
54 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) {
55 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST);
57 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
64 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST)
    [all...]
ExpandableView.java 54 final int givenSize = MeasureSpec.getSize(heightMeasureSpec);
56 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
57 if (heightMode != MeasureSpec.UNSPECIFIED && givenSize != 0) {
60 int newHeightSpec = MeasureSpec.makeMeasureSpec(ownMaxHeight, MeasureSpec.AT_MOST);
74 ? MeasureSpec.makeMeasureSpec(ownMaxHeight, MeasureSpec.EXACTLY)
75 : MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY);
86 int ownHeight = heightMode == MeasureSpec.EXACTL
    [all...]
  /development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
ExpandingLayout.java 57 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mExpandedHeight, MeasureSpec.AT_MOST);
  /external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/surfaceview/
RatioResolutionStrategy.java 40 final int specWidth = View.MeasureSpec.getSize(widthMeasureSpec);
41 final int specHeight = View.MeasureSpec.getSize(heightMeasureSpec);
  /frameworks/base/core/java/android/widget/
DayPickerViewPager.java 65 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY ||
66 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY;
118 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
120 MeasureSpec.EXACTLY);
128 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
130 MeasureSpec.EXACTLY);
  /cts/hostsidetests/theme/app/src/android/theme/app/
ReferenceViewGroup.java 65 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
67 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.AT_MOST);
  /development/samples/ApiDemos/src/com/example/android/apis/animation/
FixedGridLayout.java 57 int cellWidthSpec = MeasureSpec.makeMeasureSpec(mCellWidth,
58 MeasureSpec.AT_MOST);
59 int cellHeightSpec = MeasureSpec.makeMeasureSpec(mCellHeight,
60 MeasureSpec.AT_MOST);
  /packages/services/Car/car-support-lib/src/android/support/car/ui/
MaxWidthLayout.java 87 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
88 mMaxChildrenWidth - lp.leftMargin - lp.rightMargin, MeasureSpec.EXACTLY);
89 int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
90 child.getMeasuredHeight(), MeasureSpec.EXACTLY);
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
ButtonBarLayout.java 67 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
80 if (!isStacked() && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) {
81 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST);
  /packages/apps/Dialer/src/com/android/dialer/list/
PhoneFavoriteSquareTileView.java 92 final int width = MeasureSpec.getSize(widthMeasureSpec);
97 MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
98 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)
  /development/samples/Home/src/com/example/android/home/
ApplicationsStackLayout.java 164 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
165 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
167 final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
168 final int heightSize = MeasureSpec.getSize(heightMeasureSpec);
170 if (widthMode != MeasureSpec.EXACTLY || heightMode != MeasureSpec.EXACTLY) {
183 final int widthSpec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY);
184 final int heightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY)
    [all...]
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
KeyguardSecurityViewFlipper.java 192 final int widthMode = MeasureSpec.getMode(widthSpec);
193 final int heightMode = MeasureSpec.getMode(heightSpec);
194 if (DEBUG && widthMode != MeasureSpec.AT_MOST) {
195 Log.w(TAG, "onMeasure: widthSpec " + MeasureSpec.toString(widthSpec) +
198 if (DEBUG && heightMode != MeasureSpec.AT_MOST) {
199 Log.w(TAG, "onMeasure: heightSpec " + MeasureSpec.toString(heightSpec) +
203 final int widthSize = MeasureSpec.getSize(widthSpec);
204 final int heightSize = MeasureSpec.getSize(heightSpec);
225 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0;
226 int height = heightMode == MeasureSpec.EXACTLY ? heightSize : 0
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DetailsOverviewSharedElementHelper.java 31 import android.view.View.MeasureSpec;
71 MeasureSpec.makeMeasureSpec(imageView.getMeasuredWidth(), MeasureSpec.EXACTLY),
72 MeasureSpec.makeMeasureSpec(imageView.getMeasuredHeight(), MeasureSpec.EXACTLY));
127 imageView.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
128 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));
132 rightPanel.measure(MeasureSpec.makeMeasureSpec(mRightPanelWidth, MeasureSpec.EXACTLY)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/widget/
InterpolatingLayout.java 205 int parentWidth = MeasureSpec.getSize(widthMeasureSpec);
206 int parentHeight = MeasureSpec.getSize(heightMeasureSpec);
232 childWidthMeasureSpec = MeasureSpec.UNSPECIFIED;
235 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
236 childWidth, MeasureSpec.EXACTLY);
243 childHeightMeasureSpec = MeasureSpec.UNSPECIFIED;
246 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
248 MeasureSpec.EXACTLY);
251 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
252 params.height, MeasureSpec.EXACTLY)
    [all...]
  /frameworks/support/core-ui/java/android/support/v4/widget/
SlidingPaneLayout.java 452 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
453 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
454 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
455 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
457 if (widthMode != MeasureSpec.EXACTLY) {
463 if (widthMode == MeasureSpec.AT_MOST) {
464 widthMode = MeasureSpec.EXACTLY;
465 } else if (widthMode == MeasureSpec.UNSPECIFIED) {
466 widthMode = MeasureSpec.EXACTLY;
472 } else if (heightMode == MeasureSpec.UNSPECIFIED)
    [all...]

Completed in 253 milliseconds

1 23 4 5 6 7 8 91011>>