Home
last modified time | relevance | path

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

12

/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/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/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java158 public Drawable newDrawable() { in newDrawable() method in MyConstantState
159 return new FolderAdaptiveIcon(mBg.newDrawable(), mFg.newDrawable(), in newDrawable()
160 mBadge.newDrawable(), mMask); in newDrawable()
/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()
DImageUtils.java876 ? constantStateDrawable.newDrawable(context.getResources()).mutate() in getTintedDrawable()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java186 .getConstantState().newDrawable().mutate(); in bindThumbnailTile()
379 .newDrawable(); in bindPreview()
381 Drawable bgShape = mShapeDrawable.getConstantState().newDrawable(); in bindPreview()
427 Drawable background = shapeDrawable.getConstantState().newDrawable(); in ShapeOption()
428 Drawable foreground = shapeDrawable.getConstantState().newDrawable(); in ShapeOption()
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DThemePreviewPage.java166 .newDrawable().mutate(); in bindBody()
167 Drawable bgShape = mShapeDrawable.getConstantState().newDrawable(); in bindBody()
203 .newDrawable().mutate()); in bindPreviewContent()
DThemeFragment.java414 .getConstantState().newDrawable().mutate()); in ThemePreviewAdapter()
459 .getConstantState().newDrawable().mutate(); in ThemePreviewAdapter()
461 previewInfo.shapeDrawable.getConstantState().newDrawable(); in ThemePreviewAdapter()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DShadowDrawable.java128 Drawable d = mState.mChildState.newDrawable().mutate(); in regenerateBitmapCache()
200 public Drawable newDrawable() { in newDrawable() method in ShadowDrawable.ShadowDrawableState
DShiftedBitmapDrawable.java96 public Drawable newDrawable() { in newDrawable() method in ShiftedBitmapDrawable.MyConstantState
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java740 clone = cs.newDrawable(res); in ChildDrawable()
742 clone = cs.newDrawable(); in ChildDrawable()
844 public Drawable newDrawable() { in newDrawable() method in DynamicAdaptiveIconDrawable.LayerState
849 public Drawable newDrawable(@Nullable Resources res) { in newDrawable() method in DynamicAdaptiveIconDrawable.LayerState
/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.java73 return value == null ? null : value.newDrawable(); in getIcon()
/packages/apps/Launcher3/src/com/android/launcher3/
DFastBitmapDrawable.java365 public Drawable newDrawable() { in newDrawable() method in FastBitmapDrawable.MyConstantState
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DConversationMessageView.java258 ? constantStateDrawable.newDrawable(context.getResources()).mutate() in getTintedDrawable()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskMenuView.java181 Drawable icon = taskView.getTask().icon.getConstantState().newDrawable(); in addMenuOptions()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java258 ? constantStateDrawable.newDrawable(context.getResources()).mutate() in getTintedDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DTopLevelPickerActivity.java429 nextWallpaperButtonDrawable.getConstantState().newDrawable().mutate(); in setUpBottomSheet()
537 .newDrawable().mutate(); in refreshCurrentWallpapers()
DPreviewFragment.java258 navigationIcon = navigationIcon.getConstantState().newDrawable().mutate(); in onCreateView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DEntityHeaderController.java139 mIcon = icon.getConstantState().newDrawable(mAppContext.getResources()); in setIcon()
/packages/apps/Settings/src/com/android/settings/widget/
DEntityHeaderController.java139 mIcon = icon.getConstantState().newDrawable(mAppContext.getResources()); in setIcon()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeBundle.java121 Drawable icon = mPreviewInfo.icons.get(0).getConstantState().newDrawable().mutate(); in bindThumbnailTile()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DFloatingIconView.java428 drawable = drawable == null ? null : drawable.getConstantState().newDrawable(); in getIconResult()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java612 Drawable wifiIconDark = wifiIcon.getConstantState().newDrawable().mutate(); in refreshRssiViews()

12