/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);
|
/external/webkit/Source/WebCore/platform/graphics/chromium/cc/ |
CCHeadsUpDisplay.cpp | 168 float textWidth = m_mediumFont->width(run) + 2.0f; 173 ctx->fillRect(FloatRect(2, top, textWidth + graphWidth, height)); 186 int graphLeft = static_cast<int>(textWidth + 3);
|
/frameworks/base/core/java/com/android/internal/widget/ |
TextProgressBar.java | 157 int textWidth = mChronometer.getWidth(); 159 adjustLeft = -textWidth; 161 adjustLeft = -(textWidth / 2); 166 int rightLimit = contentWidth - params.rightMargin - textWidth;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ManageCacheDrawer.java | 122 int textWidth = mCachingText.getWidth(); 125 x = right - mCachePinMargin - (textWidth + mCachePinSize) / 2;
|
/external/webkit/Source/WebCore/rendering/ |
RenderEmbeddedObject.cpp | 165 float textWidth; 166 if (!getReplacementTextGeometry(tx, ty, contentRect, path, replacementTextRect, font, run, textWidth)) 176 float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2); 184 bool RenderEmbeddedObject::getReplacementTextGeometry(int tx, int ty, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) 202 textWidth = font.width(run); 204 replacementTextRect.setSize(FloatSize(textWidth + replacementTextRoundedRectLeftRightTextMargin * 2, replacementTextRoundedRectHeight)); 260 float textWidth; 261 if (!getReplacementTextGeometry(0, 0, contentRect, path, replacementTextRect, font, run, textWidth))
|
RenderImage.cpp | 305 int textWidth = font.width(textRun); 307 if (usableWidth >= textWidth && fontMetrics.height() <= imageY) 309 } else if (usableWidth >= textWidth && cHeight >= fontMetrics.height())
|
RenderListBox.cpp | 120 float textWidth = itemFont.width(TextRun(text.impl(), false, 0, 0, TextRun::AllowTrailingExpansion, false, false)); 121 width = max(width, textWidth); 348 float textWidth = itemFont.width(textRun); 349 offset.setWidth(itemBoudingBox.width() - textWidth - optionsSpacingHorizontal); 351 float textWidth = itemFont.width(textRun); 352 offset.setWidth((itemBoudingBox.width() - textWidth) / 2);
|
RenderBlockLineLayout.cpp | [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
StrokedTextView.java | 98 final int textWidth = (int) textPaint.measureText(text); 118 final int left = w - getPaddingRight() - textWidth;
|
/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;
|
/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;
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ShortcutIntentBuilder.java | 386 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); 387 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
LatinKeyboard.java | 218 int textWidth = getTextWidth(paint, language, origTextSize, bounds); 220 float textSize = origTextSize * Math.min(width / textWidth, 1.0f); 222 textWidth = getTextWidth(paint, language, textSize, bounds); 225 || (textWidth > width); 230 textWidth = getTextWidth(paint, language, origTextSize, bounds); 231 textSize = origTextSize * Math.min(width / textWidth, 1.0f); 233 || (textWidth > width); 240 textWidth = getTextWidth(paint, language, origTextSize, bounds); 241 textSize = origTextSize * Math.min(width / textWidth, 1.0f);
|
/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...] |
/frameworks/base/core/java/android/widget/ |
NumberPicker.java | [all...] |
TextView.java | [all...] |