/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);
|
/external/iproute2/doc/ |
preamble.tex | 0 \textwidth 6.0in
|
/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);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListPinnedHeaderView.java | 51 int textWidth = getResources().getDimensionPixelSize( 53 int widthIncludingPadding = paddingStartOffset + textWidth;
|
ShortcutIntentBuilder.java | 411 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); 412 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize
|
/cts/tests/tests/text/src/android/text/cts/ |
TextUtilsTest.java | 87 float textWidth = p.measureText("long, 3 plus"); 92 TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString()); 95 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString()); 98 textWidth = p.measureText("long, string, 2 more"); 100 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 103 textWidth = p.measureText("long, string, to, truncate"); 105 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 109 text + "-extended", p, textWidth, "more 1", "%d more").toString()); 118 text + "-extended", p, textWidth, null, "%d more").toString()); 121 TextUtils.commaEllipsize(null, p, textWidth, "plus 1", "%d plus") [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 118 int textWidth = Math.round(paint.measureText(text)); 119 while (textWidth < screenWidth) { 121 textWidth = Math.round(paint.measureText(text)); 125 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
|
/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 | 160 int textWidth = mChronometer.getWidth(); 162 adjustLeft = -textWidth; 164 adjustLeft = -(textWidth / 2); 169 int rightLimit = contentWidth - params.rightMargin - 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);
|
/external/blktrace/btreplay/doc/ |
abstract.tex | 18 % vi :set textwidth=75
|
/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);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureFloatingTextDrawingPreview.java | 166 final float textWidth = mParams.getTextPaint().measureText(text); 169 final float rectWidth = textWidth + hPad * 2.0f; 179 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f);
|
/external/srtp/doc/ |
header.template | 36 \textwidth = 6.5 in
|
/external/giflib/ |
gif_font.c | 212 int i, j = 0, LineCount = 0, TextWidth = 0; 218 if (j > TextWidth) 219 TextWidth = j; 225 if (j > TextWidth) /* last line might be longer than any previous */ 226 TextWidth = j; 230 border + TextWidth * GIF_FONT_WIDTH + border - 1, 240 leadspace = (TextWidth - strlen(++cp)) / 2; 248 GifDrawBox(Image, x, y, border + TextWidth * GIF_FONT_WIDTH + border,
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
CustomSurfaceView.java | 138 int textWidth = (int)(paint.measureText(mName) + 0.5f); 139 int x = mRandom.nextInt(canvas.getWidth() - 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;
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/ |
HolidayBorderPanel.java | 453 int textwidth = width - 2 * (thickness + 5); local 454 if (strwidth > textwidth) 455 strwidth = textwidth;
|
/frameworks/base/libs/hwui/font/ |
Font.cpp | 318 float textWidth = SkScalarToFloat(paint->measureText(glyphs, numGlyphs * 2)); 321 textWidth *= 0.5f; 324 penX += pathOffset - textWidth;
|
/frameworks/base/core/java/android/view/ |
NotificationHeaderView.java | 166 final int textWidth = mHeaderText.getMeasuredWidth(); 167 int newSize = Math.max(0, textWidth - overFlow);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/ |
Grammar.txt | 22 #diagram:output\textwidth 20.04cm\oddsidemargin 0.0cm\evensidemargin 0.0cm
|
/prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/ |
Grammar.txt | 22 #diagram:output\textwidth 20.04cm\oddsidemargin 0.0cm\evensidemargin 0.0cm
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
Grammar.txt | 22 #diagram:output\textwidth 20.04cm\oddsidemargin 0.0cm\evensidemargin 0.0cm
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/ |
Grammar.txt | 22 #diagram:output\textwidth 20.04cm\oddsidemargin 0.0cm\evensidemargin 0.0cm
|