/external/skia/bench/ |
PicturePlaybackBench.cpp | 81 const SkScalar textWidth = paint.measureText(text, len); 83 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) { 106 const SkScalar textWidth = paint.measureText(text, len); 111 for (SkScalar x = 0; x < fPictureWidth; x += textWidth) {
|
/external/skia/gm/ |
bitmapcopy.cpp | 89 SkScalar textWidth = paint.measureText(name, strlen(name)); 90 if (textWidth > width) { 91 width = textWidth; 102 SkScalar textWidth = paint.measureText(name, strlen(name)); 103 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/ |
RenderEmbeddedObject.cpp | 144 float textWidth; 145 if (!getReplacementTextGeometry(paintOffset, contentRect, path, replacementTextRect, font, run, textWidth)) 155 float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2); 164 bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) const 181 textWidth = font.width(run); 183 replacementTextRect.setSize(FloatSize(textWidth + replacementTextRoundedRectLeftRightTextMargin * 2, replacementTextRoundedRectHeight));
|
RenderFileUploadControl.cpp | 119 float textWidth = font.width(textRun); 124 textX = contentLeft + contentWidth() - buttonAndSpacingWidth - textWidth; 136 textWidth,
|
RenderImage.cpp | 364 LayoutUnit textWidth = font.width(textRun); 366 textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height())); 369 if (usableWidth >= textWidth && fontMetrics.height() <= imageOffset.height()) 371 } else if (usableWidth >= textWidth && usableHeight >= fontMetrics.height())
|
TextAutosizer.cpp | 172 float TextAutosizer::clusterMultiplier(WritingMode writingMode, const TextAutosizingWindowInfo& windowInfo, float textWidth) const 177 float logicalClusterWidth = std::min<float>(textWidth, logicalLayoutWidth); 210 float textWidth = clusterInfo.blockContainingAllText->contentLogicalWidth(); 212 if (clusterShouldBeAutosized(clusterInfo, textWidth)) 213 multiplier = clusterMultiplier(clusterInfo.root->style()->writingMode(), windowInfo, textWidth); 567 void TextAutosizer::measureDescendantTextWidth(const RenderBlock* container, TextAutosizingClusterInfo& clusterInfo, float minTextWidth, float& textWidth) 574 textWidth += toRenderText(descendant)->renderedTextLength() * descendant->style()->specifiedFontSize(); 578 measureDescendantTextWidth(descendantBlock, clusterInfo, minTextWidth, textWidth); 580 if (textWidth >= minTextWidth)
|
RenderListBox.cpp | 139 float textWidth = itemFont.width(textRun); 140 width = max(width, textWidth); 382 float textWidth = itemFont.width(textRun); 383 offset.setWidth(itemBoudingBox.width() - textWidth - optionsSpacingHorizontal); 385 float textWidth = itemFont.width(textRun); 386 offset.setWidth((itemBoudingBox.width() - textWidth) / 2);
|
/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 | 312 float textWidth = SkScalarToFloat(paint->measureText(text, len)); 315 textWidth *= 0.5f; 318 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 | 123 int textWidth = gr_get_width(text_surface); 132 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 | 416 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); 417 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/line/ |
BreakingContextInlineHeaders.h | 701 ALWAYS_INLINE float textWidth(RenderText* text, unsigned from, unsigned len, const Font& font, float xPos, bool isFixedPitch, bool collapseWhiteSpace, HashSet<const SimpleFontData*>* fallbackFonts = 0, TextLayout* layout = 0) [all...] |
/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 | |