Home
last modified time | relevance | path

Searched refs:iconHeight (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/app/
DLauncherActivity.java282 final int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() local
291 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
292 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail()
294 if (iconWidth > iconHeight) { in createIconThumbnail()
296 } else if (iconHeight > iconWidth) { in createIconThumbnail()
318 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
325 final int y = (height - iconHeight) / 2; in createIconThumbnail()
326 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBottomAreaView.java400 int iconHeight = getResources().getDimensionPixelSize( in updateLockIcon() local
404 if (icon.getIntrinsicHeight() != iconHeight || icon.getIntrinsicWidth() != iconWidth) { in updateLockIcon()
405 icon = new IntrinsicSizeDrawable(icon, iconWidth, iconHeight); in updateLockIcon()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarView.java1580 final int iconHeight = mIconView.getMeasuredHeight(); in onLayout() local
1583 final int iconTop = Math.max(iconLp.topMargin, vCenter - iconHeight / 2); in onLayout()
1584 final int iconBottom = iconTop + iconHeight; in onLayout()