HomeSort by relevance Sort by last modified time
    Searched refs:vwidth (Results 1 - 9 of 9) sorted by null

  /packages/apps/Contacts/src/com/android/contacts/detail/
TransformableImageView.java 53 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; local
58 if (dwidth * vheight > vwidth * dheight) {
60 dx = (vwidth - dwidth * scale) * 0.5f;
62 scale = (float) vwidth / (float) dwidth;
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
MtpImageView.java 129 float vwidth = getWidth(); local
139 if (dwidth <= vwidth && dheight <= vheight) {
142 scale = Math.min(vwidth / dwidth, vheight / dheight);
152 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0.5f,
156 mDrawMatrix.postRotate(mLastRotationDegrees, vwidth / 2, vheight / 2);
167 int vwidth = getWidth(); local
169 float scaleWidth = ((float) vwidth) / (iwidth * OVERLAY_ICON_SIZE_DENOMINATOR);
171 mOverlayIcon.setBounds((vwidth - iwidth) / 2,
173 (vwidth + iwidth) / 2,
177 mOverlayIcon.setBounds((int) (vwidth - scale * iwidth) / 2
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/drawables/
AutoThumbnailDrawable.java 132 int vwidth = mBounds.width(); local
136 if (dwidth * vheight > vwidth * dheight) {
138 dx = (vwidth - dwidth * scale) * 0.5f;
140 scale = (float) vwidth / (float) dwidth;
156 int vwidth = mBounds.width(); local
160 if (dwidth * vheight > vwidth * dheight) {
163 scale = (float) dwidth / (float) vwidth;
  /packages/apps/Gallery2/src/com/android/photos/shims/
BitmapJobDrawable.java 111 int vwidth = bounds.width(); local
115 if (dwidth * vheight > vwidth * dheight) {
117 dx = (vwidth - dwidth * scale) * 0.5f;
119 scale = (float) vwidth / (float) dwidth;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
UserAvatarView.java 134 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; local
143 vwidth -= 2 * (mFrameWidth - 1);
145 dwidth = vwidth;
156 scale = Math.min((float) vwidth / (float) dwidth,
159 dx = (int) ((vwidth - dwidth * scale) * 0.5f + 0.5f);
  /packages/apps/Launcher2/src/com/android/launcher2/
WallpaperChooserDialogFragment.java 336 final int vwidth = canvas.getWidth(); local
343 if (dwidth < vwidth || dheight < vheight) {
344 scale = Math.max((float) vwidth / (float) dwidth,
348 float dx = (vwidth - dwidth * scale) * 0.5f + 0.5f;
  /frameworks/base/core/java/android/widget/
ImageView.java 1033 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; local
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/views/
PhotoView.java 837 final int vwidth = getWidth(); local
840 final boolean fits = (dwidth < 0 || vwidth == dwidth) &&
868 final int vwidth = mAllowCrop ? sCropSize : getWidth(); local
871 final boolean fits = (dwidth < 0 || vwidth == dwidth) &&
882 mTempDst.set(0, 0, vwidth, vheight);
885 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2),
887 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2),
902 final int vwidth = mAllowCrop ? getCropSize() : getWidth(); local
    [all...]
  /packages/apps/Music/src/com/android/music/
MusicUtils.java 1277 int vwidth = v.getWidth(); local
    [all...]

Completed in 410 milliseconds