HomeSort by relevance Sort by last modified time
    Searched defs:textWidth (Results 1 - 25 of 26) sorted by null

1 2

  /external/skia/gm/
bitmapcopy.cpp 90 SkScalar textWidth = paint.measureText(name, strlen(name));
91 if (textWidth > width) {
92 width = textWidth;
103 SkScalar textWidth = paint.measureText(name, strlen(name));
104 SkScalar x = (width - textWidth) / SkScalar(2);
  /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);
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderFileUploadControl.cpp 125 float textWidth = font.width(textRun);
130 textX = contentLeft + contentWidth() - buttonAndSpacingWidth - textWidth;
142 textWidth,
RenderEmbeddedObject.cpp 159 float textWidth;
160 if (!getReplacementTextGeometry(paintOffset, contentRect, path, replacementTextRect, font, run, textWidth))
170 float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2);
179 bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) const
196 textWidth = font.width(run);
198 replacementTextRect.setSize(FloatSize(textWidth + replacementTextRoundedRectLeftRightTextMargin * 2, replacementTextRoundedRectHeight));
RenderImage.cpp 347 LayoutUnit textWidth = font.width(textRun);
349 textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height()));
352 if (usableWidth >= textWidth && fontMetrics.height() <= imageOffset.height())
354 } else if (usableWidth >= textWidth && usableHeight >= fontMetrics.height())
TextAutosizer.cpp 164 float TextAutosizer::clusterMultiplier(WritingMode writingMode, const TextAutosizingWindowInfo& windowInfo, float textWidth) const
169 float logicalClusterWidth = std::min<float>(textWidth, logicalLayoutWidth);
193 float textWidth = clusterInfo.blockContainingAllText->contentLogicalWidth();
195 if (clusterShouldBeAutosized(clusterInfo, textWidth))
196 multiplier = clusterMultiplier(clusterInfo.root->style()->writingMode(), windowInfo, textWidth);
544 void TextAutosizer::measureDescendantTextWidth(const RenderBlock* container, TextAutosizingClusterInfo& clusterInfo, float minTextWidth, float& textWidth)
551 textWidth += toRenderText(descendant)->renderedTextLength() * descendant->style()->specifiedFontSize();
555 measureDescendantTextWidth(descendantBlock, clusterInfo, minTextWidth, textWidth);
557 if (textWidth >= minTextWidth)
RenderListBox.cpp 139 float textWidth = itemFont.width(textRun);
140 width = max(width, textWidth);
375 float textWidth = itemFont.width(textRun);
376 offset.setWidth(itemBoudingBox.width() - textWidth - optionsSpacingHorizontal);
378 float textWidth = itemFont.width(textRun);
379 offset.setWidth((itemBoudingBox.width() - textWidth) / 2);
RenderBlockLineLayout.cpp     [all...]
  /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;
  /frameworks/base/libs/hwui/font/
Font.cpp 311 float textWidth = SkScalarToFloat(paint->measureText(text, len));
314 textWidth *= 0.5f;
317 penX += pathOffset - textWidth;
  /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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
GestureFloatingPreviewText.java 155 final float textWidth = mParams.getTextPaint().measureText(text);
158 final float rectWidth = textWidth + hPad * 2.0f;
169 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f);
  /bootable/recovery/
screen_ui.cpp 121 int textWidth = gr_get_width(text_surface);
127 int textX = (gr_fb_width() - 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/Gallery2/src/com/android/gallery3d/filtershow/category/
IconView.java 101 float textWidth = mPaint.measureText(text);
102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin);
104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f);
  /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/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
  /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...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
MainKeyboardView.java     [all...]
  /frameworks/base/core/java/android/widget/
NumberPicker.java     [all...]
TextView.java     [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.ui.forms_3.5.2.r36_v20100702.jar 
org.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jar 
org.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jar 

Completed in 486 milliseconds

1 2