Home
last modified time | relevance | path

Searched refs:maxWidth (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/widget/
DDialogViewAnimator.java48 int maxWidth = 0; in onMeasure() local
71 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() in onMeasure()
88 maxWidth += getPaddingLeft() + getPaddingRight(); in onMeasure()
93 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
99 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
102 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
DPreferenceImageView.java52 final int maxWidth = getMaxWidth(); in onMeasure() local
53 if (maxWidth != Integer.MAX_VALUE in onMeasure()
54 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
55 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure()
DWatchListDecorLayout.java168 int maxWidth = 0; in onMeasure() local
176 maxWidth = Math.max(maxWidth, in onMeasure()
191 maxWidth += getPaddingLeftWithForeground() + getPaddingRightWithForeground(); in onMeasure()
196 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
202 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
205 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
DNumericTextView.java218 int maxWidth = 0; in updateMinimumWidth() local
225 if (width > maxWidth) { in updateMinimumWidth()
226 maxWidth = width; in updateMinimumWidth()
231 setMinWidth(maxWidth); in updateMinimumWidth()
232 setMinimumWidth(maxWidth); in updateMinimumWidth()
DSubtitleView.java242 private boolean computeMeasurements(int maxWidth) { in computeMeasurements() argument
243 if (mHasMeasurements && maxWidth == mLastMeasuredWidth) { in computeMeasurements()
249 maxWidth -= paddingX; in computeMeasurements()
250 if (maxWidth <= 0) { in computeMeasurements()
258 mLastMeasuredWidth = maxWidth; in computeMeasurements()
259 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mTextPaint, maxWidth) in computeMeasurements()
DActionBarOverlayLayout.java377 int maxWidth = 0;
385 maxWidth = Math.max(maxWidth,
395 maxWidth = Math.max(maxWidth,
465 maxWidth = Math.max(maxWidth,
472 maxWidth += getPaddingLeft() + getPaddingRight();
477 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
479 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
DAlertDialogLayout.java196 int maxWidth = 0; in tryOnMeasure() local
200 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in tryOnMeasure()
204 maxWidth += getPaddingLeft() + getPaddingRight(); in tryOnMeasure()
206 final int widthSizeAndState = resolveSizeAndState(maxWidth, widthMeasureSpec, childState); in tryOnMeasure()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java213 int maxWidth = widthSize; in onMeasure() local
220 if (lp.maxWidth > 0 && lp.maxWidth < maxWidth) { in onMeasure()
221 maxWidth = lp.maxWidth; in onMeasure()
230 maxWidth = Math.max(0, maxWidth - wPadding); in onMeasure()
239 final int childWidthSpec = makeChildMeasureSpec(maxWidth, lp.width); in onMeasure()
272 public int maxWidth; field in KeyguardSecurityViewFlipper.LayoutParams
284 maxWidth = other.maxWidth; in LayoutParams()
293 maxWidth = a.getDimensionPixelSize( in LayoutParams()
305 encoder.addProperty("layout:maxWidth", maxWidth); in encodeProperties()
/frameworks/base/core/java/android/widget/
DDayPickerViewPager.java64 int maxWidth = 0; in onMeasure() local
72 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
85 maxWidth += getPaddingLeft() + getPaddingRight(); in onMeasure()
90 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
96 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
99 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
DAbsoluteLayout.java64 int maxWidth = 0; in onMeasure() local
82 maxWidth = Math.max(maxWidth, childRight); in onMeasure()
88 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
93 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
95 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, 0), in onMeasure()
DFrameLayout.java188 int maxWidth = 0; in onMeasure() local
196 maxWidth = Math.max(maxWidth, in onMeasure()
211 maxWidth += getPaddingLeftWithForeground() + getPaddingRightWithForeground(); in onMeasure()
216 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
222 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
225 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
/frameworks/layoutlib/bridge/src/android/graphics/text/
DGreedyLineBreaker.java44 float maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks() local
69 if (printedWidth > maxWidth) { in computeBreaks()
77 maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks()
88 maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks()
115 maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks()
127 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
132 if (i > goodBreakIndex && printedWidth <= maxWidth) { in computeBreaks()
140 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
DOptimizingLineBreaker.java76 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks() local
83 if (lineMetrics.mPrintedWidth <= maxWidth) { in computeBreaks()
84 float demerits = computeDemerits(maxWidth, lineMetrics.mPrintedWidth, in computeBreaks()
114 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks() local
115 int breakIndex = desperateBreak(lastBreak, numBreaks, maxWidth, lineMetrics); in computeBreaks()
162 private static float computeDemerits(float maxWidth, float width, boolean finalBreak, in computeDemerits() argument
164 float deviation = finalBreak ? 0 : maxWidth - width; in computeDemerits()
172 private int desperateBreak(int start, int limit, float maxWidth, in desperateBreak() argument
190 if (pw > maxWidth && breakFound) { in desperateBreak()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsPopupMenu.java100 int maxWidth = 0; in show() local
105 maxWidth = Math.max(w, maxWidth); in show()
107 int width = Math.max(maxWidth, (int) (parentWidth * 0.5)); in show()
/frameworks/base/media/java/android/media/tv/
DTvStreamConfig.java55 maxWidth(source.readInt()).
137 public Builder maxWidth(int maxWidth) { in maxWidth() method in TvStreamConfig.Builder
138 mMaxWidth = maxWidth; in maxWidth()
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp272 const size_t maxWidth = (mScreenWidth - mBorderWidth) - xpos; in drawWrappedString() local
273 if (maxWidth < 1) { in drawWrappedString()
279 if (stringWidth <= maxWidth) { in drawWrappedString()
318 char* TextRenderer::breakString(const char* str, float maxWidth) const { in breakString()
320 ALOGV("breakString '%s' %.3f", str, maxWidth); in breakString()
329 if (stringWidth <= maxWidth) { in breakString()
337 if (stringWidth < maxWidth) { in breakString()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopup.java140 int maxWidth = 0; in measureIndividualMenuWidth() local
164 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
165 maxWidth = itemWidth; in measureIndividualMenuWidth()
169 return maxWidth; in measureIndividualMenuWidth()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java249 int maxWidth = 0; in onMeasure() local
257 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
265 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
270 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
272 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, measuredChildState), in onMeasure()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DFillContentLayout.java44 private int maxWidth; field in FillContentLayout
65 maxWidth = a.getDimensionPixelSize(R.styleable.SuwFillContentLayout_android_maxWidth, -1); in init()
93 Math.min(maxWidth, parentWidth), in measureIllustrationChild()
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp127 int maxWidth = u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local
136 if (width < 0 || width > maxWidth) in getEastAsianWidths()
144 if (width < 0 || width > maxWidth) in getEastAsianWidths()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java195 int maxWidth = 0; in measureContentWidth() local
222 } else if (itemWidth > maxWidth) { in measureContentWidth()
223 maxWidth = itemWidth; in measureContentWidth()
227 return maxWidth; in measureContentWidth()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java138 public static Bitmap buildScaledBitmap(Drawable drawable, int maxWidth, in buildScaledBitmap() argument
146 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
156 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DFillContentLayoutTest.java58 .addAttribute(android.R.attr.maxWidth, "123dp") in testMeasureChildIsSmallerThanMaxSize()
77 .addAttribute(android.R.attr.maxWidth, "123dp") in testMeasureChildIsSmallerThanParent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDualTileLabel.java160 final float maxWidth = getWidth() - mFirstLineCaret.getWidth() - mHorizontalPaddingPx in updateText() local
163 if (width <= maxWidth) { in updateText()
175 final boolean done = width > maxWidth; in updateText()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/test/
DMpeg4H263DecoderTest.cpp157 size_t maxWidth = (inputMode == MPEG4_MODE) ? MPEG4_MAX_WIDTH : H263_MAX_WIDTH; in processMpeg4H263Decoder() local
159 size_t outputBufferSize = align(maxWidth, 16) * align(maxHeight, 16) * 3 / 2; in processMpeg4H263Decoder()
193 status = PVInitVideoDecoder(mDecHandle, volData, &volSize, 1, maxWidth, maxHeight, in processMpeg4H263Decoder()
223 status = PVInitVideoDecoder(mDecHandle, volData, &volSize, 1, maxWidth, in processMpeg4H263Decoder()

123