/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 | 126 float dwidth; local 133 dwidth = mLastBitmapHeight; 136 dwidth = mLastBitmapWidth; 139 if (dwidth <= vwidth && dheight <= vheight) { 142 scale = Math.min(vwidth / dwidth, vheight / dheight); 147 -dwidth * scale * 0.5f); 149 mDrawMatrix.postTranslate(dwidth * scale * 0.5f, 152 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0.5f,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
UserAvatarView.java | 137 int dwidth; local 140 dwidth = mBitmap.getWidth(); 145 dwidth = vwidth; 147 mDrawable.setBounds(0, 0, dwidth, dheight); 156 scale = Math.min((float) vwidth / (float) dwidth, 159 dx = (int) ((vwidth - dwidth * scale) * 0.5f + 0.5f);
|
/frameworks/base/core/java/android/widget/ |
ImageView.java | 1030 int dwidth = mDrawableWidth; local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
WallpaperChooserDialogFragment.java | 338 final int dwidth = mIntrinsicWidth; 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/opt/photoviewer/src/com/android/ex/photo/views/ |
PhotoView.java | 834 final int dwidth = mDrawable.getIntrinsicWidth(); local 840 final boolean fits = (dwidth < 0 || vwidth == dwidth) && 844 mDrawable.setBounds(0, 0, dwidth, dheight); 865 final int dwidth = mDrawable.getIntrinsicWidth(); local 871 final boolean fits = (dwidth < 0 || vwidth == dwidth) && 878 mTempSrc.set(0, 0, dwidth, dheight); 885 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2), 887 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2) 899 final int dwidth = mDrawable.getIntrinsicWidth(); local [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
BackgroundManager.java | 672 int dwidth = bitmap.getWidth(); local 677 if (dwidth * mHeightPx > mWidthPx * dheight) { 680 scale = (float) mWidthPx / (float) dwidth; 683 int subX = Math.min((int) (mWidthPx / scale), dwidth); 684 int dx = Math.max(0, (dwidth - subX) / 2);
|
/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);
|
/prebuilts/sdk/current/support/v17/leanback/libs/ |
android-support-v17-leanback.jar | |