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

1 2 3 4 5 67 8 91011>>

  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AttachmentTileGrid.java 126 final int width = MeasureSpec.getSize(widthMeasureSpec);
166 MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY),
167 MeasureSpec.makeMeasureSpec(imageSize, MeasureSpec.EXACTLY)
  /frameworks/ex/widget/java/com/android/ex/widget/
StaggeredGridView.java 615 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
616 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
617 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
618 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
620 if (widthMode != MeasureSpec.EXACTLY) {
623 widthMode = MeasureSpec.EXACTLY;
625 if (heightMode != MeasureSpec.EXACTLY) {
628 heightMode = MeasureSpec.EXACTLY;
778 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY)
    [all...]
  /frameworks/base/core/java/android/widget/
VideoView.java 141 //Log.i("@@@@", "onMeasure(" + MeasureSpec.toString(widthMeasureSpec) + ", "
142 // + MeasureSpec.toString(heightMeasureSpec) + ")");
148 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
149 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec);
150 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
151 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec);
153 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) {
166 } else if (widthSpecMode == MeasureSpec.EXACTLY) {
170 if (heightSpecMode == MeasureSpec.AT_MOST && height > heightSpecSize)
    [all...]
FrameLayout.java 174 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY ||
175 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY;
231 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
232 width, MeasureSpec.EXACTLY);
245 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
246 height, MeasureSpec.EXACTLY);
RelativeLayout.java 59 * {@link android.view.View.MeasureSpec MeasureSpec} values. (See
60 * {@link android.view.View.MeasureSpec#makeMeasureSpec(int, int) MeasureSpec.makeMeasureSpec}
63 * not equipped to properly measure with the MeasureSpec mode
64 * {@link android.view.View.MeasureSpec#UNSPECIFIED UNSPECIFIED} was placed in a RelativeLayout,
66 * {@link android.view.View.MeasureSpec#AT_MOST AT_MOST} MeasureSpec instead.</p>
219 // with MeasureSpec value overflow and RelativeLayout was one source of them.
398 final int widthMode = MeasureSpec.getMode(widthMeasureSpec)
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
ScrollingTabContainerView.java 86 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
87 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY;
92 (widthMode == MeasureSpec.EXACTLY || widthMode == MeasureSpec.AT_MOST)) {
94 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f);
96 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2;
103 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mContentHeight, MeasureSpec.EXACTLY);
109 mTabLayout.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec);
110 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec))
    [all...]
ActionBarContainer.java 287 MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST && mHeight >= 0) {
288 heightMeasureSpec = MeasureSpec.makeMeasureSpec(
289 Math.min(mHeight, MeasureSpec.getSize(heightMeasureSpec)), MeasureSpec.AT_MOST);
306 final int mode = MeasureSpec.getMode(heightMeasureSpec);
307 final int maxHeight = mode == MeasureSpec.AT_MOST ?
308 MeasureSpec.getSize(heightMeasureSpec) : Integer.MAX_VALUE;
SlidingTab.java 404 int width = MeasureSpec.getSize(widthMeasureSpec);
405 int height = MeasureSpec.getSize(heightMeasureSpec);
406 tab.measure(View.MeasureSpec.makeSafeMeasureSpec(width, View.MeasureSpec.UNSPECIFIED),
407 View.MeasureSpec.makeSafeMeasureSpec(height, View.MeasureSpec.UNSPECIFIED));
408 text.measure(View.MeasureSpec.makeSafeMeasureSpec(width, View.MeasureSpec.UNSPECIFIED),
409 View.MeasureSpec.makeSafeMeasureSpec(height, View.MeasureSpec.UNSPECIFIED))
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
TileLayout.java 92 final int width = MeasureSpec.getSize(widthMeasureSpec);
107 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
PageIndicator.java 192 final int widthChildSpec = MeasureSpec.makeMeasureSpec(mPageIndicatorWidth,
193 MeasureSpec.EXACTLY);
194 final int heightChildSpec = MeasureSpec.makeMeasureSpec(mPageIndicatorHeight,
195 MeasureSpec.EXACTLY);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
UserGridView.java 117 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
118 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
119 if (widthMode == MeasureSpec.UNSPECIFIED) {
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
BaseCardView.java 360 final int unspecifiedSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
376 int cardWidthMeasureSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY);
657 int widthSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY);
658 int heightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
700 int widthSpec = MeasureSpec.makeMeasureSpec(mMeasuredWidth, MeasureSpec.EXACTLY)
    [all...]
PagingIndicator.java 318 switch (MeasureSpec.getMode(heightMeasureSpec)) {
319 case MeasureSpec.EXACTLY:
320 height = MeasureSpec.getSize(heightMeasureSpec);
322 case MeasureSpec.AT_MOST:
323 height = Math.min(desiredHeight, MeasureSpec.getSize(heightMeasureSpec));
325 case MeasureSpec.UNSPECIFIED:
332 switch (MeasureSpec.getMode(widthMeasureSpec)) {
333 case MeasureSpec.EXACTLY:
334 width = MeasureSpec.getSize(widthMeasureSpec);
336 case MeasureSpec.AT_MOST
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
ScrollingTabContainerView.java 93 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
94 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY;
99 (widthMode == MeasureSpec.EXACTLY || widthMode == MeasureSpec.AT_MOST)) {
101 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f);
103 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2;
110 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mContentHeight, MeasureSpec.EXACTLY);
116 mTabLayout.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec);
117 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec))
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
TestResizingRelayoutWithAutoMeasure.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.makeMeasureSpec;
BaseWrapContentWithAspectRatioTest.java 261 final int size = View.MeasureSpec.getSize(intValue);
262 final int mode = View.MeasureSpec.getMode(intValue);
275 final int size = View.MeasureSpec.getSize(intValue);
276 final int mode = View.MeasureSpec.getMode(intValue);
299 case View.MeasureSpec.AT_MOST:
301 case View.MeasureSpec.EXACTLY:
  /packages/apps/Settings/src/com/android/settings/
CreateShortcut.java 32 import android.view.View.MeasureSpec;
73 int spec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
  /frameworks/base/core/java/com/android/internal/view/menu/
ActionMenuItemView.java 307 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
308 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
310 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth)
313 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) {
315 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
  /frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
ActionMenuItemView.java 287 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
288 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
290 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth)
293 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) {
295 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
  /packages/apps/DeskClock/src/com/android/deskclock/
AnalogClock.java 144 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
145 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
146 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
147 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
152 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) {
156 if (heightMode != MeasureSpec.UNSPECIFIED && heightSize < mDialHeight) {
  /packages/apps/Settings/src/com/android/settings/widget/
MatchParentShrinkingLinearLayout.java 652 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
653 final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
685 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) {
745 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) {
780 (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED)) {
850 if ((lp.height != 0) || (heightMode != MeasureSpec.EXACTLY)) {
859 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY));
864 MeasureSpec.makeMeasureSpec(share > 0 ? share : 0
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DisplayListLayersActivity.java 121 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec) / 3,
122 MeasureSpec.getSize(heightMeasureSpec) / 3);
  /packages/apps/Messaging/src/com/android/messaging/ui/
AsyncImageView.java 322 final int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
323 final int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
324 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) {
357 private static int resolveSize(int desiredSize, int maxSize, int measureSpec) {
358 final int specMode = MeasureSpec.getMode(measureSpec);
359 final int specSize = MeasureSpec.getSize(measureSpec);
361 case MeasureSpec.UNSPECIFIED
    [all...]
  /cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/
TestApp.java 27 import android.view.View.MeasureSpec;
  /frameworks/base/core/java/android/transition/
TransitionUtils.java 106 int widthSpec = View.MeasureSpec.makeMeasureSpec(right - left, View.MeasureSpec.EXACTLY);
107 int heightSpec = View.MeasureSpec.makeMeasureSpec(bottom - top, View.MeasureSpec.EXACTLY);

Completed in 1743 milliseconds

1 2 3 4 5 67 8 91011>>