Home
last modified time | relevance | path

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

12345

/frameworks/base/graphics/java/android/graphics/
DBlendMode.java525 public static @Nullable PorterDuff.Mode blendModeToPorterDuffMode(@Nullable BlendMode mode) { in blendModeToPorterDuffMode()
529 return PorterDuff.Mode.CLEAR; in blendModeToPorterDuffMode()
531 return PorterDuff.Mode.SRC; in blendModeToPorterDuffMode()
533 return PorterDuff.Mode.DST; in blendModeToPorterDuffMode()
535 return PorterDuff.Mode.SRC_OVER; in blendModeToPorterDuffMode()
537 return PorterDuff.Mode.DST_OVER; in blendModeToPorterDuffMode()
539 return PorterDuff.Mode.SRC_IN; in blendModeToPorterDuffMode()
541 return PorterDuff.Mode.DST_IN; in blendModeToPorterDuffMode()
543 return PorterDuff.Mode.SRC_OUT; in blendModeToPorterDuffMode()
545 return PorterDuff.Mode.DST_OUT; in blendModeToPorterDuffMode()
[all …]
DPorterDuffColorFilter.java31 private PorterDuff.Mode mMode;
41 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in PorterDuffColorFilter()
69 public PorterDuff.Mode getMode() { in getMode()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DFramebufferBlendActivity.java28 import android.graphics.PorterDuff;
71 drawBlendedBitmap(canvas, PorterDuff.Mode.DARKEN); in onDraw()
72 drawBlendedBitmap(canvas, PorterDuff.Mode.LIGHTEN); in onDraw()
73 drawBlendedBitmap(canvas, PorterDuff.Mode.MULTIPLY); in onDraw()
80 drawBlendedBitmap(canvas, PorterDuff.Mode.SCREEN); in onDraw()
81 drawBlendedBitmap(canvas, PorterDuff.Mode.ADD); in onDraw()
82 drawBlendedBitmapInverse(canvas, PorterDuff.Mode.OVERLAY); in onDraw()
87 private void drawBlendedBitmap(Canvas canvas, PorterDuff.Mode mode) { in drawBlendedBitmap()
99 private void drawBlendedBitmapInverse(Canvas canvas, PorterDuff.Mode mode) { in drawBlendedBitmapInverse()
DAdvancedBlendActivity.java30 import android.graphics.PorterDuff;
85 PorterDuff.Mode.DARKEN); in ShadersView()
87 PorterDuff.Mode.LIGHTEN); in ShadersView()
89 PorterDuff.Mode.MULTIPLY); in ShadersView()
91 PorterDuff.Mode.SCREEN); in ShadersView()
93 PorterDuff.Mode.ADD); in ShadersView()
95 PorterDuff.Mode.OVERLAY); in ShadersView()
DLayersActivity.java23 import android.graphics.PorterDuff;
81 mLayerPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_OUT)); in onDraw()
98 mLayerPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_ATOP)); in onDraw()
DXfermodeActivity.java23 import android.graphics.PorterDuff;
28 import static android.graphics.PorterDuff.Mode;
127 private void drawRects(Canvas canvas, PorterDuff.Mode mode) { in drawRects()
DOpaqueActivity.java22 import android.graphics.PorterDuff;
54 canvas.drawColor(0xffff0000, PorterDuff.Mode.SRC); in onDraw()
DViewLayersActivity.java24 import android.graphics.PorterDuff;
72 p.setColorFilter(new PorterDuffColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY)); in onCreate()
78 p3.setColorFilter(new PorterDuffColorFilter(0xff00ff00, PorterDuff.Mode.MULTIPLY)); in onCreate()
DMoreShadersActivity.java32 import android.graphics.PorterDuff;
93 PorterDuff.Mode.SRC_OVER); in ShadersView()
100 PorterDuff.Mode.SRC_OUT); in ShadersView()
DClearActivity.java26 import android.graphics.PorterDuff;
51 mClearPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); in PathsView()
DCanvasTextureViewActivity.java22 import android.graphics.PorterDuff;
92 canvas.drawColor(0x00000000, PorterDuff.Mode.CLEAR); in run()
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorStateDrawable.java20 import android.graphics.PorterDuff;
50 super.setColorFilter(getPressedColor(mColor), PorterDuff.Mode.SRC_ATOP); in onStateChange()
52 super.setColorFilter(mColor, PorterDuff.Mode.SRC_ATOP); in onStateChange()
/frameworks/base/core/java/com/android/internal/widget/
DColoredIconHelper.java23 import android.graphics.PorterDuff;
51 drawable.mutate().setColorFilter(grey, PorterDuff.Mode.SRC_ATOP); in applyGrayTint()
54 drawable.mutate().setColorFilter(originalColor, PorterDuff.Mode.SRC_ATOP); in applyGrayTint()
DCachingIconView.java27 import android.graphics.PorterDuff;
261 icon.mutate().setColorFilter(color, PorterDuff.Mode.SRC_ATOP); in setOriginalIconColor()
267 background.mutate().setColorFilter(color, PorterDuff.Mode.SRC_ATOP); in setOriginalIconColor()
269 icon.mutate().setColorFilter(mBackgroundColor, PorterDuff.Mode.SRC_ATOP); in setOriginalIconColor()
272 background.mutate().setColorFilter(mBackgroundColor, PorterDuff.Mode.SRC_ATOP); in setOriginalIconColor()
/frameworks/base/core/java/android/view/
DMenuItem.java28 import android.graphics.PorterDuff;
275 default @NonNull MenuItem setIconTintMode(@Nullable PorterDuff.Mode tintMode) { in setIconTintMode()
290 PorterDuff.Mode mode = BlendMode.blendModeToPorterDuffMode(blendMode); in setIconTintBlendMode()
308 public default PorterDuff.Mode getIconTintMode() { return null; } in getIconTintMode()
320 PorterDuff.Mode mode = getIconTintMode(); in getIconTintBlendMode()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
DUserIconDrawableTest.java28 import android.graphics.PorterDuff;
29 import android.graphics.PorterDuff.Mode;
54 final PorterDuff.Mode mode = Mode.SRC_OVER; in setTintList_shouldBeApplied()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java33 import android.graphics.PorterDuff;
62 private PorterDuff.Mode mTintMode = PorterDuff.Mode.SRC_ATOP;
162 mClearPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); in setBadge()
266 private boolean shouldUpdateColorFilter(@ColorInt int color, PorterDuff.Mode mode) { in shouldUpdateColorFilter()
271 PorterDuff.Mode currentMode = porterDuffColorFilter.getMode(); in shouldUpdateColorFilter()
295 public void setTintMode(@NonNull PorterDuff.Mode mode) { in setTintMode()
337 canvas.drawColor(0, PorterDuff.Mode.CLEAR); in rebake()
DCircleFramedDrawable.java28 import android.graphics.PorterDuff;
75 canvas.drawColor(0, PorterDuff.Mode.CLEAR); in CircleFramedDrawable()
85 paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); in CircleFramedDrawable()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java28 import android.graphics.PorterDuff;
106 PorterDuff.Mode.MULTIPLY); in ResourceModifiers()
130 PorterDuff.Mode.MULTIPLY); in ResourceModifiers()
133 PorterDuff.Mode.MULTIPLY); in ResourceModifiers()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DPorterDuffUtility.java24 import android.graphics.PorterDuff;
25 import android.graphics.PorterDuff.Mode;
48 return PorterDuff.intToMode(porterDuffMode); in getPorterDuffMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationPanelView.java23 import android.graphics.PorterDuff;
49 mAlphaPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY)); in NotificationPanelView()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItem.java24 import android.graphics.PorterDuff;
54 private PorterDuff.Mode mIconTintMode = null;
221 public MenuItem setIconTintMode(PorterDuff.Mode iconTintMode) { in setIconTintMode()
232 public PorterDuff.Mode getIconTintMode() { in getIconTintMode()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java27 import android.graphics.PorterDuff;
91 paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); in testShouldDrawDividerBelowWithEitherCondition()
115 paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.ADD)); in testShouldDrawDividerBelowWithBothCondition()
127 paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); in testShouldDrawDividerBelowWithBothCondition()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DPlaceHolderIconDrawable.java25 import android.graphics.PorterDuff;
68 newIcon.setColorFilter(new PorterDuffColorFilter(newColor, PorterDuff.Mode.SRC_ATOP)); in animateIconUpdate()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java42 import android.graphics.PorterDuff;
43 import android.graphics.PorterDuff.Mode;
186 static final PorterDuff.Mode DEFAULT_TINT_MODE = PorterDuff.Mode.SRC_IN;
625 public void setColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in setColorFilter()
697 public void setTintMode(@Nullable PorterDuff.Mode tintMode) { in setTintMode()
724 PorterDuff.Mode mode = BlendMode.blendModeToPorterDuffMode(blendMode); in setTintBlendMode()
1582 @Nullable ColorStateList tint, @Nullable PorterDuff.Mode tintMode) { in updateTintFilter()
1701 public static PorterDuff.Mode parseTintMode(int value, Mode defaultMode) { in parseTintMode()

12345