/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))
|
RenderEmbeddedObject.h | 71 bool getReplacementTextGeometry(int tx, int ty, FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth);
|
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);
|
RenderImage.cpp | 305 int textWidth = font.width(textRun); 307 if (usableWidth >= textWidth && fontMetrics.height() <= imageY) 309 } else if (usableWidth >= textWidth && cHeight >= fontMetrics.height())
|
RenderBlockLineLayout.cpp | [all...] |
/external/skia/gm/ |
bitmapcopy.cpp | 86 SkScalar textWidth = paint.measureText(name, strlen(name)); 87 if (textWidth > width) { 88 width = textWidth; 99 SkScalar textWidth = paint.measureText(name, strlen(name)); 100 SkScalar x = (width - textWidth) / SkScalar(2);
|
/external/skia/bench/ |
PicturePlaybackBench.cpp | 82 const SkScalar textWidth = paint.measureText(text, len); 84 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) { 107 const SkScalar textWidth = paint.measureText(text, len); 112 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) {
|
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureFloatingPreviewText.java | 157 final float textWidth = mParams.getTextPaint().measureText(text); 160 final float rectWidth = textWidth + hPad * 2.0f; 171 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f);
|
/cts/tests/tests/text/src/android/text/cts/ |
TextUtilsTest.java | 90 float textWidth = p.measureText("long, 3 plus"); 95 TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString()); 98 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString()); 101 textWidth = p.measureText("long, string, 2 more"); 103 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 106 textWidth = p.measureText("long, string, to, truncate"); 108 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 112 text + "-extended", p, textWidth, "more 1", "%d more").toString()); 121 text + "-extended", p, textWidth, null, "%d more").toString()); 124 TextUtils.commaEllipsize(null, p, textWidth, "plus 1", "%d plus") [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 111 int textWidth = Math.round(paint.measureText(text)); 112 while (textWidth < screenWidth) { 114 textWidth = Math.round(paint.measureText(text)); 118 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
CategoryView.java | 80 float textWidth = mPaint.measureText(text); 82 int x = (int) (canvas.getWidth() - textWidth - sMargin);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
FramedTextButton.java | 127 float textWidth = gPaint.measureText(mText); 130 int x = (int) ((w - textWidth) / 2);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
StrokedTextView.java | 97 final int textWidth = (int) textPaint.measureText(text); 117 final int left = w - getPaddingRight() - textWidth;
|
/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);
|
/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;
|
/frameworks/base/libs/hwui/font/ |
Font.cpp | 306 float textWidth = SkScalarToFloat(paint->measureText(text, len)); 309 textWidth *= 0.5f; 312 penX += pathOffset - textWidth;
|
/bootable/recovery/ |
screen_ui.cpp | 121 int textWidth = gr_get_width(text_surface); 127 int textX = (gr_fb_width() - textWidth) / 2;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ShortcutIntentBuilder.java | 404 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); 405 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize
|
/frameworks/base/core/java/android/text/ |
StaticLayout.java | 592 float ellipsisWidth, float textWidth, 704 textWidth, paint, forceEllipsis); 715 int line, float textWidth, TextPaint paint, 717 if (textWidth <= avail && !forceEllipsis) { [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
MainKeyboardView.java | [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageShow.java | 273 float textWidth = paint.measureText(mToast); 274 int toastX = (int) ((getWidth() - textWidth) / 2.0f);
|
/frameworks/base/core/java/android/widget/ |
NumberPicker.java | [all...] |
TextView.java | [all...] |