Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DTargetDrawable.java156 int maxWidth = 0; in resizeDrawables() local
162 maxWidth = Math.max(maxWidth, childDrawable.getIntrinsicWidth()); in resizeDrawables()
167 + maxWidth + "x" + maxHeight); in resizeDrawables()
168 d.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
174 + maxWidth + "x" + maxHeight); in resizeDrawables()
175 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/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.java61 int maxWidth = ellipView.getMeasuredWidth() - (totalLength - parentWidth); in onMeasure() local
64 if (maxWidth < minWidth) { in onMeasure()
65 maxWidth = minWidth; in onMeasure()
67 ellipView.setMaxWidth(maxWidth); in onMeasure()
/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/Gallery2/src/com/android/gallery3d/ui/
DMultiLineTexture.java38 String text, int maxWidth, float textSize, int color, in newInstance() argument
42 maxWidth, alignment, 1, 0, true, null, 0); in newInstance()
/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/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/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java55 public int layout(final SuggestedWords suggestions, final int fromPos, final int maxWidth, in layout() argument
74 (maxWidth - mDividerWidth * (numColumn - 1)) / numColumn; in layout()
179 final int maxWidth, final int minWidth, final int maxRow) { in layout() argument
186 final int count = mParams.layout(suggestions, fromPos, maxWidth, minWidth, maxRow, in layout()
DSuggestionStripView.java421 private int getSuggestionWidth(int index, int maxWidth) { in getSuggestionWidth() argument
424 final int availableWidth = maxWidth - paddings - dividers; in getSuggestionWidth()
528 private static float getTextScaleX(CharSequence text, int maxWidth, TextPaint paint) { in getTextScaleX() argument
531 if (width <= maxWidth) { in getTextScaleX()
534 return maxWidth / (float)width; in getTextScaleX()
537 private static CharSequence getEllipsizedText(CharSequence text, int maxWidth, in getEllipsizedText() argument
542 if (width <= maxWidth) { in getEllipsizedText()
545 final float scaleX = maxWidth / (float)width; in getEllipsizedText()
554 text, paint, maxWidth / MIN_TEXT_XSCALE, TextUtils.TruncateAt.MIDDLE); in getEllipsizedText()
758 final int maxWidth = stripWidth - container.getPaddingLeft() in showMoreSuggestions() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGesturePreviewTrail.java251 float maxWidth = getWidth(lastTime, params); in drawGestureTrail() local
252 w.r1 = maxWidth / 2.0f; in drawGestureTrail()
271 maxWidth = Math.max(maxWidth, width); in drawGestureTrail()
279 final int inset = -((int)maxWidth + 1); in drawGestureTrail()
/packages/apps/Email/src/com/android/email/view/
DSizeBoundingFrameLayout.java60 public void setMaxWidth(int maxWidth) { in setMaxWidth() argument
61 mMaxWidth = maxWidth; in setMaxWidth()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewWidget.java100 int maxWidth, int[] cellSpan) { in applyFromAppWidgetProviderInfo() argument
103 if (maxWidth > -1) { in applyFromAppWidgetProviderInfo()
104 image.setMaxWidth(maxWidth); in applyFromAppWidgetProviderInfo()
DAppsCustomizePagedView.java788 int maxWidth, maxHeight; in beginDraggingWidget() local
789 maxWidth = Math.min((int) (previewDrawable.getIntrinsicWidth() * minScale), size[0]); in beginDraggingWidget()
792 createWidgetInfo.icon, spanX, spanY, maxWidth, maxHeight); in beginDraggingWidget()
1235 private Bitmap getShortcutPreview(ResolveInfo info, int maxWidth, int maxHeight) { in getShortcutPreview() argument
1239 tempBitmap.getWidth() != maxWidth || in getShortcutPreview()
1241 tempBitmap = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in getShortcutPreview()
1258 int scaledIconWidth = (maxWidth - paddingLeft - paddingRight); in getShortcutPreview()
1263 Bitmap preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in getShortcutPreview()
1285 int iconId, int cellHSpan, int cellVSpan, int maxWidth, in getWidgetPreview() argument
1289 if (maxWidth < 0) maxWidth = Integer.MAX_VALUE; in getWidgetPreview()
[all …]
DPagedView.java752 final int maxWidth = (minWidth > measuredWidth) ? minWidth : measuredWidth; in getScaledMeasuredWidth() local
753 return (int) (maxWidth * mLayoutScale + 0.5f); in getScaledMeasuredWidth()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java316 int maxWidth = minKeyWidth; in getMaxKeyWidth() local
322 if (maxWidth < width) { in getMaxKeyWidth()
323 maxWidth = width; in getMaxKeyWidth()
327 return maxWidth; in getMaxKeyWidth()
/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/Settings/src/com/android/settings/
DKeyguardAppWidgetPickActivity.java297 int iconId, int maxWidth, int maxHeight) { in getWidgetPreview() argument
300 if (maxWidth < 0) maxWidth = Integer.MAX_VALUE; in getWidgetPreview()
344 if (bitmapWidth > maxWidth) { in getWidgetPreview()
345 scale = maxWidth / (float) bitmapWidth; in getWidgetPreview()
/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/Calendar/src/com/android/calendar/
DDayView.java2743 int maxWidth = (int) (maxWidthF + 0.5); in computeMaxStringWidth() local
2744 if (maxWidth < currentMax) { in computeMaxStringWidth()
2745 maxWidth = currentMax; in computeMaxStringWidth()
2747 return maxWidth; in computeMaxStringWidth()