Home
last modified time | relevance | path

Searched refs:mIconSize (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java98 private int mIconSize; field in ShortcutIntentBuilder
134 mIconSize = mResources.getDimensionPixelSize(R.dimen.shortcut_icon_size); in ShortcutIntentBuilder()
135 if (mIconSize == 0) { in ShortcutIntentBuilder()
136 mIconSize = am.getLauncherLargeIconSize(); in ShortcutIntentBuilder()
371 Bitmap bitmap = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); in generateQuickContactIcon()
375 Rect dst = new Rect(0,0, mIconSize, mIconSize); in generateQuickContactIcon()
388 roundedDrawable.setCornerRadius(mIconSize / 2); in generateQuickContactIcon()
389 Bitmap roundedBitmap = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); in generateQuickContactIcon()
419 Rect dst = new Rect(0, 0, mIconSize, mIconSize); in generatePhoneNumberIcon()
440 dst.set(0, mIconSize - textBandHeight, mIconSize, mIconSize); in generatePhoneNumberIcon()
[all …]
DDynamicShortcuts.java111 private int mIconSize; field in DynamicShortcuts
135 mIconSize = context.getResources().getDimensionPixelSize(R.dimen.shortcut_icon_size); in DynamicShortcuts()
136 if (mIconSize == 0) { in DynamicShortcuts()
137 mIconSize = am.getLauncherLargeIconSize(); in DynamicShortcuts()
385 BitmapUtil.findOptimalSampleSize(sourceWidth, mIconSize), in decodeStreamForShortcut()
386 BitmapUtil.findOptimalSampleSize(sourceHeight, mIconSize)); in decodeStreamForShortcut()
429 final Bitmap result = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); in getFallbackAvatar()
433 avatar.setBounds(0, 0, mIconSize, mIconSize); in getFallbackAvatar()
/packages/apps/Messaging/src/com/android/messaging/ui/
DContactIconView.java45 protected final int mIconSize; field in ContactIconView
63 mIconSize = (int) resources.getDimension( in ContactIconView()
67 mIconSize = (int) resources.getDimension( in ContactIconView()
71 mIconSize = (int) resources.getDimension( in ContactIconView()
76 mIconSize = 0; in ContactIconView()
118 setImageResourceId(new AvatarGroupRequestDescriptor(uri, mIconSize, mIconSize)); in setImageResourceUri()
120 setImageResourceId(new AvatarRequestDescriptor(uri, mIconSize, mIconSize)); in setImageResourceUri()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/handheld/
DAppIconPreference.java84 private int mIconSize; field in AppIconPreference.Mixin
87 mIconSize = context.getResources().getDimensionPixelSize( in Mixin()
103 if (layoutParams.width != mIconSize) { in onBindViewHolder()
104 layoutParams.width = mIconSize; in onBindViewHolder()
107 if (layoutParams.height != mIconSize) { in onBindViewHolder()
108 layoutParams.height = mIconSize; in onBindViewHolder()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DUndoBarView.java44 private final int mIconSize; field in UndoBarView
67 mIconSize = GalleryUtils.dpToPixel(32); in UndoBarView()
83 + mIconMargin + mIconSize + mSeparatorRightMargin; in UndoBarView()
114 x -= mIconMargin + mIconSize; in render()
115 y = (mBarHeight - mIconSize) / 2; in render()
116 mUndoIcon.draw(canvas, x, y, mIconSize, mIconSize); in render()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java61 protected int mIconSize; field in BaseWidgetFactory
72 mIconSize = (int) context.getResources() in BaseWidgetFactory()
173 descriptor = new AvatarGroupRequestDescriptor(avatarUri, mIconSize, mIconSize);
175 descriptor = new AvatarRequestDescriptor(avatarUri, mIconSize, mIconSize);
DWidgetConversationService.java84 mIconSize = (int) context.getResources() in WidgetConversationFactory()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java20 private float mIconSize; field in ClippedFolderIconLayoutRule
27 mIconSize = intrinsicIconSize; in init()
49 mTmpPoint[0] = mTmpPoint[1] = mAvailableSpace / 2 - (mIconSize * totalScale) / 2; in computePreviewItemDrawingParams()
120 float halfIconSize = (mIconSize * scaleForItem(curNumItems)) / 2; in getPosition()
144 return mIconSize; in getIconSize()
DPreviewItemManager.java70 private final int mIconSize; field in PreviewItemManager
98 mIconSize = Launcher.getLauncher(mContext).getDeviceProfile().folderChildIconSizePx; in PreviewItemManager()
404 p.drawable.setBounds(0, 0, mIconSize, mIconSize);
/packages/apps/Camera2/src/com/android/camera/ui/
DModeTransitionView.java79 private int mIconSize; field in ModeTransitionView
112 mIconSize = getResources().getDimensionPixelSize(R.dimen.mode_transition_view_icon_size); in ModeTransitionView()
198 mIconRect.set(mWidth / 2 - mIconSize / 2, mHeight / 2 - mIconSize / 2, in onLayout()
199 mWidth / 2 + mIconSize / 2, mHeight / 2 + mIconSize / 2); in onLayout()
251 int size = (int) (scale * (float) mIconSize); in startPeepHoleAnimation()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientPhotoManager.java43 private final int mIconSize; field in ContactRecipientPhotoManager
49 mIconSize = context.getResources().getDimensionPixelSize( in ContactRecipientPhotoManager()
68 new AvatarRequestDescriptor(avatarUri, mIconSize, mIconSize); in populatePhotoBytesAsync()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DThirdPartyWallpaperInfo.java26 private final int mIconSize; field in ThirdPartyWallpaperInfo
30 mIconSize = iconSize; in ThirdPartyWallpaperInfo()
52 icon.setBounds(new Rect(0, 0, mIconSize, mIconSize)); in createView()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DShadowGenerator.java45 private final int mIconSize; field in ShadowGenerator
52 mIconSize = iconSize; in ShadowGenerator()
55 mDefaultBlurMaskFilter = new BlurMaskFilter(mIconSize * BLUR_FACTOR, Blur.NORMAL); in ShadowGenerator()
74 out.drawBitmap(shadow, offset[0], offset[1] + KEY_SHADOW_DISTANCE * mIconSize, mDrawPaint); in recreateIcon()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java40 private int mIconSize = 160; field in UserPresetsAdapter
50 mIconSize = context.getResources().getDimensionPixelSize(R.dimen.category_panel_icon_size); in UserPresetsAdapter()
112 action.setImageFrame(new Rect(0, 0, mIconSize, mIconSize), CategoryView.VERTICAL); in getView()
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java114 private final int mIconSize; field in BubbleTextView
188 mIconSize = a.getDimensionPixelSize(R.styleable.BubbleTextView_iconSizeOverride, in BubbleTextView()
455 getIconBounds(this, outBounds, mIconSize); in getIconBounds()
470 int cellHeightPx = mIconSize + getCompoundDrawablePadding() + in onMeasure()
642 icon.setBounds(0, 0, mIconSize, mIconSize); in applyCompoundDrawables()
701 return mIconSize; in getIconSize()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionPreference.java67 private final int mIconSize; field in PermissionPreference
131 mIconSize = iconSize; in PermissionPreference()
448 if (mIconSize > 0) { in onBindViewHolder()
451 icon.setMaxWidth(mIconSize); in onBindViewHolder()
452 icon.setMaxHeight(mIconSize); in onBindViewHolder()
DAdjustUserSensitiveFragment.java223 private final int mIconSize; field in AdjustUserSensitiveFragment.NonUserSensitiveAppPreference
230 mIconSize = context.getResources().getDimensionPixelSize( in NonUserSensitiveAppPreference()
242 icon.setMaxWidth(mIconSize); in onBindViewHolder()
243 icon.setMaxHeight(mIconSize); in onBindViewHolder()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAppChooserActivity.java61 private int mIconSize; field in AppChooserActivity
102 mIconSize = am.getLauncherLargeIconSize(); in onCreate()
259 lp.width = lp.height = mIconSize; in getView()