/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 | 30 private PorterDuff.Mode mMode; 40 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in PorterDuffColorFilter() 68 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()
|
D | ColorFiltersActivity.java | 28 import android.graphics.PorterDuff; 65 PorterDuff.Mode.SRC_OVER)); in BitmapsView()
|
D | HardwareCanvasTextureViewActivity.java | 22 import android.graphics.PorterDuff; 95 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/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()
|
/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; 47 mAlphaPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY)); in NotificationPanelView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ScrimView.java | 25 import android.graphics.PorterDuff; 26 import android.graphics.PorterDuff.Mode; 149 PorterDuff.Mode targetMode = mColorFilter == null ? Mode.SRC_OVER : in updateColorWithTint()
|
/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/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItem.java | 24 import android.graphics.PorterDuff; 53 private PorterDuff.Mode mIconTintMode = null; 220 public MenuItem setIconTintMode(PorterDuff.Mode iconTintMode) { in setIconTintMode() 231 public PorterDuff.Mode getIconTintMode() { in getIconTintMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotSelectorView.java | 25 import android.graphics.PorterDuff; 48 mPaintSelection.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); in ScreenshotSelectorView()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 43 import android.graphics.PorterDuff; 44 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() 1585 @Nullable ColorStateList tint, @Nullable PorterDuff.Mode tintMode) { in updateTintFilter() 1704 public static PorterDuff.Mode parseTintMode(int value, Mode defaultMode) { in parseTintMode()
|