/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 79 public float iconSize; field in InvariantDeviceProfile 103 p.iconSize, p.iconTextSize, p.numHotseatIcons, p.hotseatIconSize, in InvariantDeviceProfile() 117 iconSize = is; in InvariantDeviceProfile() 123 hotseatScale = hotseatIconSize / iconSize; in InvariantDeviceProfile() 155 iconSize = interpolatedDeviceProfileOut.iconSize; in InvariantDeviceProfile() 156 iconBitmapSize = Utilities.pxFromDp(iconSize, dm); in InvariantDeviceProfile() 165 hotseatScale = hotseatIconSize / iconSize; in InvariantDeviceProfile() 203 float iconSize = a.getFloat(R.styleable.InvariantDeviceProfile_iconSize, 0); in getPredefinedDeviceProfiles() local 213 iconSize, in getPredefinedDeviceProfiles() 216 … a.getFloat(R.styleable.InvariantDeviceProfile_hotseatIconSize, iconSize), in getPredefinedDeviceProfiles() [all …]
|
D | Partner.java | 120 float iconSize = -1; in applyInvariantDeviceProfileOverrides() local 139 iconSize = Utilities.dpiFromPx(px, dm); in applyInvariantDeviceProfileOverrides() 151 if (iconSize > 0) { in applyInvariantDeviceProfileOverrides() 152 inv.iconSize = iconSize; in applyInvariantDeviceProfileOverrides()
|
D | WidgetPreviewLoader.java | 419 int iconSize = (int) Math.min(appIconSize * scale, in generateWidgetPreview() local 423 int hoffset = (previewWidth - iconSize) / 2; in generateWidgetPreview() 424 int yoffset = (previewHeight - iconSize) / 2; in generateWidgetPreview() 425 icon.setBounds(hoffset, yoffset, hoffset + iconSize, yoffset + iconSize); in generateWidgetPreview() 460 int iconSize = launcher.getDeviceProfile().iconSizePx; in generateShortcutPreview() local 464 int size = iconSize + 2 * padding; in generateShortcutPreview() 488 boxRect.set(0, 0, iconSize, iconSize); in generateShortcutPreview()
|
D | PendingAppWidgetHostView.java | 229 float iconSize = Math.max(0, Math.min(availableWidth, availableHeight)); in updateDrawableBounds() local 235 if (iconSize * settingIconScaleFactor > maxSize) { in updateDrawableBounds() 237 iconSize = maxSize / settingIconScaleFactor; in updateDrawableBounds() 240 int actualIconSize = (int) Math.min(iconSize, grid.iconSizePx); in updateDrawableBounds()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AbstractSlotRenderer.java | 83 int iconSize = Math.min(width, height) / 6; in drawPanoramaIcon() local 84 mPanoramaIcon.draw(canvas, (width - iconSize) / 2, (height - iconSize) / 2, in drawPanoramaIcon() 85 iconSize, iconSize); in drawPanoramaIcon()
|
D | AlbumLabelMaker.java | 175 int x = s.leftMargin + s.iconSize; in run() 192 float scale = (float) s.iconSize / icon.getWidth(); in run()
|
/packages/apps/Car/Stream/src/com/android/car/stream/radio/ |
D | RadioConverter.java | 71 int iconSize = context.getResources() in RadioConverter() local 74 mContext.getDrawable(R.drawable.ic_play_arrow), iconSize, iconSize); in RadioConverter() 76 mContext.getDrawable(R.drawable.ic_pause), iconSize, iconSize); in RadioConverter()
|
/packages/apps/Car/Stream/src/com/android/car/stream/media/ |
D | MediaConverter.java | 72 int iconSize = context.getResources() in MediaConverter() local 75 context.getDrawable(R.drawable.ic_play_arrow), iconSize, iconSize); in MediaConverter() 77 context.getDrawable(R.drawable.ic_pause), iconSize, iconSize); in MediaConverter()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingItemDragHelper.java | 129 int iconSize = dp.iconSizePx; in startDrag() local 137 dragRegion.left = (size[0] - iconSize) / 2; in startDrag() 138 dragRegion.right = dragRegion.left + iconSize; in startDrag() 139 … dragRegion.top = (size[1] - iconSize - dp.iconTextSizePx - dp.iconDrawablePaddingPx) / 2; in startDrag() 140 dragRegion.bottom = dragRegion.top + iconSize; in startDrag()
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutDragPreviewProvider.java | 84 int iconSize = getDrawableBounds(mView.getBackground()).width(); in getScaleAndPosition() local 89 iconLeft = mView.getWidth() - iconSize - iconLeft; in getScaleAndPosition() 92 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 + in getScaleAndPosition() 97 return scale * iconSize / size; in getScaleAndPosition()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | ThirdPartyWallpaperInfo.java | 28 public ThirdPartyWallpaperInfo(ResolveInfo resolveInfo, int iconSize) { in ThirdPartyWallpaperInfo() argument 30 mIconSize = iconSize; in ThirdPartyWallpaperInfo() 59 int iconSize = context.getResources().getDimensionPixelSize(R.dimen.wallpaperItemIconSize); in getAll() local 74 result.add(new ThirdPartyWallpaperInfo(info, iconSize)); in getAll()
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
D | ClusterView.java | 196 int iconSize = card.getIconSize(); in createMediaCard() local 199 Bitmap albumIcon = BitmapUtils.scaleBitmap(albumCover, iconSize, iconSize); in createMediaCard() 215 Bitmap mediaApp = generateMediaIcon(iconSize, in createMediaCard() 258 int iconSize = (int)getResources().getDimension(R.dimen.card_icon_size); in updateContactImage() local 260 BitmapUtils.scaleBitmap(contactImage, iconSize, iconSize)); in updateContactImage()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | TintedDrawableSpan.java | 42 int iconSize = fm.bottom - fm.top; in getSize() local 43 mDrawable.setBounds(0, 0, iconSize, iconSize); in getSize()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationFooterLayout.java | 83 int iconSize = res.getDimensionPixelSize(R.dimen.notification_footer_icon_size); in NotificationFooterLayout() local 84 mIconLayoutParams = new LayoutParams(iconSize, iconSize); in NotificationFooterLayout() 93 - iconSize * MAX_FOOTER_NOTIFICATIONS; in NotificationFooterLayout()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DropBadgeView.java | 44 final int iconSize = context.getResources().getDimensionPixelSize(R.dimen.root_icon_size); in DropBadgeView() local 56 mBackground.setLayerSize(0, iconSize, iconSize); in DropBadgeView()
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
D | IconFactory.java | 98 int iconSize = in create() local 101 DrawableConverter.drawableToBitmap(drawable, iconSize /* width */, iconSize /* height */)); in create()
|
/packages/apps/Launcher3/src/com/android/launcher3/badge/ |
D | BadgeInfo.java | 135 int iconSize = badgeSize - badgePadding * 2; in getNotificationIconForBadge() local 136 icon.setBounds(0, 0, iconSize, iconSize); in getNotificationIconForBadge()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ContactsAsyncHelper.java | 160 int iconSize = context.getResources() in getPhotoIconWhenAppropriate() local 167 if (longerEdge > iconSize) { in getPhotoIconWhenAppropriate() 168 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ContactsAsyncHelper.java | 244 int iconSize = context.getResources().getDimensionPixelSize(R.dimen.notification_icon_size); in getPhotoIconWhenAppropriate() local 250 if (longerEdge > iconSize) { in getPhotoIconWhenAppropriate() 251 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ContactsAsyncHelperTest.java | 125 int iconSize = mContext.getResources() in testImageScaling() local 127 assertTrue(iconSize >= iconCaptor.getValue().getHeight()); in testImageScaling() 128 assertTrue(iconSize >= iconCaptor.getValue().getWidth()); in testImageScaling()
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | CheckableLabeledButton.java | 80 int iconSize = getResources().getDimensionPixelSize(R.dimen.incall_labeled_button_size); in init() local 84 iconParams.width = iconSize; in init() 85 iconParams.height = iconSize; in init()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimPreferenceDialog.java | 204 int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); in getView() local 212 drawable.setIntrinsicHeight(iconSize); in getView() 213 drawable.setIntrinsicWidth(iconSize); in getView()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
D | CircleFramedDrawable.java | 49 float iconSize = res.getDimension(R.dimen.circle_avatar_size); in getInstance() local 51 CircleFramedDrawable instance = new CircleFramedDrawable(icon, (int) iconSize); in getInstance()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 164 final int iconSize = getResources() in onMeasure() local 168 final int iconMeasureSpec = MeasureSpec.makeMeasureSpec(iconSize, MeasureSpec.EXACTLY); in onMeasure() 551 final int iconSize = getResources() in updateMessageAttachments() local 553 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderIcon.java | 483 float iconSize = mLauncher.getDeviceProfile().iconSizePx; 485 final float scale = iconSize / mReferenceDrawable.getIntrinsicWidth(); 486 final float trans = (mBackground.previewSize - iconSize) / 2;
|