/cts/tests/tests/text/src/android/text/style/cts/ |
UnderlineSpanTest.java | 94 private float textWidth(CharSequence text) { 108 final float origLineWidth = textWidth(text); 111 final float underlinedLineWidth = textWidth(text); 116 final float origLineWidth = textWidth(text); 119 final float underlinedLineWidth = textWidth(text); 124 final float origLineWidth = textWidth(text); 127 final float underlinedLineWidth = textWidth(text); 132 final float origLineWidth = textWidth(text); 136 final float underlinedLineWidth = textWidth(text); 151 final float origLineWidth = textWidth(text) [all...] |
StrikethroughSpanTest.java | 97 private float textWidth(CharSequence text) { 110 final float origLineWidth = textWidth(text); 113 final float strokethroughLineWidth = textWidth(text);
|
SuggestionSpanTest.java | 213 private float textWidth(CharSequence text) { 226 final float origLineWidth = textWidth(text); 233 final float underlinedLineWidth = textWidth(text);
|
/external/skia/gm/ |
bitmapcopy.cpp | 88 SkScalar textWidth = paint.measureText(name, strlen(name)); 89 if (textWidth > width) { 90 width = textWidth; 101 SkScalar textWidth = paint.measureText(name, strlen(name)); 102 SkScalar x = (width - textWidth) / SkScalar(2);
|
/external/iproute2/doc/ |
preamble.tex | 0 \textwidth 6.0in
|
/frameworks/base/core/tests/coretests/src/android/text/style/ |
UnderlineSpanTest.java | 49 final float origLineWidth = textWidth(text); 52 final float underlinedLineWidth = textWidth(text); 57 private float textWidth(CharSequence text) {
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
ContactListPinnedHeaderView.java | 46 int textWidth = getResources().getDimensionPixelSize(R.dimen.contact_list_section_header_width); 47 int widthIncludingPadding = paddingStartOffset + textWidth; 52 setLayoutParams(new LayoutParams(textWidth, LayoutParams.WRAP_CONTENT));
|
/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/Contacts/src/com/android/contacts/list/ |
ContactListPinnedHeaderView.java | 48 int textWidth = getResources().getDimensionPixelSize( 50 int widthIncludingPadding = paddingStartOffset + textWidth;
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 120 int textWidth = Math.round(paint.measureText(text)); 121 while (textWidth < screenWidth) { 123 textWidth = Math.round(paint.measureText(text)); 127 int dragAmount = Math.min(screenWidth, textWidth - screenWidth);
|
BaseMovementMethodTest.java | 188 private void setContentView(@NonNull TextView textView, int textWidth) throws Throwable { 191 layout.addView(textView, new ViewGroup.LayoutParams(textWidth, WRAP_CONTENT));
|
/external/ImageMagick/Magick++/lib/Magick++/ |
TypeMetric.h | 46 double textWidth(void) const;
|
/external/ImageMagick/Magick++/lib/ |
TypeMetric.cpp | 44 double Magick::TypeMetric::textWidth(void) const
|
/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);
|
/cts/tests/tests/text/src/android/text/cts/ |
TextUtilsTest.java | 212 float textWidth = p.measureText("long, 3 plus"); 217 TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString()); 220 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString()); 223 textWidth = p.measureText("long, string, 2 more"); 225 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 228 textWidth = p.measureText("long, string, to, truncate"); 230 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 234 text + "-extended", p, textWidth, "more 1", "%d more").toString()); 243 text + "-extended", p, textWidth, null, "%d more").toString()); 246 TextUtils.commaEllipsize(null, p, textWidth, "plus 1", "%d plus") [all...] |
/external/ImageMagick/www/Magick++/ |
TypeMetric.html | 58 <p align="center"><a name="textWidth"></a><font size="2">textWidth</font></p></td>
|
/external/giflib/ |
gif_font.c | 213 int j = 0, LineCount = 0, TextWidth = 0; 220 if (j > TextWidth) 221 TextWidth = j; 227 if (j > TextWidth) /* last line might be longer than any previous */ 228 TextWidth = j; 237 border + TextWidth * GIF_FONT_WIDTH + border - 1, 245 leadspace = (TextWidth - strlen(++cp)) / 2; 254 GifDrawBox(Image, x, y, border + TextWidth * GIF_FONT_WIDTH + border,
|
/external/python/cpython2/Misc/Vim/ |
vimrc | 51 au BufRead,BufNewFile *.py,*.pyw,*.c,*.h set textwidth=79 55 " 'textwidth'
|
/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;
|