HomeSort by relevance Sort by last modified time
    Searched refs:MeasureSpec (Results 201 - 225 of 462) sorted by null

1 2 3 4 5 6 7 891011>>

  /frameworks/base/apct-tests/perftests/core/src/android/view/
ViewShowHidePerfTest.java 30 import android.view.View.MeasureSpec;
164 MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY),
165 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));
  /frameworks/base/core/tests/coretests/src/com/android/internal/widget/
MessagingLinearLayoutTest.java 28 import android.view.View.MeasureSpec;
40 public static final int WIDTH_SPEC = MeasureSpec.makeMeasureSpec(500, MeasureSpec.EXACTLY);
41 public static final int HEIGHT_SPEC = MeasureSpec.makeMeasureSpec(400, MeasureSpec.AT_MOST);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
QSIconViewImpl.java 73 final int w = MeasureSpec.getSize(widthMeasureSpec);
75 mIcon.measure(MeasureSpec.makeMeasureSpec(w, getIconMeasureMode()), iconSpec);
202 return MeasureSpec.EXACTLY;
213 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
  /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
FrameworkActionBar.java 36 import android.view.View.MeasureSpec;
202 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
203 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
  /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderDrawable.java 34 import android.view.View.MeasureSpec;
139 int w_spec = MeasureSpec.makeMeasureSpec(w, MeasureSpec.EXACTLY);
140 int h_spec = MeasureSpec.makeMeasureSpec(h, MeasureSpec.EXACTLY);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
PopupList.java 23 import android.view.View.MeasureSpec;
146 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
147 MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST));
  /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/packages/SystemUI/src/com/android/systemui/statusbar/
NotificationContentView.java 178 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
179 boolean hasFixedHeight = heightMode == MeasureSpec.EXACTLY;
180 boolean isHeightLimited = heightMode == MeasureSpec.AT_MOST;
182 int width = MeasureSpec.getSize(widthMeasureSpec);
184 maxSize = MeasureSpec.getSize(heightMeasureSpec);
201 int spec = MeasureSpec.makeMeasureSpec(size, useExactly
202 ? MeasureSpec.EXACTLY
203 : MeasureSpec.AT_MOST);
218 heightSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY)
    [all...]
  /frameworks/base/apct-tests/perftests/core/src/android/widget/
TextViewOnMeasurePerfTest.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;
  /frameworks/base/core/java/android/widget/
VideoView.java 171 //Log.i("@@@@", "onMeasure(" + MeasureSpec.toString(widthMeasureSpec) + ", "
172 // + MeasureSpec.toString(heightMeasureSpec) + ")");
178 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
179 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec);
180 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
181 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec);
183 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) {
196 } else if (widthSpecMode == MeasureSpec.EXACTLY) {
200 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);
  /frameworks/base/core/java/com/android/internal/widget/
MediaNotificationView.java 63 int mode = MeasureSpec.getMode(widthMeasureSpec);
66 if (hasIcon && mode != MeasureSpec.UNSPECIFIED) {
67 int size = MeasureSpec.getSize(widthMeasureSpec);
ScrollingTabContainerView.java 85 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
86 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY;
91 (widthMode == MeasureSpec.EXACTLY || widthMode == MeasureSpec.AT_MOST)) {
93 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f);
95 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2;
102 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mContentHeight, MeasureSpec.EXACTLY);
108 mTabLayout.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec);
109 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;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
TileLayout.java 96 final int width = MeasureSpec.getSize(widthMeasureSpec)
124 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
  /frameworks/support/leanback/src/main/java/androidx/leanback/widget/
PagingIndicator.java 365 switch (MeasureSpec.getMode(heightMeasureSpec)) {
366 case MeasureSpec.EXACTLY:
367 height = MeasureSpec.getSize(heightMeasureSpec);
369 case MeasureSpec.AT_MOST:
370 height = Math.min(desiredHeight, MeasureSpec.getSize(heightMeasureSpec));
372 case MeasureSpec.UNSPECIFIED:
379 switch (MeasureSpec.getMode(widthMeasureSpec)) {
380 case MeasureSpec.EXACTLY:
381 width = MeasureSpec.getSize(widthMeasureSpec);
383 case MeasureSpec.AT_MOST
    [all...]
  /frameworks/support/slices/view/src/main/java/androidx/slice/widget/
SliceView.java 325 int width = MeasureSpec.getSize(widthMeasureSpec);
326 int childWidth = MeasureSpec.getSize(widthMeasureSpec);
336 final int heightAvailable = MeasureSpec.getSize(heightMeasureSpec);
337 final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
341 || heightMode == MeasureSpec.UNSPECIFIED) {
343 if (heightMode != MeasureSpec.EXACTLY) {
364 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY);
365 int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
ScrollingTabContainerView.java 97 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
98 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY;
103 (widthMode == MeasureSpec.EXACTLY || widthMode == MeasureSpec.AT_MOST)) {
105 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f);
107 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2;
114 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mContentHeight, MeasureSpec.EXACTLY);
120 mTabLayout.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec);
121 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec))
    [all...]
  /frameworks/support/wear/src/main/java/androidx/wear/widget/
CircledImageView.java 323 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
324 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
325 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
326 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
331 if (widthMode == MeasureSpec.EXACTLY) {
333 } else if (widthMode == MeasureSpec.AT_MOST) {
339 if (heightMode == MeasureSpec.EXACTLY) {
341 } else if (heightMode == MeasureSpec.AT_MOST) {
359 MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY)
    [all...]
  /packages/apps/Settings/src/com/android/settings/fingerprint/
FingerprintLocationAnimationVideoView.java 49 // Width is driven by measurespec, height is derrived from aspect ratio
50 int originalWidth = MeasureSpec.getSize(widthMeasureSpec);
52 super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));
  /cts/tests/tests/widget/src/android/widget/cts/
VideoViewTest.java 45 import android.view.View.MeasureSpec;
261 int resolvedSize = mVideoView.resolveAdjustedSize(desiredSize, MeasureSpec.UNSPECIFIED);
264 final int specSize = MeasureSpec.getSize(MeasureSpec.AT_MOST);
265 resolvedSize = mVideoView.resolveAdjustedSize(desiredSize, MeasureSpec.AT_MOST);
268 resolvedSize = mVideoView.resolveAdjustedSize(desiredSize, MeasureSpec.EXACTLY);
  /frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
BaseWrapContentWithAspectRatioTest.java 263 final int size = View.MeasureSpec.getSize(intValue);
264 final int mode = View.MeasureSpec.getMode(intValue);
277 final int size = View.MeasureSpec.getSize(intValue);
278 final int mode = View.MeasureSpec.getMode(intValue);
301 case View.MeasureSpec.AT_MOST:
303 case View.MeasureSpec.EXACTLY:
  /packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
PageIndicatorDots.java 233 int width = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY ?
234 MeasureSpec.getSize(widthMeasureSpec) : (int) ((mNumPages * 3 + 2) * mDotRadius);
235 int height= MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.EXACTLY ?
236 MeasureSpec.getSize(heightMeasureSpec) : (int) (4 * mDotRadius);
  /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...]

Completed in 1385 milliseconds

1 2 3 4 5 6 7 891011>>