Home
last modified time | relevance | path

Searched refs:loadDrawable (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java46 final Drawable expected = Icon.createWithResource(packageName, resId).loadDrawable(context); in testLoadResource()
51 final Drawable actual = Icon.createWithContentUri(uri).loadDrawable(context); in testLoadResource()
66 assertThat(Icon.createWithContentUri(badUri).loadDrawable(context)).isNull(); in testLoadResource_badUri()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DIconCacheTest.java50 doReturn(drawable).when(mIcon).loadDrawable(mContext); in setUp()
62 verify(mIcon, times(1)).loadDrawable(mContext); in testGetIcon_iconAlreadyLoaded()
64 verify(mIcon, times(1)).loadDrawable(mContext); in testGetIcon_iconAlreadyLoaded()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableInflater.java64 public static @Nullable Drawable loadDrawable(@NonNull Context context, @DrawableRes int id) { in loadDrawable() method in DrawableInflater
65 return loadDrawable(context.getResources(), context.getTheme(), id); in loadDrawable()
76 public static @Nullable Drawable loadDrawable(@NonNull Resources resources, in loadDrawable() method in DrawableInflater
DIcon.java353 public @Nullable Drawable loadDrawable(Context context) { in loadDrawable() method in Icon
490 return loadDrawable(context); in loadDrawableAsUser()
1045 mMessage.obj = loadDrawable(mContext); in run()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java62 final Drawable draw1 = im1.loadDrawable(mContext); in testWithBitmap()
63 final Drawable draw2 = im2.loadDrawable(mContext); in testWithBitmap()
64 final Drawable draw3 = im3.loadDrawable(mContext); in testWithBitmap()
135 final AdaptiveIconDrawable draw1 = (AdaptiveIconDrawable) im1.loadDrawable(mContext); in testWithAdaptiveBitmap()
166 final Drawable draw1 = im1.loadDrawable(mContext); in testWithBitmapResource()
216 final Drawable draw1 = im1.loadDrawable(getContext()); in testWithStatSysAdbResource()
248 final Drawable draw1 = im1.loadDrawable(mContext); in testWithFile()
351 final Drawable draw1 = img.loadDrawable(mContext); in testParcel()
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java117 return icon.loadDrawable(context); in resolveImage()
135 return icon.loadDrawable(context); in resolveImage()
187 return smallerIcon.loadDrawable(context); in resolveBitmapImage()
191 return icon.loadDrawable(context); in resolveBitmapImage()
DEmphasizedNotificationButton.java85 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in setImageIcon()
94 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in setImageIconAsync()
DBigPictureNotificationImageView.java107 return icon.loadDrawable(mContext); in loadImage()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java45 drawable = icon.loadDrawable(mContext); in getIcon()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java427 return loadDrawable(context, density, providerInfo.getIconResource(), true); in loadIcon()
447 return loadDrawable(context, density, previewImage, false); in loadPreviewImage()
555 private Drawable loadDrawable(Context context, int density, int resourceId, in loadDrawable() method in AppWidgetProviderInfo
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt175 `when`(customTile.qsTile.icon.loadDrawable(any(Context::class.java))) in testValueUpdatedInBooleanTile()
197 `when`(customTile.qsTile.icon.loadDrawable(any(Context::class.java))) in testNoCrashOnNullDrawable()
247 `when`(tile.qsTile.icon.loadDrawable(any(Context::class.java))) in testPersistedStateRetrieved()
378 `when`(tile.qsTile.icon.loadDrawable(any(Context::class.java))) in testActiveTileDoesntListenAfterFirstTime()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleIconFactory.java64 return ic.loadDrawable(context); in getBubbleDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileRequestDialog.kt73 icon = tileData.icon?.loadDrawable(context)?.let { in createTileView()
/frameworks/base/core/java/android/widget/
DAnalogClock.java220 mDial = icon.loadDrawable(getContext()); in setDial()
296 mHourHand = icon.loadDrawable(getContext()); in setHourHand()
373 mMinuteHand = icon.loadDrawable(getContext()); in setMinuteHand()
453 mSecondHand = icon == null ? null : icon.loadDrawable(getContext()); in setSecondHand()
DCompoundButton.java355 setButtonDrawable(icon == null ? null : icon.loadDrawable(getContext())); in setButtonIcon()
360 Drawable button = icon == null ? null : icon.loadDrawable(getContext()); in setButtonIconAsync()
DSwitch.java584 setTrackDrawable(icon == null ? null : icon.loadDrawable(getContext())); in setTrackIcon()
589 Drawable track = icon == null ? null : icon.loadDrawable(getContext()); in setTrackIconAsync()
765 setThumbDrawable(icon == null ? null : icon.loadDrawable(getContext())); in setThumbIcon()
770 Drawable track = icon == null ? null : icon.loadDrawable(getContext()); in setThumbIconAsync()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java186 .loadDrawable(getContext()); in updateSummary()
227 .loadDrawable(getContext()); in setupIcons()
DLockscreenFragment.java173 return mShortcut.icon.loadDrawable(mContext); in getDrawable()
353 mIconState.drawable = shortcut.icon.loadDrawable(context).mutate(); in ShortcutButton()
DShortcutPicker.java183 setIcon(mShortcut.icon.loadDrawable(getContext())); in onBindViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletScreenController.java345 mCardDrawable = mWalletCard.getCardImage().loadDrawable(context); in QAWalletCardViewInfo()
348 mIconDrawable = icon == null ? null : icon.loadDrawable(context); in QAWalletCardViewInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DThumbnailBehavior.kt83 val drawable = template.getThumbnail().loadDrawable(cvh.context) in bind()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationTest.java151 .loadDrawable(context); in testParcelLegacy()
239 .setIcon(icon1.loadDrawable(context)) in testToBuilder()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java118 return mIcon.loadDrawable(context); in getIcon()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuare.kt62 icon.loadDrawable(context)?.let { in <lambda>()
/frameworks/base/media/java/android/media/tv/
DTvInputInfo.java506 return mIcon.loadDrawable(context); in loadIcon()
539 return mIconStandby.loadDrawable(context); in loadIcon()
543 return mIconDisconnected.loadDrawable(context); in loadIcon()

123