Home
last modified time | relevance | path

Searched refs:maxWidth (Results 1 – 25 of 70) 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.java50 final int maxWidth = getMaxWidth(); in onMeasure() local
51 if (maxWidth != Integer.MAX_VALUE in onMeasure()
52 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
53 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.java216 int maxWidth = 0; in updateMinimumWidth() local
223 if (width > maxWidth) { in updateMinimumWidth()
224 maxWidth = width; in updateMinimumWidth()
229 setMinWidth(maxWidth); in updateMinimumWidth()
230 setMinimumWidth(maxWidth); in updateMinimumWidth()
DActionBarOverlayLayout.java372 int maxWidth = 0;
380 maxWidth = Math.max(maxWidth,
390 maxWidth = Math.max(maxWidth,
453 maxWidth = Math.max(maxWidth,
460 maxWidth += getPaddingLeft() + getPaddingRight();
465 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
467 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
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()
260 mText, mTextPaint, maxWidth, mAlignment, mSpacingMult, mSpacingAdd, true); in computeMeasurements()
DAlertDialogLayout.java194 int maxWidth = 0; in tryOnMeasure() local
198 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in tryOnMeasure()
202 maxWidth += getPaddingLeft() + getPaddingRight(); in tryOnMeasure()
204 final int widthSizeAndState = resolveSizeAndState(maxWidth, widthMeasureSpec, childState); in tryOnMeasure()
/frameworks/support/v7/preference/src/android/support/v7/internal/widget/
DPreferenceImageView.java67 public void setMaxWidth(int maxWidth) { in setMaxWidth() argument
68 mMaxWidth = maxWidth; in setMaxWidth()
69 super.setMaxWidth(maxWidth); in setMaxWidth()
93 final int maxWidth = getMaxWidth(); in onMeasure() local
94 if (maxWidth != Integer.MAX_VALUE in onMeasure()
95 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
96 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java205 int maxWidth = widthSize; in onMeasure() local
212 if (lp.maxWidth > 0 && lp.maxWidth < maxWidth) { in onMeasure()
213 maxWidth = lp.maxWidth; in onMeasure()
222 maxWidth = Math.max(0, maxWidth - wPadding); in onMeasure()
231 final int childWidthSpec = makeChildMeasureSpec(maxWidth, lp.width); in onMeasure()
264 public int maxWidth; field in KeyguardSecurityViewFlipper.LayoutParams
276 maxWidth = other.maxWidth; in LayoutParams()
285 maxWidth = a.getDimensionPixelSize( in LayoutParams()
297 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.java63 int maxWidth = 0; in onMeasure() local
81 maxWidth = Math.max(maxWidth, childRight); in onMeasure()
87 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
92 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
94 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, 0), in onMeasure()
DFrameLayout.java179 int maxWidth = 0; in onMeasure() local
187 maxWidth = Math.max(maxWidth, in onMeasure()
202 maxWidth += getPaddingLeftWithForeground() + getPaddingRightWithForeground(); in onMeasure()
207 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
213 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
216 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
/frameworks/support/design/src/android/support/design/internal/
DBaselineLayout.java48 int maxWidth = 0; in onMeasure() local
66 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
76 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
78 View.resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
/frameworks/layoutlib/bridge/src/android/text/
DGreedyLineBreaker.java47 float maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks() local
71 if (printedWidth > maxWidth) { in computeBreaks()
79 maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks()
88 maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks()
113 maxWidth = mLineWidth.getLineWidth(lineNum); in computeBreaks()
123 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
128 if (i > goodBreakIndex && printedWidth <= maxWidth) { in computeBreaks()
136 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
DOptimizingLineBreaker.java73 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks() local
80 if (lineMetrics.mPrintedWidth <= maxWidth) { in computeBreaks()
81 float demerits = computeDemerits(maxWidth, lineMetrics.mPrintedWidth, in computeBreaks()
111 float maxWidth = mLineWidth.getLineWidth(lines); in computeBreaks() local
112 int breakIndex = desperateBreak(lastBreak, numBreaks, maxWidth, lineMetrics); in computeBreaks()
173 private static float computeDemerits(float maxWidth, float width, boolean finalBreak, in computeDemerits() argument
175 float deviation = finalBreak ? 0 : maxWidth - width; in computeDemerits()
183 private int desperateBreak(int start, int limit, float maxWidth, in desperateBreak() argument
201 if (pw > maxWidth && breakFound) { in desperateBreak()
/frameworks/base/media/java/android/media/tv/
DTvStreamConfig.java53 maxWidth(source.readInt()).
134 public Builder maxWidth(int maxWidth) { in maxWidth() method in TvStreamConfig.Builder
135 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/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPopup.java142 int maxWidth = 0; in measureIndividualMenuWidth() local
166 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
167 maxWidth = itemWidth; in measureIndividualMenuWidth()
171 return maxWidth; in measureIndividualMenuWidth()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java246 int maxWidth = 0; in onMeasure() local
254 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
262 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
267 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
269 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, measuredChildState), in onMeasure()
/frameworks/support/wear/src/android/support/wear/widget/
DBoxInsetLayout.java162 int maxWidth = 0; in onMeasure() local
195 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() + marginLeft + marginRight); in onMeasure()
202 maxWidth += getPaddingLeft() + mForegroundPadding.left + getPaddingRight() in onMeasure()
209 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
214 maxWidth = Math.max(maxWidth, mForegroundDrawable.getMinimumWidth()); in onMeasure()
217 int measuredWidth = resolveSizeAndState(maxWidth, widthMeasureSpec, childState); in onMeasure()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java127 public static Bitmap buildScaledBitmap(Drawable drawable, int maxWidth, in buildScaledBitmap() argument
135 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
145 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionBarOverlayLayout.java342 int maxWidth = 0;
350 maxWidth = Math.max(maxWidth,
402 maxWidth = Math.max(maxWidth,
409 maxWidth += getPaddingLeft() + getPaddingRight();
414 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
417 View.resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
DAlertDialogLayout.java183 int maxWidth = 0; in tryOnMeasure() local
187 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in tryOnMeasure()
191 maxWidth += getPaddingLeft() + getPaddingRight(); in tryOnMeasure()
194 maxWidth, widthMeasureSpec, childState); in tryOnMeasure()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DDisplayContentTests.java346 final int maxWidth = 300; in testMaxUiWidth() local
347 final int resultingHeight = (maxWidth * baseHeight) / baseWidth; in testMaxUiWidth()
348 final int resultingDensity = (maxWidth * baseDensity) / baseWidth; in testMaxUiWidth()
350 mDisplayContent.setMaxUiWidth(maxWidth); in testMaxUiWidth()
351 verifySizes(mDisplayContent, maxWidth, resultingHeight, resultingDensity); in testMaxUiWidth()
355 verifySizes(mDisplayContent, maxWidth, resultingHeight, resultingDensity); in testMaxUiWidth()
366 mDisplayContent.setMaxUiWidth(maxWidth); in testMaxUiWidth()

123