Home
last modified time | relevance | path

Searched refs:widthMode (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DFixedAspectSurfaceView.java88 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
102 if (widthMode == MeasureSpec.EXACTLY && heightMode == MeasureSpec.EXACTLY) { in onMeasure()
104 } else if (widthMode == MeasureSpec.EXACTLY) { in onMeasure()
110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { in onMeasure()
122 } else if (widthMode == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DFixedAspectSurfaceView.java88 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
102 if (widthMode == MeasureSpec.EXACTLY && heightMode == MeasureSpec.EXACTLY) { in onMeasure()
104 } else if (widthMode == MeasureSpec.EXACTLY) { in onMeasure()
110 } else if (widthMode == MeasureSpec.AT_MOST && heightMode == MeasureSpec.AT_MOST) { in onMeasure()
122 } else if (widthMode == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DPreferenceImageView.java49 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
50 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
54 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
DWeightedLinearLayout.java62 final int widthMode = getMode(widthMeasureSpec); in onMeasure()
73 if (widthMode == AT_MOST) { in onMeasure()
DScrollingTabContainerView.java87 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
88 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY; in onMeasure()
93 (widthMode == MeasureSpec.EXACTLY || widthMode == MeasureSpec.AT_MOST)) { in onMeasure()
DAlertDialogLayout.java113 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in tryOnMeasure() local
212 if (widthMode != MeasureSpec.EXACTLY) { in tryOnMeasure()
DActionBarContextView.java303 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
304 if (widthMode != MeasureSpec.EXACTLY) { in onMeasure()
DActionBarView.java902 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
903 if (widthMode != MeasureSpec.EXACTLY) { in onMeasure()
1515 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
1520 switch (widthMode) { in onMeasure()
DViewPager.java1397 int widthMode = MeasureSpec.AT_MOST;
1403 widthMode = MeasureSpec.EXACTLY;
1411 widthMode = MeasureSpec.EXACTLY;
1422 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java286 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
289 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure()
292 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java200 final int widthMode = MeasureSpec.getMode(widthSpec); in onMeasure() local
202 if (DEBUG && widthMode != MeasureSpec.AT_MOST) { in onMeasure()
233 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0; in onMeasure()
/frameworks/base/core/java/android/widget/
DLinearLayout.java783 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical() local
882 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { in measureVertical()
1006 boolean matchWidthLocally = widthMode != MeasureSpec.EXACTLY && in measureVertical()
1051 if (!allFillParent && widthMode != MeasureSpec.EXACTLY) { in measureVertical()
1113 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureHorizontal() local
1133 final boolean isExactly = widthMode == MeasureSpec.EXACTLY; in measureHorizontal()
1163 if (widthMode == MeasureSpec.EXACTLY && useExcessSpace) { in measureHorizontal()
1296 (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED)) { in measureHorizontal()
1365 if (mUseLargestChild && widthMode != MeasureSpec.EXACTLY) { in measureHorizontal()
1368 || widthMode == MeasureSpec.EXACTLY)) { in measureHorizontal()
[all …]
DAnalogClock.java155 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
163 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) { in onMeasure()
DListPopupWindow.java1219 final int widthMode; in buildDropDown() local
1221 widthMode = MeasureSpec.AT_MOST; in buildDropDown()
1224 widthMode = MeasureSpec.UNSPECIFIED; in buildDropDown()
1227 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode); in buildDropDown()
DAbsSpinner.java179 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
234 if (widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
DSearchView.java814 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
817 switch (widthMode) { in onMeasure()
837 widthMode = MeasureSpec.EXACTLY; in onMeasure()
852 super.onMeasure(MeasureSpec.makeMeasureSpec(width, widthMode), in onMeasure()
DRelativeLayout.java418 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
424 if (widthMode != MeasureSpec.UNSPECIFIED) { in onMeasure()
432 if (widthMode == MeasureSpec.EXACTLY) { in onMeasure()
458 final boolean isWrapContentWidth = widthMode != MeasureSpec.EXACTLY; in onMeasure()
DGridView.java1062 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
1067 if (widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
1133 if (widthMode == MeasureSpec.AT_MOST && mRequestedNumColumns != AUTO_FIT) { in onMeasure()
DHorizontalScrollView.java426 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
427 if (widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
DListView.java1281 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
1291 if (mItemCount > 0 && (widthMode == MeasureSpec.UNSPECIFIED in onMeasure()
1309 if (widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
/frameworks/base/core/java/android/app/
DMediaRouteButton.java282 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
291 switch (widthMode) { in onMeasure()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java55 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java615 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
620 if (widthMode != MeasureSpec.EXACTLY) { in onMeasure()
623 widthMode = MeasureSpec.EXACTLY; in onMeasure()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java625 int width, int widthMode, int height, int heightMode) { in measureView() argument
626 int w_spec = MeasureSpec.makeMeasureSpec(width, widthMode); in measureView()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java690 final int widthMode = getMode(widthMeasureSpec);
695 if (widthMode == AT_MOST) {
754 if (!fixedWidth && widthMode == AT_MOST) {

12