Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/widget/
H A DImageView.java1286 final int dwidth = mDrawableWidth; in configureBounds() local
1292 final boolean fits = (dwidth < 0 || vwidth == dwidth) 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()
1329 dx = (vwidth - dwidth * scale) * 0.5f; in configureBounds()
1331 scale = (float) vwidth / (float) dwidth; in configureBounds()
1343 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
1346 scale = Math.min((float) vwidth / (float) dwidth, in configureBounds()
1350 dx = Math.round((vwidth - dwidth * scale) * 0.5f); in configureBounds()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java350 int dwidth = mState.mBackground.getWidth(); in onBoundsChange() local
355 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange()
358 scale = (float) vwidth / (float) dwidth; in onBoundsChange()
370 offsetX = bounds.centerX() - (Math.round(dwidth * scale) / 2); in onBoundsChange()
376 bounds.left + Math.round(dwidth * scale) + offsetX, in onBoundsChange()