Home
last modified time | relevance | path

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

12

/packages/apps/VideoEditor/src/com/android/videoeditor/util/
DImageUtils.java316 final int maxWidth = width - (2 * INSET) - (2 * titleFontSize); in drawCenterOverlay() local
320 title = StringUtils.trimText(title, p, maxWidth); in drawCenterOverlay()
327 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawCenterOverlay()
358 final int maxWidth = width - (2 * INSET) - (2 * titleFontSize); in drawBottomOverlay() local
362 title = StringUtils.trimText(title, p, maxWidth); in drawBottomOverlay()
369 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawBottomOverlay()
437 final int maxWidth = width - (2 * INSET) - (2 * titleFontSize); in drawOverlayPreview() local
441 title = StringUtils.trimText(title, p, maxWidth); in drawOverlayPreview()
448 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawOverlayPreview()
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DTargetDrawable.java126 int maxWidth = 0; in resizeDrawables() local
132 maxWidth = Math.max(maxWidth, childDrawable.getIntrinsicWidth()); in resizeDrawables()
137 + maxWidth + "x" + maxHeight); in resizeDrawables()
138 d.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
144 + maxWidth + "x" + maxHeight); in resizeDrawables()
145 childDrawable.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
DGlowPadView.java580 int maxWidth = mHandleDrawable.getWidth(); in internalSetTargetResources() local
585 maxWidth = Math.max(maxWidth, target.getWidth()); in internalSetTargetResources()
588 if (mMaxTargetWidth != maxWidth || mMaxTargetHeight != maxHeight) { in internalSetTargetResources()
589 mMaxTargetWidth = maxWidth; in internalSetTargetResources()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTargetDrawable.java126 int maxWidth = 0; in resizeDrawables() local
132 maxWidth = Math.max(maxWidth, childDrawable.getIntrinsicWidth()); in resizeDrawables()
137 + maxWidth + "x" + maxHeight); in resizeDrawables()
138 d.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
144 + maxWidth + "x" + maxHeight); in resizeDrawables()
145 childDrawable.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
DGlowPadView.java608 int maxWidth = mHandleDrawable.getWidth(); in internalSetTargetResources() local
613 maxWidth = Math.max(maxWidth, target.getWidth()); in internalSetTargetResources()
616 if (mMaxTargetWidth != maxWidth || mMaxTargetHeight != maxHeight) { in internalSetTargetResources()
617 mMaxTargetWidth = maxWidth; in internalSetTargetResources()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java399 private int getSuggestionWidth(final int positionInStrip, final int maxWidth) { in getSuggestionWidth() argument
402 final int availableWidth = maxWidth - paddings - dividers; in getSuggestionWidth()
526 private static float getTextScaleX(final CharSequence text, final int maxWidth, in getTextScaleX() argument
530 if (width <= maxWidth) { in getTextScaleX()
533 return maxWidth / (float)width; in getTextScaleX()
536 private static CharSequence getEllipsizedText(final CharSequence text, final int maxWidth, in getEllipsizedText() argument
541 final float scaleX = getTextScaleX(text, maxWidth, paint); in getEllipsizedText()
549 final float upscaledWidth = maxWidth / MIN_TEXT_XSCALE; in getEllipsizedText()
DMoreSuggestions.java64 final int maxWidth, final int minWidth, final int maxRow, final Paint paint, in layout() argument
81 (maxWidth - mDividerWidth * (numColumn - 1)) / numColumn; in layout()
186 final int maxWidth, final int minWidth, final int maxRow, in layout() argument
193 final int count = mParams.layout(suggestedWords, fromIndex, maxWidth, minWidth, maxRow, in layout()
DSuggestionStripView.java217 final int maxWidth = stripWidth - container.getPaddingLeft() - container.getPaddingRight(); in showMoreSuggestions() local
219 builder.layout(mSuggestedWords, layoutHelper.mSuggestionsCountInStrip, maxWidth, in showMoreSuggestions()
220 (int)(maxWidth * layoutHelper.mMinMoreSuggestionsWidth), in showMoreSuggestions()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DFolderSpan.java88 final int maxWidth = mDims.getMaxWidth(); in measureWidth() local
95 if (w > maxWidth) { in measureWidth()
96 w = maxWidth; in measureWidth()
108 final int maxWidth = mDims.getMaxWidth(); in draw() local
135 if (bgWidth == maxWidth) { in draw()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSharePopup.java171 float maxWidth = mPreviewFrame.getWidth() - hPaddingRootView; in setOrientation() local
175 float temp = maxWidth; in setOrientation()
176 maxWidth = maxHeight; in setOrientation()
179 float actualAspect = maxWidth / maxHeight; in setOrientation()
194 params.width = Math.round(maxWidth); in setOrientation()
195 params.height = Math.round(maxWidth / desiredAspect); in setOrientation()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java469 int maxWidth = maxWidthForWidgetPreview(cellSpans[0]); in generateWidgetPreview() local
472 cellSpans[0], cellSpans[1], maxWidth, maxHeight, preview, null); in generateWidgetPreview()
601 ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument
605 tempBitmap.getWidth() != maxWidth || in generateShortcutPreview()
607 tempBitmap = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
624 int scaledIconWidth = (maxWidth - paddingLeft - paddingRight); in generateShortcutPreview()
630 (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight)) { in generateShortcutPreview()
633 preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
DPagedViewWidget.java119 int maxWidth, int[] cellSpan, WidgetPreviewLoader loader) { in applyFromAppWidgetProviderInfo() argument
126 if (maxWidth > -1) { in applyFromAppWidgetProviderInfo()
127 image.setMaxWidth(maxWidth); in applyFromAppWidgetProviderInfo()
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java425 int maxWidth = maxWidthForWidgetPreview(cellSpans[0]); in generateWidgetPreview() local
428 cellSpans[0], cellSpans[1], maxWidth, maxHeight, preview, null); in generateWidgetPreview()
557 ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument
561 tempBitmap.getWidth() != maxWidth || in generateShortcutPreview()
563 tempBitmap = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
580 int scaledIconWidth = (maxWidth - paddingLeft - paddingRight); in generateShortcutPreview()
586 (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight)) { in generateShortcutPreview()
589 preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
DPagedViewWidget.java108 int maxWidth, int[] cellSpan, WidgetPreviewLoader loader) { in applyFromAppWidgetProviderInfo() argument
112 if (maxWidth > -1) { in applyFromAppWidgetProviderInfo()
113 image.setMaxWidth(maxWidth); in applyFromAppWidgetProviderInfo()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.java112 int maxWidth = ellipsizeView.getMeasuredWidth() - (totalLength - parentWidth); in onMeasure() local
115 if (maxWidth < minWidth) { in onMeasure()
116 maxWidth = minWidth; in onMeasure()
118 ellipsizeView.setMaxWidth(maxWidth); in onMeasure()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java324 int maxWidth = minKeyWidth; in getMaxKeyWidth() local
329 maxWidth = Math.max(maxWidth, in getMaxKeyWidth()
333 return maxWidth; in getMaxKeyWidth()
/packages/apps/Settings/src/com/android/settings/
DKeyguardAppWidgetPickActivity.java301 int iconId, int maxWidth, int maxHeight) { in getWidgetPreview() argument
304 if (maxWidth < 0) maxWidth = Integer.MAX_VALUE; in getWidgetPreview()
348 if (bitmapWidth > maxWidth) { in getWidgetPreview()
349 scale = maxWidth / (float) bitmapWidth; in getWidgetPreview()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DCandidateTextView.java71 …ateTextView(Context context, int candidateMinimumHeight, int candidateMinimumWidth, int maxWidth) { in CandidateTextView() argument
84 mMaxWidth = maxWidth; in CandidateTextView()
85 mChangeFontSize = maxWidth - CHANGE_FONTSIZE_WIDTH; in CandidateTextView()
DTextCandidatesViewManager.java882 int maxWidth = mViewWidth; in setCandidate() local
956 maxWidth -= getCandidateMinimumWidth(); in setCandidate()
959 if ((maxWidth < nextEnd) && (getWordCount() != 0)) { in setCandidate()
1034 if (maxWidth < textLength) { in setCandidate()
/packages/apps/Browser/src/com/android/browser/
DWallpaperHandler.java107 int maxWidth = wm.getDesiredMinimumWidth(); in run() local
110 maxWidth *= 1.25; in run()
116 while (bmWidth > maxWidth || bmHeight > maxHeight) { in run()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DBalloonHint.java418 int maxWidth = Environment.getInstance().getScreenWidth() - in onMeasure() local
420 if (measuredWidth > maxWidth) { in onMeasure()
421 measuredWidth = maxWidth; in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DMultiLineTexture.java39 String text, int maxWidth, float textSize, int color, in newInstance() argument
43 maxWidth, alignment, 1, 0, true, null, 0); in newInstance()
/packages/apps/Camera2/src/com/android/camera/ui/
DSwitch.java190 private Layout makeLayout(CharSequence text, int maxWidth) { in makeLayout() argument
196 (int) Math.min(actual_width, maxWidth)); in makeLayout()
/packages/apps/Camera/src/com/android/camera/ui/
DSwitch.java199 private Layout makeLayout(CharSequence text, int maxWidth) { in makeLayout() argument
205 (int) Math.min(actual_width, maxWidth)); in makeLayout()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DMasterImage.java559 float maxWidth = mOriginalBounds.width() / (float) w; in setImageShowSize() local
561 mMaxScaleFactor = Math.max(3.f, Math.max(maxWidth, maxHeight)); in setImageShowSize()

12