HomeSort by relevance Sort by last modified time
    Searched refs:textWidth (Results 1 - 25 of 33) sorted by null

1 2

  /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);
  /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/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
  /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 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...]
StaticLayoutTest.java 529 final float textWidth = mDefaultPaint.measureText(text);
530 final int halfWidth = (int)(textWidth / 2.0f);
    [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/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;
  /developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/
ComplicationSimpleWatchFaceService.java 575 double textWidth =
584 complicationsX = (int) ((mWidth / 2) - textWidth) / 2;
587 int offset = (int) ((mWidth / 2) - textWidth) / 2;
  /developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/
ComplicationSimpleWatchFaceService.java 575 double textWidth =
584 complicationsX = (int) ((mWidth / 2) - textWidth) / 2;
587 int offset = (int) ((mWidth / 2) - textWidth) / 2;
  /development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
ComplicationSimpleWatchFaceService.java 575 double textWidth =
584 complicationsX = (int) ((mWidth / 2) - textWidth) / 2;
587 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 166 final int textWidth = mHeaderText.getMeasuredWidth();
167 int newSize = Math.max(0, textWidth - overFlow);
  /frameworks/base/core/java/android/text/
StaticLayout.java     [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...]
  /packages/apps/Launcher3/src/com/android/launcher3/
Folder.java 564 float textWidth = mFolderName.getPaint().measureText(mFolderName.getText().toString());
565 float translation = (footerWidth - textWidth) / 2;
    [all...]

Completed in 1008 milliseconds

1 2