Home
last modified time | relevance | path

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

12

/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;
89 PorterDuff.Mode.SRC_OVER); in ShadersView()
91 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()
DViewLayersActivity5.java23 import android.graphics.PorterDuff;
54 p.setColorFilter(new PorterDuffColorFilter(0xff00ff00, PorterDuff.Mode.MULTIPLY)); in setupList()
DColorFiltersActivity.java28 import android.graphics.PorterDuff;
65 PorterDuff.Mode.SRC_OVER)); in BitmapsView()
DViewLayersActivity6.java23 import android.graphics.PorterDuff;
43 mPaint.setColorFilter(new PorterDuffColorFilter(0xff00ff00, PorterDuff.Mode.MULTIPLY)); in onCreate()
DTextGammaActivity.java24 import android.graphics.PorterDuff;
52 c.drawColor(0, PorterDuff.Mode.CLEAR); in onCreate()
DBitmapsActivity.java25 import android.graphics.PorterDuff;
75 mDstIn = new PorterDuffXfermode(PorterDuff.Mode.DST_IN); in BitmapsView()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPorterDuffXfermode_Delegate.java50 public PorterDuff.Mode getMode() { in getMode()
70 public static PorterDuff.Mode getPorterDuffMode(int mode) { in getPorterDuffMode()
71 for (PorterDuff.Mode m : PorterDuff.Mode.values()) { in getPorterDuffMode()
80 return PorterDuff.Mode.SRC_OVER; in getPorterDuffMode()
83 public static Composite getComposite(PorterDuff.Mode mode, int alpha) { in getComposite()
DCanvas_Delegate.java595 PorterDuff.Mode.SRC_OVER.nativeInt); in native_drawRGB()
602 PorterDuff.Mode.SRC_OVER.nativeInt); in native_drawARGB()
607 native_drawColor(nativeCanvas, color, PorterDuff.Mode.SRC_OVER.nativeInt); in native_drawColor()
1326 PorterDuff.Mode mode = in getImageToDraw()
1329 forceSrcMode[0] = mode == PorterDuff.Mode.SRC_OVER || in getImageToDraw()
1330 mode == PorterDuff.Mode.SRC; in getImageToDraw()
/frameworks/base/graphics/java/android/graphics/
DPorterDuffXfermode.java23 public final PorterDuff.Mode mode;
30 public PorterDuffXfermode(PorterDuff.Mode mode) { in PorterDuffXfermode()
DComposeShader.java45 PorterDuff.Mode pdMode = ((PorterDuffXfermode) mode).mode; in ComposeShader()
61 public ComposeShader(Shader shaderA, Shader shaderB, PorterDuff.Mode mode) { in ComposeShader()
DPorterDuffColorFilter.java27 public PorterDuffColorFilter(int srcColor, PorterDuff.Mode mode) { in PorterDuffColorFilter()
DPorterDuff.java19 public class PorterDuff { class
/frameworks/base/policy/src/com/android/internal/policy/impl/
DKeyguardViewBase.java24 import android.graphics.PorterDuff;
54 canvas.drawColor(BACKGROUND_COLOR, PorterDuff.Mode.SRC);
DIconUtilities.java31 import android.graphics.PorterDuff;
178 dest.drawColor(0, PorterDuff.Mode.CLEAR); in createSelectedBitmap()
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java22 import android.graphics.PorterDuff;
146 c.drawColor(0, PorterDuff.Mode.CLEAR); in drawIfNeeded()
/frameworks/base/core/java/android/app/
DWallpaperManager.java28 import android.graphics.PorterDuff;
120 mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); in FastBitmapDrawable()
744 paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); in generateBitmap()
/frameworks/base/core/java/android/view/
DSurfaceView.java27 import android.graphics.PorterDuff;
357 canvas.drawColor(0, PorterDuff.Mode.CLEAR); in draw()
369 canvas.drawColor(0, PorterDuff.Mode.CLEAR); in dispatchDraw()

12