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

  /packages/apps/Contacts/src/com/android/contacts/detail/
TransformableImageView.java 50 int dwidth = getDrawable().getIntrinsicWidth(); 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/photos/drawables/
AutoThumbnailDrawable.java 130 int dwidth = mBitmap.getWidth(); local
136 if (dwidth * vheight > vwidth * dheight) {
138 dx = (vwidth - dwidth * scale) * 0.5f;
140 scale = (float) vwidth / (float) dwidth;
153 private int calculateSampleSizeLocked(int dwidth, int dheight) {
160 if (dwidth * vheight > vwidth * dheight) {
163 scale = (float) dwidth / (float) vwidth;
  /packages/apps/Gallery2/src/com/android/photos/shims/
BitmapJobDrawable.java 109 int dwidth = mBitmap.getWidth(); local
115 if (dwidth * vheight > vwidth * dheight) {
117 dx = (vwidth - dwidth * scale) * 0.5f;
119 scale = (float) vwidth / (float) dwidth;
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
MtpImageView.java 121 float dwidth; local
128 dwidth = mLastBitmapHeight;
131 dwidth = mLastBitmapWidth;
134 if (dwidth <= vwidth && dheight <= vheight) {
137 scale = Math.min(vwidth / dwidth, vheight / dheight);
142 -dwidth * scale * 0.5f);
144 mDrawMatrix.postTranslate(dwidth * scale * 0.5f,
147 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0.5f,
  /frameworks/base/core/java/android/widget/
ImageView.java 917 int dwidth = mDrawableWidth; local
923 boolean fits = (dwidth < 0 || vwidth == dwidth) &&
926 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) {
935 mDrawable.setBounds(0, 0, dwidth, dheight);
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/views/
PhotoView.java 715 final int dwidth = mDrawable.getIntrinsicWidth(); local
721 final boolean fits = (dwidth < 0 || vwidth == dwidth) &&
725 mDrawable.setBounds(0, 0, dwidth, dheight);
746 final int dwidth = mDrawable.getIntrinsicWidth(); local
752 final boolean fits = (dwidth < 0 || vwidth == dwidth) &&
759 mTempSrc.set(0, 0, dwidth, dheight);
766 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2),
768 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2)
780 final int dwidth = mDrawable.getIntrinsicWidth(); local
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
mask.c 53 intersect_rectangles(VGint dwidth, VGint dheight,
60 if (tx + twidth <= 0 || tx >= dwidth)
74 location[2] = MIN2(tx + swidth, MIN2(dwidth, tx + twidth));
77 offsets[2] = MIN2(twidth, MIN2(dwidth - tx, swidth ));
image.c 219 VGfloat dwidth, dheight; local
225 dwidth = MIN2(width, img->width);
230 x, y, dwidth, dheight);
  /external/mesa3d/src/gallium/state_trackers/vega/
mask.c 53 intersect_rectangles(VGint dwidth, VGint dheight,
60 if (tx + twidth <= 0 || tx >= dwidth)
74 location[2] = MIN2(tx + swidth, MIN2(dwidth, tx + twidth));
77 offsets[2] = MIN2(twidth, MIN2(dwidth - tx, swidth ));
image.c 219 VGfloat dwidth, dheight; local
225 dwidth = MIN2(width, img->width);
230 x, y, dwidth, dheight);

Completed in 1339 milliseconds