/external/chromium_org/third_party/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/chromium_org/third_party/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);
|
/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 | 87 SkScalar textWidth = paint.measureText(name, strlen(name)); 88 if (textWidth > width) { 89 width = textWidth; 100 SkScalar textWidth = paint.measureText(name, strlen(name)); 101 SkScalar x = (width - textWidth) / SkScalar(2);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListPinnedHeaderView.java | 48 int textWidth = getResources().getDimensionPixelSize( 50 int widthIncludingPadding = paddingStartOffset + textWidth;
|
ShortcutIntentBuilder.java | 398 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); 399 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 115 int textWidth = Math.round(paint.measureText(text)); 116 while (textWidth < screenWidth) { 118 textWidth = Math.round(paint.measureText(text)); 122 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
|
/external/chromium_org/third_party/WebKit/Source/core/paint/ |
ImagePainter.cpp | 135 float textWidth = font.width(textRun); 137 textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height())); 141 textOrigin.move(availableWidth - ceilf(textWidth), 0); 144 if (usableWidth >= textWidth && fontMetrics.height() <= imageOffset.height()) 146 } else if (usableWidth >= textWidth && usableHeight >= fontMetrics.height()) {
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderEmbeddedObject.cpp | 138 float textWidth; 139 if (!getReplacementTextGeometry(paintOffset, contentRect, path, replacementTextRect, font, run, textWidth)) 150 float labelX = roundf(replacementTextRect.location().x() + (replacementTextRect.size().width() - textWidth) / 2); 159 bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) const 176 textWidth = font.width(run); 178 replacementTextRect.setSize(FloatSize(textWidth + replacementTextRoundedRectLeftRightTextMargin * 2, replacementTextRoundedRectHeight));
|
RenderFileUploadControl.cpp | 119 float textWidth = font.width(textRun); 124 textX = contentLeft + contentWidth() - buttonAndSpacingWidth - textWidth; 136 textWidth, style()->fontMetrics().height());
|
/frameworks/base/core/java/com/android/internal/widget/ |
TextProgressBar.java | 160 int textWidth = mChronometer.getWidth(); 162 adjustLeft = -textWidth; 164 adjustLeft = -(textWidth / 2); 169 int rightLimit = contentWidth - params.rightMargin - textWidth;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
CountDownView.java | 109 int textWidth = mRemainingSecondsView.getMeasuredWidth(); 113 mRemainingSecondsView.setTranslationX(mPreviewArea.centerX() - textWidth / 2); 115 mRemainingSecondsView.setPivotX(textWidth / 2);
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
DragImage.cpp | 192 float textWidth = labelFont.width(textRun); 194 textPos.setX(availableWidth - ceilf(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/ |
GestureFloatingTextDrawingPreview.java | 160 final float textWidth = mParams.getTextPaint().measureText(text); 163 final float rectWidth = textWidth + hPad * 2.0f; 173 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f);
|
/bootable/recovery/ |
screen_ui.cpp | 104 int textWidth = gr_get_width(text_surface); 113 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;
|
/external/chromium_org/third_party/skia/experimental/PdfViewer/ |
SkPdfFont.h | 278 SkScalar textWidth = paint->measureText(utf8, len); 279 return SkScalarToDouble(textWidth);
|
/external/skia/experimental/PdfViewer/ |
SkPdfFont.h | 278 SkScalar textWidth = paint->measureText(utf8, len); 279 return SkScalarToDouble(textWidth);
|
/frameworks/base/libs/hwui/font/ |
Font.cpp | 325 float textWidth = SkScalarToFloat(paint->measureText(text, len)); 328 textWidth *= 0.5f; 331 penX += pathOffset - textWidth;
|
/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;
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/line/ |
BreakingContextInlineHeaders.h | 516 ALWAYS_INLINE float textWidth(RenderText* text, unsigned from, unsigned len, const Font& font, float xPos, bool isFixedPitch, bool collapseWhiteSpace, HashSet<const SimpleFontData*>* fallbackFonts = 0) 621 charWidth = textWidth(renderText, m_current.offset(), midWordBreakIsBeforeSurrogatePair ? 2 : 1, font, m_width.committedWidth() + wrapW, isFixedPitch, m_collapseWhiteSpace); 657 additionalTempWidth = textWidth(renderText, lastSpace, m_current.offset() + 1 - lastSpace, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts) - wordTrailingSpaceWidth; 659 additionalTempWidth = textWidth(renderText, lastSpace, m_current.offset() - lastSpace, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts); 683 float charWidth = textWidth(renderText, m_current.offset(), 1, font, m_width.currentWidth(), isFixedPitch, m_collapseWhiteSpace, &wordMeasurement.fallbackFonts) + (applyWordSpacing ? wordSpacing : 0); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
MainKeyboardView.java | [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...] |