Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/apppairs/
DAppPairIconDrawingParams.kt45 val iconSize: Int constant
71 iconSize = if (container == DISPLAY_FOLDER) dp.folderChildIconSizePx else dp.iconSizePx
72 standardIconPadding = iconSize * STANDARD_ICON_PADDING
73 outerPadding = iconSize * OUTER_PADDING_SCALE
74 backgroundSize = iconSize * STANDARD_ICON_SHRINK - (outerPadding * 2)
75 centerChannelSize = iconSize * CENTER_CHANNEL_SCALE
76 bigRadius = iconSize * BIG_RADIUS_SCALE
77 smallRadius = iconSize * SMALL_RADIUS_SCALE
78 innerPadding = iconSize * INNER_PADDING_SCALE
79 memberIconSize = iconSize * MEMBER_ICON_SCALE
DAppPairIconGraphic.kt66 fullIconDrawable.setBounds(0, 0, p.iconSize, p.iconSize) in composeDrawable()
84 lp.height = drawParams.iconSize in init()
85 lp.width = drawParams.iconSize in init()
/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveCellSpecsProvider.kt82 val iconSize: SizeSpec, constant in CellSpec
104 iconSize = specs.getOrError(SizeSpec.XmlTags.ICON_SIZE),
130 val totalSize = iconSize.fixedSize + iconTextSize.fixedSize + iconDrawablePadding.fixedSize in isValidFixedSize()
135 return (iconSize.fixedSize > 0f || iconSize.matchWorkspace) && in allSpecsAreValid()
152 val iconSize: Int, constant in CalculatedCellSpec
162 iconSize = spec.iconSize.getCalculatedValue(availableSpace),
174 iconSize = getCalculatedValue(availableSpace, spec.iconSize, workspaceCellSpec.iconSize),
197 "availableSpace=$availableSpace, iconSize=$iconSize, " + in getCalculatedValue()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/customization/
DTaskbarSpecsEvaluator.kt33 fun getIconSizeStepDown(iconSize: TaskbarIconSize): TaskbarIconSize { in getIconSizeStepDown()
36 val currentIconSizeIndex = TaskbarIconSpecs.transientTaskbarIconSizes.indexOf(iconSize) in getIconSizeStepDown()
39 return if (currentIconSizeIndex == -1 || currentIconSizeIndex == 0) iconSize in getIconSizeStepDown()
43 fun getIconSizeStepUp(iconSize: TaskbarIconSize): TaskbarIconSize { in getIconSizeStepUp()
46 val currentIconSizeIndex = TaskbarIconSpecs.transientTaskbarIconSizes.indexOf(iconSize) in getIconSizeStepUp()
53 iconSize in getIconSizeStepUp()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DSplitPlaceholderView.java65 public void setIcon(Drawable drawable, int iconSize) { in setIcon() argument
71 mIconView.setDrawableSize(iconSize, iconSize); in setIcon()
72 FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(iconSize, iconSize); in setIcon()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DButton.kt109 val iconModifier = Modifier.size(buttonSize.iconSize).align(Alignment.Center) in Button()
120 public sealed class ButtonSize(public val iconSize: Dp, public val tapTargetSize: Dp) { constant in com.android.permissioncontroller.permission.ui.wear.elements.ButtonSize
122 ButtonSize(iconSize = DefaultIconSize, tapTargetSize = DefaultButtonSize)
124 public object Large : ButtonSize(iconSize = LargeIconSize, tapTargetSize = LargeButtonSize)
125 public object Small : ButtonSize(iconSize = SmallIconSize, tapTargetSize = SmallButtonSize)
132 ButtonSize(iconSize = customIconSize, tapTargetSize = customTapTargetSize)
/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/Launcher3/src/com/android/launcher3/widget/
DDatabaseWidgetPreviewLoader.java225 int iconSize = (int) Math.min(appIconSize * scale, in generateWidgetPreview()
229 int hoffset = (previewWidthF - iconSize) / 2; in generateWidgetPreview()
230 int yoffset = (previewHeightF - iconSize) / 2; in generateWidgetPreview()
231 icon.setBounds(hoffset, yoffset, hoffset + iconSize, yoffset + iconSize); in generateWidgetPreview() argument
257 int iconSize = ActivityContext.lookupContext(mContext).getDeviceProfile().allAppsIconSizePx;
261 int size = iconSize + 2 * padding;
273 icon.setBounds(padding, padding, padding + iconSize, padding + iconSize);
DPendingItemDragHelper.java189 int iconSize = dp.iconSizePx; in startDrag() local
197 dragRegion.left = (mEstimatedCellSize[0] - iconSize) / 2; in startDrag()
198 dragRegion.right = dragRegion.left + iconSize; in startDrag()
200 - iconSize - dp.iconTextSizePx - dp.iconDrawablePaddingPx) / 2; in startDrag()
201 dragRegion.bottom = dragRegion.top + iconSize; in startDrag()
/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/Car/Settings/src/com/android/car/settings/profiles/
DProfileIconProvider.java73 int iconSize = userIcon.getIntrinsicWidth(); in getDrawableWithBadge() local
79 userAvatarView.setBadgeDiameter(iconSize * badgeToIconSizeRatio); in getDrawableWithBadge()
85 badgedIcon.setBounds(0, 0, iconSize, iconSize); in getDrawableWithBadge()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DScrollableActionRow.kt66 private val iconSize: Int = in <lambda>() constant in com.android.intentresolver.widget.ScrollableActionRow.Adapter
74 iconSize, in <lambda>()
100 private val iconSize: Int, in <lambda>() constant in com.android.intentresolver.widget.ScrollableActionRow.ViewHolder
105 icon.setBounds(0, 0, iconSize, iconSize) in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutDragPreviewProvider.java67 int iconSize = getDrawableBounds(mView.getBackground()).width(); in getScaleAndPosition() local
72 iconLeft = mView.getWidth() - iconSize - iconLeft; in getScaleAndPosition()
76 scale * iconLeft + (scale * iconSize - preview.getIntrinsicWidth()) / 2 in getScaleAndPosition()
81 return scale * iconSize / size; in getScaleAndPosition()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserIconProvider.java93 int iconSize = drawable.getIntrinsicWidth(); in addBadge() local
99 userAvatarView.setBadgeDiameter(iconSize * badgeToIconSizeRatio); in addBadge()
111 badgedIcon.setBounds(0, 0, iconSize, iconSize); in addBadge()
/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/tests/multivalentTests/src/com/android/launcher3/responsive/
DResponsiveCellSpecsProviderTest.kt56 iconSize = SizeSpec(48f.dpToPx()), in parseValidFile()
64 iconSize = SizeSpec(52f.dpToPx()), in parseValidFile()
85 iconSize = SizeSpec(52f.dpToPx()), in parseValidFile()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DKidsNavLayoutter.kt53 val iconSize: Int = resources.getDimensionPixelSize(DIMEN_TASKBAR_ICON_SIZE_KIDS) in layoutButtons() constant
59 val paddingLeft = (buttonWidth - iconSize) / 2 in layoutButtons()
60 val paddingTop = (buttonHeight - iconSize) / 2 in layoutButtons()
/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/Car/Settings/src/com/android/car/settings/qc/
DMobileNetworkQCUtils.java121 int iconSize = context.getResources().getDimensionPixelSize(R.dimen.icon_size); in createSignalDrawable() local
128 icons.setLayerSize(/* index= */ 1, iconSize, iconSize); in createSignalDrawable()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragment.java249 final int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); in getColors() local
253 colors[i] = new Color(colorStrings[i], colorInts[i], iconSize, strokeWidth); in getColors()
264 private Color(String label, int color, int iconSize, int strokeWidth) { in Color() argument
268 mDrawable.setIntrinsicHeight(iconSize); in Color()
269 mDrawable.setIntrinsicWidth(iconSize); in Color()
/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/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/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/apps/Settings/src/com/android/settings/dream/
DDreamAdapter.java88 final int iconSize = mContext.getResources().getDimensionPixelSize( in bindView() local
90 icon.setBounds(0, 0, iconSize, iconSize); in bindView()

123