Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DFastBitmapDrawable.java37 public class FastBitmapDrawable extends Drawable { class
62 private static final Property<FastBitmapDrawable, Float> SCALE
63 = new Property<FastBitmapDrawable, Float>(Float.TYPE, "scale") {
65 public Float get(FastBitmapDrawable fastBitmapDrawable) {
70 public void set(FastBitmapDrawable fastBitmapDrawable, Float value) {
80 public FastBitmapDrawable(Bitmap b) { in FastBitmapDrawable() method in FastBitmapDrawable
84 public FastBitmapDrawable(BitmapInfo info) { in FastBitmapDrawable() method in FastBitmapDrawable
88 protected FastBitmapDrawable(Bitmap b, int iconColor) { in FastBitmapDrawable() method in FastBitmapDrawable
92 protected FastBitmapDrawable(Bitmap b, int iconColor, boolean isDisabled) { in FastBitmapDrawable() method in FastBitmapDrawable
305 public FastBitmapDrawable newDrawable() { in newDrawable()
[all …]
DBitmapInfo.java92 public FastBitmapDrawable newThemedIcon(Context context) { in newThemedIcon()
99 public FastBitmapDrawable newIcon(Context context) { in newIcon()
100 FastBitmapDrawable drawable = isLowRes() in newIcon()
102 : new FastBitmapDrawable(this); in newIcon()
DThemedIconDrawable.java56 public class ThemedIconDrawable extends FastBitmapDrawable {
126 public FastBitmapDrawable newDrawable() { in newDrawable()
146 public FastBitmapDrawable newThemedIcon(Context context) { in newThemedIcon()
148 FastBitmapDrawable drawable = new ThemedConstantState(this, colors[0], colors[1], false) in newThemedIcon()
DClockDrawableWrapper.java303 public FastBitmapDrawable newThemedIcon(Context context) { in newThemedIcon()
318 public FastBitmapDrawable newIcon(Context context) { in newIcon()
341 private static class ClockIconDrawable extends FastBitmapDrawable implements Runnable {
441 public FastBitmapDrawable newDrawable() { in newDrawable()
DPlaceHolderIconDrawable.java35 public class PlaceHolderIconDrawable extends FastBitmapDrawable {
/packages/apps/Launcher3/tests/src/com/android/launcher3/folder/
DPreviewItemManagerTest.kt29 import com.android.launcher3.icons.FastBitmapDrawable
144 assert((drawingParams.drawable as FastBitmapDrawable).isThemed) in checkThemedIconWithThemingOn_iconShouldBeThemed()
154 assert(!(drawingParams.drawable as FastBitmapDrawable).isThemed) in checkThemedIconWithThemingOff_iconShouldNotBeThemed()
164 assert(!(drawingParams.drawable as FastBitmapDrawable).isThemed) in checkUnthemedIconWithThemingOn_iconShouldNotBeThemed()
174 assert(!(drawingParams.drawable as FastBitmapDrawable).isThemed) in checkUnthemedIconWithThemingOff_iconShouldNotBeThemed()
184 assert((drawingParams.drawable as FastBitmapDrawable).isThemed) in checkThemedIconWithBadgeWithThemingOn_iconAndBadgeShouldBeThemed()
186 ((drawingParams.drawable as FastBitmapDrawable).badge as UserBadgeDrawable).mIsThemed in checkThemedIconWithBadgeWithThemingOn_iconAndBadgeShouldBeThemed()
197 assert(!(drawingParams.drawable as FastBitmapDrawable).isThemed) in checkUnthemedIconWithBadgeWithThemingOn_badgeShouldBeThemed()
199 ((drawingParams.drawable as FastBitmapDrawable).badge as UserBadgeDrawable).mIsThemed in checkUnthemedIconWithBadgeWithThemingOn_badgeShouldBeThemed()
210 assert(!(drawingParams.drawable as FastBitmapDrawable).isThemed) in checkUnthemedIconWithBadgeWithThemingOff_iconAndBadgeShouldNotBeThemed()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/icons/
DFastBitmapDrawableTest.java18 import static com.android.launcher3.icons.FastBitmapDrawable.CLICK_FEEDBACK_DURATION;
19 import static com.android.launcher3.icons.FastBitmapDrawable.HOVERED_SCALE;
20 import static com.android.launcher3.icons.FastBitmapDrawable.HOVER_FEEDBACK_DURATION;
21 import static com.android.launcher3.icons.FastBitmapDrawable.PRESSED_SCALE;
22 import static com.android.launcher3.icons.FastBitmapDrawable.SCALE;
61 FastBitmapDrawable mFastBitmapDrawable =
62 spy(new FastBitmapDrawable(Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888)));
68 FastBitmapDrawable.setFlagHoverEnabled(true); in setUp()
123 FastBitmapDrawable.setFlagHoverEnabled(false); in testOnStateChange_stateHoveredFlagDisabled()
/packages/apps/Launcher3/src/com/android/launcher3/apppairs/
DAppPairIconDrawable.java29 import com.android.launcher3.icons.FastBitmapDrawable;
38 private final FastBitmapDrawable mIcon1;
39 private final FastBitmapDrawable mIcon2;
50 AppPairIconDrawingParams p, FastBitmapDrawable icon1, FastBitmapDrawable icon2) { in AppPairIconDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DItemInfoWithIcon.java29 import com.android.launcher3.icons.FastBitmapDrawable;
315 public FastBitmapDrawable newIcon(Context context) {
322 public FastBitmapDrawable newIcon(Context context, @DrawableCreationFlags int creationFlags) {
323 FastBitmapDrawable drawable = bitmap.newIcon(context, creationFlags);
/packages/apps/Launcher3/src/com/android/launcher3/views/
DIconButtonView.java39 import com.android.launcher3.icons.FastBitmapDrawable;
99 FastBitmapDrawable icon = getIcon(); in setForegroundTint()
117 private static class IconDrawable extends FastBitmapDrawable {
DFloatingIconView.java57 import com.android.launcher3.icons.FastBitmapDrawable;
317 boolean shouldThemeIcon = (btvIcon instanceof FastBitmapDrawable fbd) in getIconResult()
382 FastBitmapDrawable.setBadgeBounds(mBadge, badgeBounds); in setIcon()
558 final FastBitmapDrawable btvIcon; in fetchIcon()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DDragPreviewProvider.java35 import com.android.launcher3.icons.FastBitmapDrawable;
107 FastBitmapDrawable icon = ((BubbleTextView) mView).getIcon(); in createDrawable()
114 return new FastBitmapDrawable( in createDrawable()
DPreloadIconDrawable.java42 import com.android.launcher3.icons.FastBitmapDrawable;
50 public class PreloadIconDrawable extends FastBitmapDrawable {
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/data/
DDockAppItem.kt24 import com.android.launcher3.icons.FastBitmapDrawable
49 FastBitmapDrawable.WHITE_SCRIM_ALPHA
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutDragPreviewProvider.java28 import com.android.launcher3.icons.FastBitmapDrawable;
47 return new FastBitmapDrawable( in createDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java44 import com.android.launcher3.icons.FastBitmapDrawable;
136 Drawable p = new FastBitmapDrawable(new DatabaseWidgetPreviewLoader(launcher) in startDrag()
179 preview = new FastBitmapDrawable( in startDrag()
DPendingAppWidgetHostView.java24 import static com.android.launcher3.icons.FastBitmapDrawable.getDisabledColorFilter;
58 import com.android.launcher3.icons.FastBitmapDrawable;
309 FastBitmapDrawable disabledIcon = info.newIcon(getContext()); in reapplyItemInfo()
DWidgetCell.java60 import com.android.launcher3.icons.FastBitmapDrawable;
398 new FastBitmapDrawable(bitmap), mEnforcedCornerRadius); in applyPreview()
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java69 import com.android.launcher3.icons.FastBitmapDrawable;
152 private FastBitmapDrawable mIcon;
226 FastBitmapDrawable.setFlagHoverEnabled(enableCursorHoverStates()); in BubbleTextView()
454 FastBitmapDrawable iconDrawable = info.newIcon(getContext(), flags); in applyIconAndLabel()
525 public FastBitmapDrawable getIcon() { in getIcon()
965 FastBitmapDrawable originalIcon = mIcon; in updateProgressBarUi()
1035 if (mIcon instanceof FastBitmapDrawable) { in applyDotState()
1093 protected void setIcon(FastBitmapDrawable icon) { in setIcon()
DWorkspace.java95 import com.android.launcher3.icons.FastBitmapDrawable;
1681 if (icon instanceof FastBitmapDrawable) { in beginDragShared()
1682 iconScale = ((FastBitmapDrawable) icon).getAnimatedScale(); in beginDragShared()
2935 return new FastBitmapDrawable(b);
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java23 import static com.android.launcher3.icons.FastBitmapDrawable.getDisabledColorFilter;
63 import com.android.launcher3.icons.FastBitmapDrawable;
263 FastBitmapDrawable.setBadgeBounds(mBadge, bounds); in setItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDisplayLauncher.java47 import com.android.launcher3.icons.FastBitmapDrawable;
374 FastBitmapDrawable icon = ((BubbleTextView) child).getIcon(); in beginDragShared()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DPredictedAppIcon.java20 import static com.android.launcher3.icons.FastBitmapDrawable.getDisabledColorFilter;
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java130 import com.android.launcher3.icons.FastBitmapDrawable;
1967 if (dr instanceof FastBitmapDrawable) { in AnimOpenProperties()
1968 iconStartScale = ((FastBitmapDrawable) dr).getAnimatedScale(); in AnimOpenProperties()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleBarController.java24 import static com.android.launcher3.icons.FastBitmapDrawable.WHITE_SCRIM_ALPHA;