Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java101 public float iconSize; field in InvariantDeviceProfile
143 iconSize = p.iconSize; in InvariantDeviceProfile()
296 iconSize = displayOption.iconSize; in initGridOption()
299 iconBitmapSize = ResourceUtils.pxFromDp(iconSize, metrics); in initGridOption()
365 if (iconSize != oldProfile.iconSize || iconBitmapSize != oldProfile.iconBitmapSize || in onConfigChanged()
593 private float iconSize; field in InvariantDeviceProfile.DisplayOption
609 iconSize = a.getFloat(R.styleable.ProfileDisplayOption_iconImageSize, 0); in DisplayOption()
611 iconSize); in DisplayOption()
626 iconSize *= w; in multiply()
633 iconSize += p.iconSize; in add()
DPartner.java122 float iconSize = -1; in applyInvariantDeviceProfileOverrides() local
141 iconSize = Utilities.dpiFromPx(px, dm); in applyInvariantDeviceProfileOverrides()
153 if (iconSize > 0) { in applyInvariantDeviceProfileOverrides()
154 inv.iconSize = iconSize; in applyInvariantDeviceProfileOverrides()
DWidgetPreviewLoader.java421 int iconSize = (int) Math.min(appIconSize * scale, in generateWidgetPreview() local
425 int hoffset = (previewWidth - iconSize) / 2; in generateWidgetPreview()
426 int yoffset = (previewHeight - iconSize) / 2; in generateWidgetPreview()
427 icon.setBounds(hoffset, yoffset, hoffset + iconSize, yoffset + iconSize); in generateWidgetPreview()
453 int iconSize = launcher.getDeviceProfile().allAppsIconSizePx; in generateShortcutPreview() local
457 int size = iconSize + 2 * padding; in generateShortcutPreview()
484 boxRect.set(0, 0, iconSize, iconSize); in generateShortcutPreview()
DUtilities.java574 int iconSize = appState.getInvariantDeviceProfile().iconBitmapSize; in getBadge() local
581 return new FixedSizeEmptyDrawable(iconSize); in getBadge()
587 float badgeSize = LauncherIcons.getBadgeSizeForIconSize(iconSize); in getBadge()
588 float insetFraction = (iconSize - badgeSize) / iconSize; in getBadge()
595 .getUserBadgedIcon(new FixedSizeEmptyDrawable(iconSize), info.user); in getBadge()
DBubbleTextView.java458 public static void getIconBounds(View iconView, Rect outBounds, int iconSize) { in getIconBounds() argument
460 int left = (iconView.getWidth() - iconSize) / 2; in getIconBounds()
461 int right = left + iconSize; in getIconBounds()
462 int bottom = top + iconSize; in getIconBounds()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DIconFactory.java110 int iconSize = in createAdaptiveIcon() local
115 DrawableConverter.drawableToBitmap(letterTileDrawable, iconSize, iconSize)); in createAdaptiveIcon()
135 int iconSize = in createFlatIcon() local
138 DrawableConverter.drawableToBitmap(drawable, iconSize /* width */, iconSize /* height */)); in createFlatIcon()
/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()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutDragPreviewProvider.java63 int iconSize = getDrawableBounds(mView.getBackground()).width(); in getScaleAndPosition() local
68 iconLeft = mView.getWidth() - iconSize - iconLeft; in getScaleAndPosition()
71 outPos[0] += Math.round(scale * iconLeft + (scale * iconSize - preview.getWidth()) / 2 + in getScaleAndPosition()
76 return scale * iconSize / size; in getScaleAndPosition()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java126 int iconSize = dp.iconSizePx; in startDrag() local
134 dragRegion.left = (mEstimatedCellSize[0] - iconSize) / 2; in startDrag()
135 dragRegion.right = dragRegion.left + iconSize; in startDrag()
137 - iconSize - dp.iconTextSizePx - dp.iconDrawablePaddingPx) / 2; in startDrag()
138 dragRegion.bottom = dragRegion.top + iconSize; in startDrag()
DPendingAppWidgetHostView.java223 float iconSize = Math.max(0, Math.min(availableWidth, availableHeight)); in updateDrawableBounds() local
229 if (iconSize * settingIconScaleFactor > maxSize) { in updateDrawableBounds()
231 iconSize = maxSize / settingIconScaleFactor; in updateDrawableBounds()
234 int actualIconSize = (int) Math.min(iconSize, grid.iconSizePx); in updateDrawableBounds()
/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/apps/Settings/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragment.java217 final int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); in getColors() local
221 colors[i] = new Color(colorStrings[i], colorInts[i], iconSize, strokeWidth); in getColors()
232 private Color(String label, int color, int iconSize, int strokeWidth) { in Color() argument
236 mDrawable.setIntrinsicHeight(iconSize); in Color()
237 mDrawable.setIntrinsicWidth(iconSize); in Color()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DTintedDrawableSpan.java43 int iconSize = fm.bottom - fm.top; in getSize() local
44 mDrawable.setBounds(0, 0, iconSize, iconSize); in getSize()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDropBadgeView.java46 final int iconSize = context.getResources().getDimensionPixelSize(R.dimen.root_icon_size); in DropBadgeView() local
57 mBackground.setLayerSize(0, iconSize, iconSize); in DropBadgeView()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationFooterLayout.java80 int iconSize = res.getDimensionPixelSize(R.dimen.notification_footer_icon_size); in NotificationFooterLayout() local
81 mIconLayoutParams = new LayoutParams(iconSize, iconSize); in NotificationFooterLayout()
90 - iconSize * MAX_FOOTER_NOTIFICATIONS; in NotificationFooterLayout()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DCheckableLabeledButton.java85 int iconSize = getResources().getDimensionPixelSize(R.dimen.incall_labeled_button_size); in init() local
87 int iconPadding = (iconSize - imageSize) / 2; in init()
91 iconParams.width = iconSize; in init()
92 iconParams.height = iconSize; in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DNetworkOperatorPreference.java133 final int iconSize = in updateIcon() local
141 icons.setLayerSize(1 /* index of SignalDrawable */, iconSize, iconSize); in updateIcon()
/packages/apps/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java187 int iconSize = context.getResources().getDimensionPixelSize(R.dimen.notification_icon_size); in getPhotoIconWhenAppropriate() local
193 if (longerEdge > iconSize) { in getPhotoIconWhenAppropriate()
194 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java171 int iconSize = context.getResources() in getPhotoIconWhenAppropriate() local
178 if (longerEdge > iconSize) { in getPhotoIconWhenAppropriate()
179 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DContactsAsyncHelperTest.java150 int iconSize = mContext.getResources() in testImageScaling() local
152 assertTrue(iconSize >= iconCaptor.getValue().getHeight()); in testImageScaling()
153 assertTrue(iconSize >= iconCaptor.getValue().getWidth()); in testImageScaling()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DProviderPreferenceTest.java46 final int iconSize = in shouldUseSmallIcon() local
48 assertThat(iconSize).isEqualTo(ICON_SIZE_MEDIUM); in shouldUseSmallIcon()
/packages/apps/Settings/src/com/android/settings/sim/
DSimPreferenceDialog.java212 int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); in getView() local
220 drawable.setIntrinsicHeight(iconSize); in getView()
221 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimPreferenceDialog.java212 int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); in getView() local
220 drawable.setIntrinsicHeight(iconSize); in getView()
221 drawable.setIntrinsicWidth(iconSize); in getView()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java156 float iconSize = mIcon.mLauncher.getDeviceProfile().iconSizePx; in getFinalIconParams() local
158 final float scale = iconSize / mReferenceDrawable.getIntrinsicWidth(); in getFinalIconParams()
159 final float trans = (mIcon.mBackground.previewSize - iconSize) / 2; in getFinalIconParams()

12