Home
last modified time | relevance | path

Searched refs:textWidth (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/ui/
DCountDownView.java109 int textWidth = mRemainingSecondsView.getMeasuredWidth(); in startFadeOutAnimation() local
113 mRemainingSecondsView.setTranslationX(mPreviewArea.centerX() - textWidth / 2); in startFadeOutAnimation()
115 mRemainingSecondsView.setPivotX(textWidth / 2); in startFadeOutAnimation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java166 final float textWidth = mParams.getTextPaint().measureText(text); in updatePreviewPosition() local
169 final float rectWidth = textWidth + hPad * 2.0f; in updatePreviewPosition()
179 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f); in updatePreviewPosition()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java101 float textWidth = mPaint.measureText(text); in drawText() local
102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin); in drawText()
104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f); in drawText()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListPinnedHeaderView.java48 int textWidth = getResources().getDimensionPixelSize( in ContactListPinnedHeaderView() local
50 int widthIncludingPadding = paddingStartOffset + textWidth; in ContactListPinnedHeaderView()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DFramedTextButton.java127 float textWidth = gPaint.measureText(mText); in onDraw() local
130 int x = (int) ((w - textWidth) / 2); in onDraw()
/packages/apps/Settings/src/com/android/settings/accessibility/
DPaletteListPreference.java133 final int textWidth = getTextWidth(context, maxLengthData); in initPaletteView() local
134 final float textBound = (textWidth + textPadding) / getScreenWidthPixels(context); in initPaletteView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java829 final float textWidth = TypefaceUtils.getStringWidth(text, paint); in fitsTextIntoWidth() local
830 if (textWidth < width) { in fitsTextIntoWidth()
834 final float scaleX = maxTextWidth / textWidth; in fitsTextIntoWidth()
/packages/apps/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java444 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); in generatePhoneNumberIcon() local
445 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize in generatePhoneNumberIcon()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java696 float textWidth = mFolderName.getPaint().measureText(mFolderName.getText().toString()); in animateOpen() local
697 float translation = (footerWidth - textWidth) / 2; in animateOpen()