/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 | 52 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()
|
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 | 218 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()
|
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() 259 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mTextPaint, maxWidth) in computeMeasurements()
|
D | ActionBarOverlayLayout.java | 377 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),
|
D | AlertDialogLayout.java | 196 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/ |
D | KeyguardSecurityViewFlipper.java | 213 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/ |
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 | 64 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()
|
D | FrameLayout.java | 188 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/ |
D | GreedyLineBreaker.java | 44 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()
|
D | OptimizingLineBreaker.java | 76 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/ |
D | GlobalActionsPopupMenu.java | 100 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/ |
D | TvStreamConfig.java | 55 maxWidth(source.readInt()). 137 public Builder maxWidth(int maxWidth) { in maxWidth() method in TvStreamConfig.Builder 138 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/base/core/java/android/app/ |
D | FragmentBreadCrumbs.java | 249 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/ |
D | FillContentLayout.java | 44 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/ |
D | android_text_AndroidCharacter.cpp | 127 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/ |
D | FrameworkActionBar.java | 195 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/ |
D | ImageUtils.java | 138 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/ |
D | FillContentLayoutTest.java | 58 .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/ |
D | QSDualTileLabel.java | 160 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/ |
D | Mpeg4H263DecoderTest.cpp | 157 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()
|