Searched refs:dither (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/services/surfaceflinger/
H A DBlurFilter.cpp50 const int BLUR_DITHER_BITS = 6; // dither weights stored on 6 bits
80 inline uint16_t to(int shift, int last, int dither) const {
91 R += (dither << shift) >> BLUR_DITHER_BITS;
92 G += (dither << shift) >> BLUR_DITHER_BITS;
93 B += (dither << shift) >> BLUR_DITHER_BITS;
127 inline uint32_t to(int shift, int last, int dither) const {
170 inline uint16_t to(int shift, int last, int dither) const {
173 L += (dither << shift) >> BLUR_DITHER_BITS;
202 inline uint32_t to(int shift, int last, int dither) const {
206 L += (dither << (shif
290 int count, dither, x=0; local
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java215 public void setDither(boolean dither) { argument
216 getPaint().setDither(dither);
240 final boolean dither = a.getBoolean(
244 if (dither) {
273 padding, dither), r);
355 NinePatchState(NinePatch ninePatch, Rect rect, boolean dither) { argument
358 mDither = dither;
H A DPictureDrawable.java98 public void setDither(boolean dither) {} argument
H A DDrawableContainer.java25 * To be proper, we should have a getter for dither (and alpha, etc.)
31 * The initial setting for dither is now true, since it almost always seems
84 public void setDither(boolean dither) { argument
85 if (mDrawableContainerState.mDither != dither) {
86 mDrawableContainerState.mDither = dither;
H A DShapeDrawable.java265 public void setDither(boolean dither) { argument
266 mShapeState.mPaint.setDither(dither);
H A DBitmapDrawable.java256 public void setDither(boolean dither) { argument
257 mBitmapState.mPaint.setDither(dither);
H A DLayerDrawable.java365 public void setDither(boolean dither) { argument
369 array[i].mDrawable.setDither(dither);
H A DDrawable.java221 * Set to true to have the drawable dither its colors when drawn to a device
225 public void setDither(boolean dither) {} argument
H A DGradientDrawable.java299 /* if we're not using a layer, apply the dither/filter to our
440 public void setDither(boolean dither) { argument
441 mDither = dither;
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java137 public void setDither(boolean dither) { argument
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp130 static void setDither(JNIEnv* env, jobject paint, jboolean dither) { argument
132 GraphicsJNI::getNativePaint(env, paint)->setDither(dither);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java296 /*package*/ static void setDither(Paint thisPaint, boolean dither) { argument
297 setFlag(thisPaint, Paint.DITHER_FLAG, dither);
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java314 * @param dither true to set the dithering bit in flags, false to clear it
316 public native void setDither(boolean dither); argument

Completed in 56 milliseconds