Home
last modified time | relevance | path

Searched refs:dheight (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/core/java/android/widget/
H A DImageView.java1287 final int dheight = mDrawableHeight; in configureBounds() local
1293 && (dheight < 0 || vheight == dheight); in configureBounds()
1295 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
1304 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
1327 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
1328 scale = (float) vheight / (float) dheight; in configureBounds()
1332 dy = (vheight - dheight * scale) * 0.5f; in configureBounds()
1343 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
1347 (float) vheight / (float) dheight); in configureBounds()
1351 dy = Math.round((vheight - dheight * scale) * 0.5f); in configureBounds()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java351 int dheight = mState.mBackground.getHeight(); in onBoundsChange() local
355 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange()
356 scale = (float) vheight / (float) dheight; in onBoundsChange()
364 dy = (vheight - dheight * scale) * 0.5f; in onBoundsChange()
377 bounds.top + Math.round(dheight * scale + dy)); in onBoundsChange()