Home
last modified time | relevance | path

Searched refs:iconSize (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java79 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 …]
DPartner.java120 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()
DWidgetPreviewLoader.java419 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()
DPendingAppWidgetHostView.java229 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/
DAbstractSlotRenderer.java83 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()
DAlbumLabelMaker.java175 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/
DRadioConverter.java71 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/
DMediaConverter.java72 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/
DPendingItemDragHelper.java129 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/
DShortcutDragPreviewProvider.java84 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/
DThirdPartyWallpaperInfo.java28 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/
DClusterView.java196 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/
DTintedDrawableSpan.java42 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/
DNotificationFooterLayout.java83 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/
DDropBadgeView.java44 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/
DIconFactory.java98 int iconSize = in create() local
101 DrawableConverter.drawableToBitmap(drawable, iconSize /* width */, iconSize /* height */)); in create()
/packages/apps/Launcher3/src/com/android/launcher3/badge/
DBadgeInfo.java135 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/
DContactsAsyncHelper.java160 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/
DContactsAsyncHelper.java244 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/
DContactsAsyncHelperTest.java125 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/
DCheckableLabeledButton.java80 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/
DSimPreferenceDialog.java204 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/
DCircleFramedDrawable.java49 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/
DConversationMessageView.java164 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/
DFolderIcon.java483 float iconSize = mLauncher.getDeviceProfile().iconSizePx;
485 final float scale = iconSize / mReferenceDrawable.getIntrinsicWidth();
486 final float trans = (mBackground.previewSize - iconSize) / 2;

12