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.java99 public float iconSize; field in InvariantDeviceProfile
134 iconSize = p.iconSize; in InvariantDeviceProfile()
210 iconSize = interpolatedDisplayOption.iconSize; in initGrid()
213 iconBitmapSize = ResourceUtils.pxFromDp(iconSize, dm); in initGrid()
304 if (iconSize != oldProfile.iconSize || iconBitmapSize != oldProfile.iconBitmapSize || in onConfigChanged()
532 private float iconSize; field in InvariantDeviceProfile.DisplayOption
548 iconSize = a.getFloat(R.styleable.ProfileDisplayOption_iconImageSize, 0); in DisplayOption()
550 iconSize); in DisplayOption()
564 iconSize *= w; in multiply()
571 iconSize += p.iconSize; in add()
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.java424 int iconSize = (int) Math.min(appIconSize * scale, in generateWidgetPreview() local
428 int hoffset = (previewWidth - iconSize) / 2; in generateWidgetPreview()
429 int yoffset = (previewHeight - iconSize) / 2; in generateWidgetPreview()
430 icon.setBounds(hoffset, yoffset, hoffset + iconSize, yoffset + iconSize); in generateWidgetPreview()
456 int iconSize = launcher.getDeviceProfile().iconSizePx; in generateShortcutPreview() local
460 int size = iconSize + 2 * padding; in generateShortcutPreview()
487 boxRect.set(0, 0, iconSize, iconSize); in generateShortcutPreview()
DBubbleTextView.java440 public static void getIconBounds(View iconView, Rect outBounds, int iconSize) { in getIconBounds() argument
442 int left = (iconView.getWidth() - iconSize) / 2; in getIconBounds()
443 int right = left + iconSize; in getIconBounds()
444 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.java209 final int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); in getColors() local
213 colors[i] = new Color(colorStrings[i], colorInts[i], iconSize, strokeWidth); in getColors()
224 private Color(String label, int color, int iconSize, int strokeWidth) { in Color() argument
228 mDrawable.setIntrinsicHeight(iconSize); in Color()
229 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/Telephony/src/com/android/phone/
DNetworkOperatorPreference.java126 final int iconSize = in updateIcon() local
134 icons.setLayerSize(1 /* index of SignalDrawable */, iconSize, iconSize); in updateIcon()
/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.java160 int iconSize = context.getResources() in getPhotoIconWhenAppropriate() local
167 if (longerEdge > iconSize) { in getPhotoIconWhenAppropriate()
168 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DContactsAsyncHelperTest.java137 int iconSize = mContext.getResources() in testImageScaling() local
139 assertTrue(iconSize >= iconCaptor.getValue().getHeight()); in testImageScaling()
140 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.java130 float iconSize = mIcon.mLauncher.getDeviceProfile().iconSizePx; in getFinalIconParams() local
132 final float scale = iconSize / mReferenceDrawable.getIntrinsicWidth(); in getFinalIconParams()
133 final float trans = (mIcon.mBackground.previewSize - iconSize) / 2; in getFinalIconParams()

12