/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, in createIcon() argument 50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { in createIcon() 54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight, in createIcon() 77 int iconHeight = dest.getHeight(); in drawIcon() local 79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { in drawIcon() 83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight); in drawIcon() 93 float hScale = sourceHeight / (float) iconHeight; in drawIcon() 97 float ih = iconHeight * s; in drawIcon()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | ActivityPicker.java | 379 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() local 381 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail() 382 if (width < iconWidth || height < iconHeight) { in createIconThumbnail() 383 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() 385 if (iconWidth > iconHeight) { in createIconThumbnail() 387 } else if (iconHeight > iconWidth) { in createIconThumbnail() 411 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail() 418 final int y = (height - iconHeight) / 2; in createIconThumbnail() 419 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 379 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() local 381 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail() 382 if (width < iconWidth || height < iconHeight) { in createIconThumbnail() 383 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() 385 if (iconWidth > iconHeight) { in createIconThumbnail() 387 } else if (iconHeight > iconWidth) { in createIconThumbnail() 411 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail() 418 final int y = (height - iconHeight) / 2; in createIconThumbnail() 419 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AddAccessoryPreferenceFragment.java | 118 final int iconHeight = in getDeviceDrawable() local 120 tempDrawable.setBounds(0, 0, iconWidth, iconHeight); in getDeviceDrawable() 122 Bitmap.createBitmap(iconWidth, iconHeight, Bitmap.Config.ARGB_8888); in getDeviceDrawable()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MoreKeysKeyboardView.java | 97 final int iconHeight = mDivider.getIntrinsicHeight(); in onDrawKeyTopVisuals() local 99 final int iconY = (keyHeight - iconHeight) / 2; // Align vertically center in onDrawKeyTopVisuals() 100 drawIcon(canvas, mDivider, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
|
D | KeyboardView.java | 495 final int iconHeight = icon.getIntrinsicHeight(); in onDrawKeyTopVisuals() local 498 iconY = keyHeight - iconHeight; in onDrawKeyTopVisuals() 500 iconY = (keyHeight - iconHeight) / 2; // Align vertically center. in onDrawKeyTopVisuals() 503 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | ConversationMessageView.java | 133 final int iconHeight = mContactIconView.getMeasuredHeight(); in onLayout() local 160 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ConversationMessageView.java | 133 final int iconHeight = mContactIconView.getMeasuredHeight(); in onLayout() local 160 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 528 float iconHeight = bounds.height() * mIconScale.value; in getOpeningWindowAnimators() 544 float scaleY = iconHeight / windowHeight; in getOpeningWindowAnimators() 551 float offsetY = (scaledWindowHeight - iconHeight) / 2; in getOpeningWindowAnimators()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | ArrowPopup.java | 277 int iconHeight = mTempRect.height(); in orientAboutObject() local 281 y = mTempRect.top + iconHeight + extraVerticalSpace; in orientAboutObject()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 196 final int iconHeight = mContactIconView.getMeasuredHeight(); in onLayout() local 222 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
|