HomeSort by relevance Sort by last modified time
    Searched refs:textWidth (Results 1 - 14 of 14) sorted by null

  /frameworks/base/core/java/com/android/internal/widget/
TextProgressBar.java 156 int textWidth = mChronometer.getWidth();
158 adjustLeft = -textWidth;
160 adjustLeft = -(textWidth / 2);
165 int rightLimit = contentWidth - params.rightMargin - textWidth;
  /cts/tests/tests/text/src/android/text/cts/
TextUtilsTest.java 96 float textWidth = p.measureText("long, 3 plus");
101 TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString());
104 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString());
107 textWidth = p.measureText("long, string, 2 more");
109 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString());
112 textWidth = p.measureText("long, string, to, truncate");
114 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString());
118 text + "-extended", p, textWidth, "more 1", "%d more").toString());
127 text + "-extended", p, textWidth, null, "%d more").toString());
130 TextUtils.commaEllipsize(null, p, textWidth, "plus 1", "%d plus")
    [all...]
  /cts/tests/tests/text/src/android/text/method/cts/
TouchTest.java 141 int textWidth = Math.round(paint.measureText(text));
142 while (textWidth < screenWidth) {
144 textWidth = Math.round(paint.measureText(text));
148 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
LatinKeyboard.java 517 int textWidth = getTextWidth(paint, language, origTextSize, bounds);
519 float textSize = origTextSize * Math.min(maxTextWidth / textWidth, 1.0f);
523 textWidth = getTextWidth(paint, language, textSize, bounds);
526 || textWidth > maxTextWidth;
528 useShortName = textWidth > maxTextWidth;
533 textWidth = getTextWidth(paint, language, origTextSize, bounds);
534 textSize = origTextSize * Math.min(maxTextWidth / textWidth, 1.0f);
541 final float remains = (width - textWidth) / 2;
543 rArrow.setBounds((int)(remains + textWidth), top, (int)(remains + textWidth + arrowWidth)
    [all...]
CandidateView.java 253 float textWidth = paint.measureText(suggestion, 0, wordLength);
254 wordWidth = Math.max(mMinTouchableWidth, (int) textWidth + X_GAP * 2);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
LabelMaker.java 197 int textWidth = Math.min(mStrikeWidth,measuredTextWidth);
202 int width = Math.max(minWidth, textWidth + padWidth);
207 int centerOffsetWidth = (effectiveTextWidth - textWidth) / 2;
  /development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
CandidateView.java 183 float textWidth = paint.measureText(suggestion);
184 final int wordWidth = (int) textWidth + X_GAP * 2;
  /packages/apps/Gallery3D/src/com/cooliris/media/
GridDrawManager.java     [all...]
GridDrawables.java 115 float textWidth = (seedTextWidth / (float) itemWidth) * width;
119 sTextGrid = GridQuad.createGridQuad(textWidth, textHeight, 0, textOffsetY, 1.0f, 1.0f, false);
  /external/webkit/WebCore/rendering/
RenderImage.cpp 419 int textWidth = font.width(textRun);
421 if (usableWidth >= textWidth && font.height() <= imageY)
423 } else if (usableWidth >= textWidth && cHeight >= font.height())
SVGRootInlineBox.cpp 589 int textWidth = 0;
614 textWidth = styleToUse->font().width(svgTextRunForInlineTextBox(stringStart, stringLength, styleToUse, textBox, (*it).x));
619 if (textDecorations & UNDERLINE && textWidth != 0.0f)
620 textBox->paintDecoration(UNDERLINE, m_paintInfo.context, decorationOrigin.x(), decorationOrigin.y(), textWidth, *it, info);
622 if (textDecorations & OVERLINE && textWidth != 0.0f)
623 textBox->paintDecoration(OVERLINE, m_paintInfo.context, decorationOrigin.x(), decorationOrigin.y(), textWidth, *it, info);
630 if (textDecorations & LINE_THROUGH && textWidth != 0.0f)
631 textBox->paintDecoration(LINE_THROUGH, m_paintInfo.context, decorationOrigin.x(), decorationOrigin.y(), textWidth, *it, info);
    [all...]
RenderBlockLineLayout.cpp     [all...]
RenderListBox.cpp 118 float textWidth = itemFont.floatWidth(TextRun(text.impl(), 0, 0, 0, false, false, false, false));
119 width = max(width, textWidth);
  /frameworks/base/core/java/android/widget/
TextView.java     [all...]

Completed in 980 milliseconds