Home
last modified time | relevance | path

Searched refs:newDrawable (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/util/
DImageViewDrawableSetter.java100 Drawable newDrawable = decodedBitmapDrawable(compressed); in setCompressedImage() local
101 if (newDrawable == null) { in setCompressedImage()
102 newDrawable = defaultDrawable(); in setCompressedImage()
109 if (newDrawable == null) return previousBitmap(); in setCompressedImage()
113 mTarget.setImageDrawable(newDrawable); in setCompressedImage()
118 beforeAndAfter[1] = newDrawable; in setCompressedImage()
126 mPreviousDrawable = newDrawable; in setCompressedImage()
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java385 Drawable newDrawable = getResources().getDrawable(mImageIds[newState]).mutate(); in combine() local
386 newDrawable.setState(enabledState); in combine()
399newDrawable.setBounds(0, 0, newDrawable.getIntrinsicWidth(), newDrawable.getIntrinsicHeight()); in combine()
401 newDrawable.draw(canvas); in combine()
408newDrawable.setBounds(0, 0, newDrawable.getIntrinsicWidth(), newDrawable.getIntrinsicHeight()); in combine()
410 newDrawable.draw(canvas); in combine()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DSaturationProgressDrawable.kt90 override fun newDrawable(): Drawable { in newDrawable() method in com.android.customization.picker.clock.ui.view.RoundedCornerState
91 return newDrawable(null, null) in newDrawable()
94 override fun newDrawable(res: Resources?, theme: Resources.Theme?): Drawable { in newDrawable() method in com.android.customization.picker.clock.ui.view.RoundedCornerState
95 val wrapper = wrappedState.newDrawable(res, theme) as DrawableWrapper in newDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java191 public Drawable newDrawable() { in newDrawable() method in FolderAdaptiveIcon.MyConstantState
192 return new FolderAdaptiveIcon(mBg.newDrawable(), mFg.newDrawable(), in newDrawable()
193 mBadge.newDrawable(), mMask); in newDrawable()
240 public Drawable newDrawable() { in newDrawable() method in FolderAdaptiveIcon.BitmapRendererDrawable.MyConstantState
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DFloatingWidgetBackgroundView.java85 mOriginalForeground.getConstantState().newDrawable().mutate()); in init()
88 mOriginalForeground.getConstantState().newDrawable().mutate(); in init()
101 mOriginalBackground.getConstantState().newDrawable().mutate()); in init()
104 mOriginalBackground.getConstantState().newDrawable().mutate(); in init()
DTaskThumbnailViewDeprecated.java484 mSplashViewDrawable = icon.getConstantState().newDrawable().mutate(); in updateSplashView()
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java59 final Drawable newDrawable = new TintDrawableWrapper(oldDrawable, colorStateList, mode); in getColorTintedDrawable() local
61 newDrawable.setState(thumbState); in getColorTintedDrawable()
63 return newDrawable; in getColorTintedDrawable()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCViewUtils.java47 ? defaultToggleBackground.getConstantState().newDrawable().mutate() in getToggleIcon()
48 : unavailableToggleBackground.getConstantState().newDrawable().mutate(); in getToggleIcon()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java737 clone = cs.newDrawable(res); in ChildDrawable()
739 clone = cs.newDrawable(); in ChildDrawable()
844 public Drawable newDrawable() { in newDrawable() method in DynamicAdaptiveIconDrawable.LayerState
850 public Drawable newDrawable(@Nullable Resources res) { in newDrawable() method in DynamicAdaptiveIconDrawable.LayerState
851 return newDrawable(); in newDrawable()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DClockDrawableWrapper.java198 getBackground().getConstantState().newDrawable(), null); in getExtendedInfo()
355 .newDrawable().mutate(); in ClockIconDrawable()
441 public FastBitmapDrawable newDrawable() { in newDrawable() method in ClockDrawableWrapper.ClockIconDrawable.ClockConstantState
DThemedIconDrawable.java126 public FastBitmapDrawable newDrawable() { in newDrawable() method in ThemedIconDrawable.ThemedConstantState
149 .newDrawable(); in newThemedIcon()
DFastBitmapDrawable.java305 public FastBitmapDrawable newDrawable() { in newDrawable() method in FastBitmapDrawable.FastBitmapConstantState
/packages/apps/Camera2/src/com/android/camera/ui/
DModeIconView.java88 return mIconDrawable.getConstantState().newDrawable(); in getIconDrawableClone()
DBottomBar.java405 return (LayerDrawable) constantState.newDrawable(getContext().getResources()); in newDrawableFromConstantState()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.kt46 return if (value == null) null else value.newDrawable() in getIcon()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java332 drawable = drawable == null ? null : drawable.getConstantState().newDrawable(); in getIconResult()
336 Drawable btvClone = btvIcon == null ? null : btvIcon.getConstantState().newDrawable(); in getIconResult()
570 btvDrawableSupplier = () -> btvIcon.getConstantState().newDrawable(); in fetchIcon()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DTopLevelIcon.java148 public Drawable newDrawable() { in newDrawable() method in TopLevelIcon.AdaptiveConstantState
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java108 Drawable drawable = icon.getConstantState().newDrawable(); in createDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java271 view.setBackground(mRoundedTop.getConstantState().newDrawable()); in assignMarginsAndBackgrounds()
273 view.setBackground(mRoundedBottom.getConstantState().newDrawable()); in assignMarginsAndBackgrounds()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DKeyboardQuickSwitchTaskView.java211 constantState.newDrawable(getResources(), getContext().getTheme())); in applyIcon()
/packages/apps/Settings/src/com/android/settings/widget/
DEntityHeaderController.java125 mIcon = state != null ? state.newDrawable(mAppContext.getResources()) : icon; in setIcon()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java268 ? constantStateDrawable.newDrawable(context.getResources()).mutate() in getTintedDrawable()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntry.java260 ? mAppIcon.getConstantState().newDrawable() in getAppIcon()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/
DAppItemViewHolder.java405 appIcon.getConstantState().newDrawable().mutate(),
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntryTest.java616 doReturn(drawable).when(mMockConstantState).newDrawable(); in mockConstantState()

12