/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSliceView.java | 185 Drawable iconDrawable = null; in showSlice() local 190 iconDrawable = icon.getIcon().loadDrawable(mContext); in showSlice() 191 if (iconDrawable != null) { in showSlice() 192 if (iconDrawable instanceof InsetDrawable) { in showSlice() 195 iconDrawable = ((InsetDrawable) iconDrawable).getDrawable(); in showSlice() 197 final int width = (int) (iconDrawable.getIntrinsicWidth() in showSlice() 198 / (float) iconDrawable.getIntrinsicHeight() * iconSize); in showSlice() 199 iconDrawable.setBounds(0, 0, Math.max(width, 1), iconSize); in showSlice() 202 button.setCompoundDrawablesRelative(iconDrawable, null, null, null); in showSlice()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | SplashscreenContentDrawer.java | 602 Drawable iconDrawable; in build() local 609 iconDrawable = mTmpAttrs.mSplashScreenIcon; in build() 616 createIconDrawable(iconDrawable, false /* legacy */, false /* loadInDetail */); in build() 623 iconDrawable = mHighResIconProvider.getIcon( in build() 626 if (!processAdaptiveIcon(iconDrawable)) { in build() 633 final Bitmap bitmap = factory.createScaledBitmap(iconDrawable, in build() 650 private void createIconDrawable(Drawable iconDrawable, boolean legacy, in createIconDrawable() argument 654 iconDrawable, mDefaultIconSize, mFinalIconSize, loadInDetail, in createIconDrawable() 658 mTmpAttrs.mIconBgColor, mThemeColor, iconDrawable, mDefaultIconSize, in createIconDrawable() 663 private boolean processAdaptiveIcon(Drawable iconDrawable) { in processAdaptiveIcon() argument [all …]
|
D | SplashscreenIconDrawableFactory.java | 94 static Drawable[] makeLegacyIconDrawable(@NonNull Drawable iconDrawable, int srcIconSize, in makeLegacyIconDrawable() argument 96 return new Drawable[]{new ImmobileIconDrawable(iconDrawable, srcIconSize, iconSize, in makeLegacyIconDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/ |
D | QSTileState.kt | 59 val iconDrawable = resources.getDrawable(config.iconRes, theme) in build() constant 61 { Icon.Loaded(iconDrawable, null) }, in build()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleOverflow.kt | 129 overflowBtn?.iconDrawable?.setTint(shapeColor) in updateBtnTheme() 144 val fg = InsetDrawable(overflowBtn?.iconDrawable, overflowIconInset) in updateBtnTheme() 157 iconView!!.iconDrawable, in updateBtnTheme()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/ |
D | DoubleShadowIconDrawable.kt | 37 iconDrawable: Drawable, 52 mIconDrawable = InsetDrawable(iconDrawable, iconInsetSize)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ui/viewmodel/ |
D | SingleLineViewModel.kt | 57 data class SingleIcon(val iconDrawable: Drawable?) : ConversationAvatar() constant in com.android.systemui.statusbar.notification.row.ui.viewmodel.SingleIcon
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LocalImageResolver.java | 135 final Drawable iconDrawable = icon.loadDrawable(context); in resolveImage() local 136 if (iconDrawable == null) { in resolveImage() 139 return iconDrawable; in resolveImage()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileRequestDialogTest.kt | 234 val iconDrawable = (tile.icon.iconView as ImageView).drawable.apply { in uriIconLoadSuccess_correctIcon() constant 238 assertThat(areDrawablesEqual(iconDrawable, drawable, size)).isTrue() in uriIconLoadSuccess_correctIcon() 270 val iconDrawable = (tile.icon.iconView as ImageView).drawable.apply { in uriIconLoadFail_defaultIcon() constant 278 assertThat(areDrawablesEqual(iconDrawable, defaultIcon, size)).isTrue() in uriIconLoadFail_defaultIcon()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | AppCompatActionBar.java | 177 Drawable iconDrawable = getDrawable(icon); in setIcon() local 178 if (iconDrawable != null) { in setIcon() 180 invoke(setIcon, mWindowDecorActionBar, iconDrawable); in setIcon()
|
D | FrameworkActionBarWrapper.java | 284 Drawable iconDrawable = getDrawable(icon); in setIcon() local 285 if (iconDrawable != null) { in setIcon() 286 mActionBar.setIcon(iconDrawable); in setIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | FeedbackInfoTest.java | 144 final Drawable iconDrawable = mock(Drawable.class); in testBindNotification_SetsPackageIcon() local 146 .thenReturn(iconDrawable); in testBindNotification_SetsPackageIcon() 151 assertEquals(iconDrawable, iconView.getDrawable()); in testBindNotification_SetsPackageIcon()
|
D | SingleLineViewInflaterTest.kt | 425 iconDrawable?.equalsTo(other.iconDrawable) == true in <lambda>()
|
D | NotificationInfoTest.java | 198 final Drawable iconDrawable = mock(Drawable.class); in testBindNotification_SetsPackageIcon() local 200 .thenReturn(iconDrawable); in testBindNotification_SetsPackageIcon() 218 assertEquals(iconDrawable, iconView.getDrawable()); in testBindNotification_SetsPackageIcon()
|
D | ExpandableNotificationRowTest.java | 859 private void setDrawableIconsInImageView(CachingIconView icon, Drawable iconDrawable, in setDrawableIconsInImageView() argument 863 when(iconView.getDrawable()).thenReturn(iconDrawable); in setDrawableIconsInImageView()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageArchiver.java | 560 private static Path storeDrawable(String packageName, @Nullable Drawable iconDrawable, in storeDrawable() argument 562 if (iconDrawable == null) { in storeDrawable() 567 Bitmap icon = drawableToBitmap(iconDrawable, iconSize); in storeDrawable() 610 private static Path storeAdaptiveDrawable(String packageName, @Nullable Drawable iconDrawable, in storeAdaptiveDrawable() argument 612 if (iconDrawable == null) { in storeAdaptiveDrawable() 617 if (iconDrawable instanceof BitmapDrawable) { in storeAdaptiveDrawable() 618 var icon = ((BitmapDrawable) iconDrawable).getBitmap(); in storeAdaptiveDrawable() 619 iconDrawable = new FixedSizeBitmapDrawable(icon); in storeAdaptiveDrawable() 625 new InsetDrawable(iconDrawable/*d*/, inset, inset, inset, inset)); in storeAdaptiveDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyStateInflater.kt | 368 val iconDrawable = in inflateActionButton() constant 371 iconDrawable.setBounds(0, 0, newIconSize, newIconSize) in inflateActionButton() 373 setCompoundDrawablesRelative(iconDrawable, null, null, null) in inflateActionButton()
|
/frameworks/base/core/java/android/window/ |
D | SplashScreenView.java | 491 void initIconAnimation(Drawable iconDrawable) { in initIconAnimation() argument 492 if (!(iconDrawable instanceof IconAnimateListener)) { in initIconAnimation() 495 IconAnimateListener aniDrawable = (IconAnimateListener) iconDrawable; in initIconAnimation()
|