/frameworks/base/core/java/com/android/internal/widget/ |
D | DialogViewAnimator.java | 48 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()
|
D | PreferenceImageView.java | 50 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()
|
D | WatchListDecorLayout.java | 168 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()
|
D | NumericTextView.java | 216 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()
|
D | ActionBarOverlayLayout.java | 372 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),
|
D | SubtitleView.java | 242 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()
|
D | AlertDialogLayout.java | 194 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/ |
D | PreferenceImageView.java | 67 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/ |
D | KeyguardSecurityViewFlipper.java | 205 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/ |
D | DayPickerViewPager.java | 64 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()
|
D | AbsoluteLayout.java | 63 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()
|
D | FrameLayout.java | 179 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/ |
D | BaselineLayout.java | 48 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/ |
D | GreedyLineBreaker.java | 47 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()
|
D | OptimizingLineBreaker.java | 73 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/ |
D | TvStreamConfig.java | 53 maxWidth(source.readInt()). 134 public Builder maxWidth(int maxWidth) { in maxWidth() method in TvStreamConfig.Builder 135 mMaxWidth = maxWidth; in maxWidth()
|
/frameworks/av/cmds/screenrecord/ |
D | TextRenderer.cpp | 272 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/ |
D | MenuPopup.java | 140 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/ |
D | MenuPopup.java | 142 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/ |
D | FragmentBreadCrumbs.java | 246 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/ |
D | BoxInsetLayout.java | 162 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/ |
D | ImageUtils.java | 127 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/ |
D | ActionBarOverlayLayout.java | 342 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),
|
D | AlertDialogLayout.java | 183 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/ |
D | DisplayContentTests.java | 346 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()
|