Searched refs:dheight (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 241 int dheight = mState.mBackground.getHeight(); in onBoundsChange() local 245 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange() 246 scale = (float) vheight / (float) dheight; in onBoundsChange() 254 dy = (vheight - dheight * scale) * 0.5f; in onBoundsChange() 260 bounds.top + Math.round(dheight * scale + dy)); in onBoundsChange()
|
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 1139 final int dheight = mDrawableHeight; in configureBounds() local 1145 && (dheight < 0 || vheight == dheight); in configureBounds() 1147 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds() 1156 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds() 1172 Math.round((vheight - dheight) * 0.5f)); in configureBounds() 1179 if (dwidth * vheight > vwidth * dheight) { in configureBounds() 1180 scale = (float) vheight / (float) dheight; in configureBounds() 1184 dy = (vheight - dheight * scale) * 0.5f; in configureBounds() 1195 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds() 1199 (float) vheight / (float) dheight); in configureBounds() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 806 final int dheight = mDrawable.getIntrinsicHeight(); in configureBounds() local 812 (dheight < 0 || vheight == dheight); in configureBounds() 815 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds() 837 final int dheight = mDrawable.getIntrinsicHeight(); in generateMatrix() local 843 (dheight < 0 || vheight == dheight); in generateMatrix() 849 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix() 857 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix() 859 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix() 871 final int dheight = mDrawable.getIntrinsicHeight(); in generateScale() local 876 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | BackgroundManager.java | 1053 int dheight = bitmap.getHeight(); in setBitmap() local 1057 if (dwidth * mHeightPx > mWidthPx * dheight) { in setBitmap() 1058 scale = (float) mHeightPx / (float) dheight; in setBitmap()
|