Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/pm/
DArchivedActivityInfo.java95 public static Bitmap drawableToBitmap(Drawable drawable, int iconSize) { in drawableToBitmap() argument
115 if (iconSize <= 0) { in drawableToBitmap()
119 if (bitmap.getWidth() < iconSize || bitmap.getHeight() < iconSize in drawableToBitmap()
120 || bitmap.getWidth() > iconSize * 2 || bitmap.getHeight() > iconSize * 2) { in drawableToBitmap()
121 var scaledBitmap = Bitmap.createScaledBitmap(bitmap, iconSize, iconSize, true); in drawableToBitmap()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppIconCacheManagerTest.java70 final int iconSize = in setUp() local
73 doReturn(iconSize).when(mIcon1).getIntrinsicHeight(); in setUp()
74 doReturn(iconSize).when(mIcon1).getIntrinsicWidth(); in setUp()
77 doReturn(iconSize).when(mIcon2).getIntrinsicHeight(); in setUp()
78 doReturn(iconSize).when(mIcon2).getIntrinsicWidth(); in setUp()
81 doReturn(iconSize).when(mIcon3).getIntrinsicHeight(); in setUp()
82 doReturn(iconSize).when(mIcon3).getIntrinsicWidth(); in setUp()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/material/
DButton.kt114 .size(buttonSize.iconSize) in Button()
128 public val iconSize: Dp, constant in com.google.android.horologist.compose.material.ButtonSize
132 ButtonSize(iconSize = DefaultIconSize, tapTargetSize = DefaultButtonSize)
134 public object Large : ButtonSize(iconSize = LargeIconSize, tapTargetSize = LargeButtonSize)
135 public object Small : ButtonSize(iconSize = SmallIconSize, tapTargetSize = SmallButtonSize)
141 ButtonSize(iconSize = customIconSize, tapTargetSize = customTapTargetSize)
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DDismissCircleView.java72 final int iconSize = getResources().getDimensionPixelSize(mIconSizeResId); in setViewSizes() local
74 new FrameLayout.LayoutParams(iconSize, iconSize, Gravity.CENTER)); in setViewSizes()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenIconDrawableFactory.java65 @NonNull Drawable foregroundDrawable, int srcIconSize, int iconSize, in makeIconDrawable() argument
78 srcIconSize, iconSize, loadInDetail, preDrawHandler); in makeIconDrawable()
84 srcIconSize, iconSize, loadInDetail, preDrawHandler); in makeIconDrawable()
95 int iconSize, boolean loadInDetail, Handler preDrawHandler) { in makeLegacyIconDrawable() argument
96 return new Drawable[]{new ImmobileIconDrawable(iconDrawable, srcIconSize, iconSize, in makeLegacyIconDrawable()
110 ImmobileIconDrawable(Drawable drawable, int srcIconSize, int iconSize, boolean loadInDetail, in ImmobileIconDrawable() argument
114 preDrawHandler.post(() -> preDrawIcon(drawable, iconSize)); in ImmobileIconDrawable()
116 final float scale = (float) iconSize / srcIconSize; in ImmobileIconDrawable()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java142 public int iconSize; field in PackageUtil.AppSnippet
148 this.iconSize = am.getLauncherLargeIconSize(); in AppSnippet()
156 iconSize = in.readInt(); in AppSnippet()
177 dest.writeInt(iconSize); in writeToParcel()
191 if ((bmp.getWidth() > iconSize * 2) || (bmp.getHeight() > iconSize * 2)) { in getBitmapFromDrawable()
192 Bitmap scaledBitmap = Bitmap.createScaledBitmap(bmp, iconSize, iconSize, true); in getBitmapFromDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DOngoingPrivacyChip.kt42 private var iconSize = 0 in <lambda>() variable
87 iconsContainer.addView(image, iconSize, iconSize) in <lambda>()
125 iconSize = context.resources in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DPromptIconViewBinder.kt107 combine(viewModel.activeAuthType, viewModel.iconSize, ::Pair).collect { in <lambda>()
108 (activeAuthType, iconSize) -> in <lambda>() method
150 iconView.layoutParams.width = iconSize.first in <lambda>()
151 iconView.layoutParams.height = iconSize.second in <lambda>()
153 iconOverlayView.layoutParams.width = iconSize.first in <lambda>()
154 iconOverlayView.layoutParams.height = iconSize.second in <lambda>()
DBiometricViewSizeBinder.kt306 viewModel.iconSize.collect { iconSize -> in <lambda>() method
307 iconHolderView.layoutParams.width = iconSize.first in <lambda>()
308 iconHolderView.layoutParams.height = iconSize.second in <lambda>()
309 mediumConstraintSet.constrainWidth(R.id.biometric_icon, iconSize.first) in <lambda>()
312 iconSize.second in <lambda>()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DPlatformSlider.kt346 val iconSize = iconPlaceable?.width ?: 0 in measure() constant
347 val labelMaxWidth = if (enabled) (desiredWidth - iconSize) / 2 else desiredWidth - iconSize in measure()
367 (desiredWidth - iconSize) * (1 - sliderState.coercedNormalizedValue), in measure()
371 iconWidth = iconSize.toFloat(), in measure()
382 iconSize + (desiredWidth - iconSize) * sliderState.coercedNormalizedValue, in measure()
384 iconWidth = iconSize.toFloat(), in measure()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DResizeVeil.kt70 private var iconSize = 0 variable
141 iconSize = context.resources in setupResizeVeil()
148 iconSize, in setupResizeVeil()
149 iconSize, in setupResizeVeil()
365 return PointF(parentBounds.width().toFloat() / 2 - iconSize.toFloat() / 2, in calculateAppIconPosition()
366 parentBounds.height().toFloat() / 2 - iconSize.toFloat() / 2) in calculateAppIconPosition()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAppPreferenceTest.java61 …float iconSize = mContext.getResources().getDimension(com.android.settingslib.widget.theme.R.dimen… in foobar_testName() local
62 assertThat(Float.floatToIntBits(iconSize)).isEqualTo(Float.floatToIntBits(32)); in foobar_testName()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ui/
DEntry.kt87 val iconSize = Modifier.size(24.dp) constant
187 modifier = iconSize, in <lambda>()
199 modifier = iconSize, in <lambda>()
211 modifier = iconSize, in <lambda>()
223 modifier = iconSize, in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodPreference.java155 final int iconSize = getContext().getResources().getDimensionPixelSize( in onBindViewHolder() local
157 if (icon != null && iconSize > 0) { in onBindViewHolder()
159 params.height = iconSize; in onBindViewHolder()
160 params.width = iconSize; in onBindViewHolder()
/frameworks/base/packages/SettingsLib/TwoTargetPreference/src/com/android/settingslib/widget/
DTwoTargetPreference.java86 public void setIconSize(@IconSize int iconSize) { in setIconSize() argument
87 mIconSize = iconSize; in setIconSize()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowIconDrawable.kt38 iconSize: Int,
48 mCanvasSize = iconSize + iconInsetSize * 2
/frameworks/base/services/core/java/com/android/server/pm/
DPackageArchiver.java494 final int iconSize = mContext.getSystemService( in createArchiveState() local
506 packageName, mainActivity.getIcon(), userId, i * 2 + 0, iconSize); in createArchiveState()
508 packageName, mainActivity.getMonochromeIcon(), userId, i * 2 + 1, iconSize); in createArchiveState()
528 final int iconSize = mContext.getSystemService( in createArchiveStateInternal() local
534 Path iconPath = storeIcon(packageName, mainActivity, userId, i * 2 + 0, iconSize); in createArchiveStateInternal()
550 @UserIdInt int userId, int index, int iconSize) throws IOException { in storeIcon() argument
557 iconSize); in storeIcon()
561 @UserIdInt int userId, int index, int iconSize) throws IOException { in storeDrawable() argument
567 Bitmap icon = drawableToBitmap(iconDrawable, iconSize); in storeDrawable()
611 @UserIdInt int userId, int index, int iconSize) throws IOException { in storeAdaptiveDrawable() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DCircleFramedDrawable.java50 int iconSize = res.getDimensionPixelSize(com.android.internal.R.dimen.user_icon_size); in getInstance() local
52 CircleFramedDrawable instance = new CircleFramedDrawable(icon, iconSize); in getInstance()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDropZoneView.java114 final int iconSize = context.getResources().getDimensionPixelSize(R.dimen.split_icon_size); in DropZoneView() local
118 new FrameLayout.LayoutParams(iconSize, iconSize, Gravity.CENTER)); in DropZoneView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DUdfpsOverlayInteractor.kt64 private var iconSize: Int = calculateIconSize() in <lambda>() variable
126 val nativePadding = (sensorWidth - iconSize) / 2 in <lambda>()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBubbleIconFactory.java38 public BubbleIconFactory(Context context, int iconSize, int badgeSize, int ringColor, in BubbleIconFactory() argument
40 super(context, context.getResources().getConfiguration().densityDpi, iconSize); in BubbleIconFactory()
DShadowGenerator.java54 public ShadowGenerator(int iconSize) { in ShadowGenerator() argument
55 mIconSize = iconSize; in ShadowGenerator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt233 val iconSize = resources.getDimensionPixelSize(R.dimen.qs_icon_size) in <lambda>() constant
234 addView(icon, LayoutParams(iconSize, iconSize)) in <lambda>()
264 val iconSize = context.resources.getDimensionPixelSize(R.dimen.qs_icon_size) in <lambda>() constant
266 height = iconSize in <lambda>()
267 width = iconSize in <lambda>()
279 height = iconSize in <lambda>()
280 width = iconSize in <lambda>()
285 height = iconSize in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java146 int iconSize, in ConversationIconDrawable() argument
151 mIconSize = iconSize; in ConversationIconDrawable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothUtils.java229 final int iconSize = in getBtDrawableWithDescription() local
250 Bitmap.createScaledBitmap(bitmap, iconSize, iconSize, false); in getBtDrawableWithDescription()
371 final int iconSize = in buildAdvancedDrawable() local
386 Bitmap.createScaledBitmap(bitmap, iconSize, iconSize, false); in buildAdvancedDrawable()

12