/packages/apps/Launcher3/src/com/android/launcher3/apppairs/ |
D | AppPairIconDrawingParams.kt | 45 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
|
D | AppPairIconGraphic.kt | 66 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/ |
D | ResponsiveCellSpecsProvider.kt | 82 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/ |
D | TaskbarSpecsEvaluator.kt | 33 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/ |
D | SplitPlaceholderView.java | 65 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/ |
D | Button.kt | 109 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/ |
D | IconFactory.java | 110 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/ |
D | DatabaseWidgetPreviewLoader.java | 225 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);
|
D | PendingItemDragHelper.java | 189 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/ |
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()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileIconProvider.java | 73 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/ |
D | ScrollableActionRow.kt | 66 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/ |
D | ShortcutDragPreviewProvider.java | 67 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/ |
D | UserIconProvider.java | 93 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/ |
D | TintedDrawableSpan.java | 43 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/ |
D | DropBadgeView.java | 46 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/ |
D | ResponsiveCellSpecsProviderTest.kt | 56 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/ |
D | KidsNavLayoutter.kt | 53 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/ |
D | ProviderPreferenceTest.java | 46 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/ |
D | MobileNetworkQCUtils.java | 121 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/ |
D | RenameMobileNetworkDialogFragment.java | 249 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/ |
D | ContactsAsyncHelper.java | 187 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/ |
D | CheckableLabeledButton.java | 85 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/ |
D | ContactsAsyncHelper.java | 171 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/ |
D | DreamAdapter.java | 88 final int iconSize = mContext.getResources().getDimensionPixelSize( in bindView() local 90 icon.setBounds(0, 0, iconSize, iconSize); in bindView()
|