/frameworks/base/graphics/java/android/graphics/ |
D | BlendMode.java | 525 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 …]
|
D | PorterDuffColorFilter.java | 31 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/ |
D | FramebufferBlendActivity.java | 28 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()
|
D | AdvancedBlendActivity.java | 30 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()
|
D | LayersActivity.java | 23 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()
|
D | XfermodeActivity.java | 23 import android.graphics.PorterDuff; 28 import static android.graphics.PorterDuff.Mode; 127 private void drawRects(Canvas canvas, PorterDuff.Mode mode) { in drawRects()
|
D | OpaqueActivity.java | 22 import android.graphics.PorterDuff; 54 canvas.drawColor(0xffff0000, PorterDuff.Mode.SRC); in onDraw()
|
D | ViewLayersActivity.java | 24 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()
|
D | MoreShadersActivity.java | 32 import android.graphics.PorterDuff; 93 PorterDuff.Mode.SRC_OVER); in ShadersView() 100 PorterDuff.Mode.SRC_OUT); in ShadersView()
|
D | ClearActivity.java | 26 import android.graphics.PorterDuff; 51 mClearPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); in PathsView()
|
D | CanvasTextureViewActivity.java | 22 import android.graphics.PorterDuff; 92 canvas.drawColor(0x00000000, PorterDuff.Mode.CLEAR); in run()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorStateDrawable.java | 20 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/ |
D | ColoredIconHelper.java | 23 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()
|
D | CachingIconView.java | 27 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/ |
D | MenuItem.java | 28 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/ |
D | UserIconDrawableTest.java | 28 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/ |
D | UserIconDrawable.java | 33 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()
|
D | CircleFramedDrawable.java | 28 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/ |
D | ResourceModifiers.java | 28 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/ |
D | PorterDuffUtility.java | 24 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/ |
D | NotificationPanelView.java | 23 import android.graphics.PorterDuff; 49 mAlphaPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY)); in NotificationPanelView()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItem.java | 24 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/ |
D | DividerItemDecorationTest.java | 27 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/ |
D | PlaceHolderIconDrawable.java | 25 import android.graphics.PorterDuff; 68 newIcon.setColorFilter(new PorterDuffColorFilter(newColor, PorterDuff.Mode.SRC_ATOP)); in animateIconUpdate()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 42 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()
|