/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 99 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()
|
D | Partner.java | 120 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()
|
D | WidgetPreviewLoader.java | 424 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()
|
D | BubbleTextView.java | 440 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/ |
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/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/Launcher3/src/com/android/launcher3/shortcuts/ |
D | ShortcutDragPreviewProvider.java | 63 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/ |
D | PendingItemDragHelper.java | 126 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()
|
D | PendingAppWidgetHostView.java | 223 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/ |
D | ThirdPartyWallpaperInfo.java | 28 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/ |
D | RenameMobileNetworkDialogFragment.java | 209 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/ |
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/src/com/android/launcher3/notification/ |
D | NotificationFooterLayout.java | 80 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/ |
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/Telephony/src/com/android/phone/ |
D | NetworkOperatorPreference.java | 126 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/ |
D | NetworkOperatorPreference.java | 133 final int iconSize = in updateIcon() local 141 icons.setLayerSize(1 /* index of SignalDrawable */, iconSize, iconSize); in updateIcon()
|
/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/services/Telecomm/src/com/android/server/telecom/ |
D | ContactsAsyncHelper.java | 160 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/ |
D | ContactsAsyncHelperTest.java | 137 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/ |
D | ProviderPreferenceTest.java | 46 final int iconSize = in shouldUseSmallIcon() local 48 assertThat(iconSize).isEqualTo(ICON_SIZE_MEDIUM); in shouldUseSmallIcon()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimPreferenceDialog.java | 212 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/ |
D | CircleFramedDrawable.java | 49 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/ |
D | SimPreferenceDialog.java | 212 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/ |
D | PreviewItemManager.java | 130 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()
|