Home
last modified time | relevance | path

Searched refs:drawableWidth (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/
DPlaceholderInsetDrawable.java45 final int drawableWidth = drawable.getIntrinsicWidth(); in fromDrawable() local
47 final int insetHorizontal = drawableWidth < 0 || drawableWidth > sourceWidth ? in fromDrawable()
48 0 : (sourceWidth - drawableWidth) / 2; in fromDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DWallpaperThumbnailView.java58 final int drawableWidth = getDrawable().getIntrinsicWidth(); in recomputeImageMatrix() local
62 if (drawableWidth * viewHeight > drawableHeight * viewWidth) { in recomputeImageMatrix()
65 scale = (float) viewWidth / drawableWidth; in recomputeImageMatrix()
79 float dx = -((drawableWidth * scale) - viewWidth); in recomputeImageMatrix()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DCircledImageView.java359 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); in onLayout() local
363 final int drawableLeft = (viewWidth - drawableWidth) / 2 in onLayout()
364 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth); in onLayout()
367 mDrawable.setBounds(drawableLeft, drawableTop, drawableLeft + drawableWidth, in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java260 int drawableWidth = mDrawable.getIntrinsicWidth(); in getIconRect() local
268 final int width = drawableWidth; in getIconRect()