/external/ImageMagick/Magick++/lib/Magick++/ |
TypeMetric.h | 46 double textWidth(void) const;
|
/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);
|
/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) {
|
/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);
|
/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));
|
/external/ImageMagick/Magick++/lib/ |
TypeMetric.cpp | 44 double Magick::TypeMetric::textWidth(void) const
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactListPinnedHeaderView.java | 48 int textWidth = getResources().getDimensionPixelSize( 50 int widthIncludingPadding = paddingStartOffset + 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);
|
/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/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...] |
/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/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/tests/SurfaceComposition/src/android/surfacecomposition/ |
CustomSurfaceView.java | 138 int textWidth = (int)(paint.measureText(mName) + 0.5f); 139 int x = mRandom.nextInt(canvas.getWidth() - 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/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;
|
/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;
|
/frameworks/base/core/tests/coretests/src/android/text/ |
StaticLayoutTest.java | 512 final float textWidth = mDefaultPaint.measureText(text); 513 final int halfWidth = (int) (textWidth / 2.0f); 547 final float textWidth = mDefaultPaint.measureText(text); 548 final int halfWidth = (int) (textWidth / 2.0f); 562 final float textWidth = mDefaultPaint.measureText(text); 568 int avail = (int) (textWidth * i / 7.0f);
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
ComplicationSimpleWatchFaceService.java | 601 double textWidth = 610 complicationsX = (int) ((mWidth / 2) - textWidth) / 2; 613 int offset = (int) ((mWidth / 2) - textWidth) / 2;
|
/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 | 143 final int textWidth = mHeaderText.getMeasuredWidth(); 144 int newSize = Math.max(0, textWidth - overFlow);
|