Home
last modified time | relevance | path

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

12

/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/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/base/core/java/com/android/internal/widget/
DPreferenceImageView.java50 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
51 if (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
55 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
DWeightedLinearLayout.java62 final int widthMode = getMode(widthMeasureSpec); in onMeasure()
73 if (widthMode == AT_MOST) { in onMeasure()
DScrollingTabContainerView.java88 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
89 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY; in onMeasure()
94 (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()
DMessagingLinearLayout.java266 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in trackMeasureSpecs() local
272 widthMode); in trackMeasureSpecs()
DActionBarContextView.java304 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
305 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/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DBlingyNotification.kt51 val widthMode = MeasureSpec.getMode(widthMeasureSpec) in onMeasure() constant
55 if (widthMode == MeasureSpec.EXACTLY && heightMode != MeasureSpec.EXACTLY) { in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java113 final int widthMode = MeasureSpec.getMode(widthSpec); in onMeasure() local
115 if (DEBUG && widthMode != MeasureSpec.AT_MOST) { in onMeasure()
148 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusIconContainer.java159 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
197 getMeasuredWidth(widthMode, specWidth, totalWidth), in onMeasure()
213 private int getMeasuredWidth(int widthMode, int specWidth, int totalWidth) { in getMeasuredWidth() argument
214 if (widthMode == MeasureSpec.EXACTLY) { in getMeasuredWidth()
220 if (widthMode == MeasureSpec.AT_MOST && totalWidth > specWidth) { in getMeasuredWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java292 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
295 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure()
298 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { in onMeasure()
/frameworks/base/core/java/android/widget/
DLinearLayout.java819 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical() local
918 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { in measureVertical()
1042 boolean matchWidthLocally = widthMode != MeasureSpec.EXACTLY && in measureVertical()
1087 if (!allFillParent && widthMode != MeasureSpec.EXACTLY) { in measureVertical()
1149 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureHorizontal() local
1169 final boolean isExactly = widthMode == MeasureSpec.EXACTLY; in measureHorizontal()
1199 if (widthMode == MeasureSpec.EXACTLY && useExcessSpace) { in measureHorizontal()
1332 (widthMode == MeasureSpec.AT_MOST || widthMode == MeasureSpec.UNSPECIFIED)) { in measureHorizontal()
1417 if (mUseLargestChild && widthMode != MeasureSpec.EXACTLY) { in measureHorizontal()
1420 || widthMode == MeasureSpec.EXACTLY)) { in measureHorizontal()
[all …]
DListPopupWindow.java1220 final int widthMode; in buildDropDown() local
1222 widthMode = MeasureSpec.AT_MOST; in buildDropDown()
1225 widthMode = MeasureSpec.UNSPECIFIED; in buildDropDown()
1228 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.java821 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
824 switch (widthMode) { in onMeasure()
844 widthMode = MeasureSpec.EXACTLY; in onMeasure()
859 super.onMeasure(MeasureSpec.makeMeasureSpec(width, widthMode), in onMeasure()
DAnalogClock.java644 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
652 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) { 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.java1063 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
1068 if (widthMode == MeasureSpec.UNSPECIFIED) { in onMeasure()
1134 if (widthMode == MeasureSpec.AT_MOST && mRequestedNumColumns != AUTO_FIT) { in onMeasure()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DAlertDialogLayout.java112 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in tryOnMeasure() local
211 if (widthMode != MeasureSpec.EXACTLY) { in tryOnMeasure()
/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()

12