Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/apppreference/
DAppPreferenceTest.java61 float iconSize = mContext.getResources().getDimension(R.dimen.secondary_app_icon_size); in foobar_testName() local
62 assertThat(Float.floatToIntBits(iconSize)).isEqualTo(Float.floatToIntBits(32)); in foobar_testName()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTwoTargetPreference.java81 public void setIconSize(@IconSize int iconSize) { in setIconSize() argument
82 mIconSize = iconSize; in setIconSize()
DUtils.java133 final int iconSize = UserIconDrawable.getSizeForList(context); in getUserIcon() local
136 drawable.setBounds(0, 0, iconSize, iconSize); in getUserIcon()
142 return new UserIconDrawable(iconSize).setIcon(icon).bake(); in getUserIcon()
145 return new UserIconDrawable(iconSize).setIconDrawable( in getUserIcon()
DRestrictedLockUtilsInternal.java63 final int iconSize = context.getResources().getDimensionPixelSize( in getRestrictedPadlock() local
71 restrictedPadlock.setBounds(0, 0, iconSize, iconSize); in getRestrictedPadlock()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DCircleFramedDrawable.java52 float iconSize = res.getDimension(R.dimen.circle_avatar_size); in getInstance() local
54 CircleFramedDrawable instance = new CircleFramedDrawable(icon, (int) iconSize); in getInstance()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothUtils.java140 final int iconSize = context.getResources().getDimensionPixelSize( in getBtRainbowDrawableWithDescription() local
159 final Bitmap resizedBitmap = Bitmap.createScaledBitmap(bitmap, iconSize, in getBtRainbowDrawableWithDescription()
160 iconSize, false); in getBtRainbowDrawableWithDescription()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java550 final int iconSize = am.getLauncherLargeIconSize(); in createSessionInternal() local
551 if ((params.appIcon.getWidth() > iconSize * 2) in createSessionInternal()
552 || (params.appIcon.getHeight() > iconSize * 2)) { in createSessionInternal()
553 params.appIcon = Bitmap.createScaledBitmap(params.appIcon, iconSize, iconSize, in createSessionInternal()
656 final int iconSize = am.getLauncherLargeIconSize(); in updateSessionAppIcon() local
657 if ((appIcon.getWidth() > iconSize * 2) in updateSessionAppIcon()
658 || (appIcon.getHeight() > iconSize * 2)) { in updateSessionAppIcon()
659 appIcon = Bitmap.createScaledBitmap(appIcon, iconSize, iconSize, true); in updateSessionAppIcon()
/frameworks/base/services/core/java/com/android/server/am/
DCarUserSwitchingDialog.java112 public static CircleFramedDrawable getInstance(Bitmap icon, float iconSize) { in getInstance() argument
113 CircleFramedDrawable instance = new CircleFramedDrawable(icon, (int) iconSize); in getInstance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java128 int iconSize; field in SaveImageInBackgroundData
136 iconSize = 0; in clearImage()
193 int iconSize = data.iconSize; in SaveImageInBackgroundTask() local
209 float scale = (float) iconSize / Math.min(mImageWidth, mImageHeight); in SaveImageInBackgroundTask()
211 matrix.postTranslate((iconSize - (scale * mImageWidth)) / 2, in SaveImageInBackgroundTask()
212 (iconSize - (scale * mImageHeight)) / 2); in SaveImageInBackgroundTask()
213 Bitmap icon = generateAdjustedHwBitmap(data.image, iconSize, iconSize, matrix, paint, in SaveImageInBackgroundTask()
702 data.iconSize = mNotificationIconSize; in saveScreenshotInWorkerThread()
/frameworks/base/services/tests/servicestests/assets/shortcut/
Ddumpsys_expected.txt104 "iconSize": 128
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDemoStatusIcons.java54 public DemoStatusIcons(LinearLayout statusIcons, int iconSize) { in DemoStatusIcons() argument
57 mIconSize = iconSize; in DemoStatusIcons()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java270 final int iconSize = mHasHeader ? mIconSizeWithHeader : mIconSize; in showSlice() local
274 / (float) iconDrawable.getIntrinsicHeight() * iconSize); in showSlice()
275 iconDrawable.setBounds(0, 0, Math.max(width, 1), iconSize); in showSlice()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java96 final int iconSize = r.getDimensionPixelSize(R.dimen.resolver_icon_size); in obtain() local
99 instance = new SimpleIconFactory(ctx, iconDpi, iconSize, badgeSize); in obtain()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationShelf.java706 float iconSize = mAmbientState.isFullyHidden() ? mHiddenShelfIconSize : mIconSize;
707 shelfIconPosition += (icon.getHeight() - icon.getIconScale() * iconSize) / 2.0f;
712 float shelfIconSize = iconSize * icon.getIconScale();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotNotificationSmartActionsTest.java173 data.iconSize = 10; in testNotificationActionExtras()
/frameworks/base/core/java/android/app/
DNotification.java4930 int iconSize = mContext.getResources().getDimensionPixelSize( in calculateMarginEnd() local
4934 marginEnd += iconSize; in calculateMarginEnd()
4944 marginEnd += iconSize; in calculateMarginEnd()