Home
last modified time | relevance | path

Searched refs:hasAlpha (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DBitmap.java932 bitmap = createBitmap(null, neww, newh, newConfig, source.hasAlpha(), cs); in createBitmap()
953 transformed || source.hasAlpha(), cs); in createBitmap()
965 bitmap.setHasAlpha(source.hasAlpha()); in createBitmap()
1029 @NonNull Config config, boolean hasAlpha) { in createBitmap() argument
1030 return createBitmap(null, width, height, config, hasAlpha); in createBitmap()
1056 boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap() argument
1057 return createBitmap(null, width, height, config, hasAlpha, colorSpace); in createBitmap()
1079 @NonNull Config config, boolean hasAlpha) { in createBitmap() argument
1080 return createBitmap(display, width, height, config, hasAlpha, in createBitmap()
1111 @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap() argument
[all …]
DNinePatch.java249 public final boolean hasAlpha() { in hasAlpha() method in NinePatch
250 return mBitmap.hasAlpha(); in hasAlpha()
DBaseCanvas.java69 bitmap.hasAlpha()) { in throwIfCannotDraw()
180 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() argument
203 nDrawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha, in drawBitmap()
209 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() argument
212 hasAlpha, paint); in drawBitmap()
673 float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero); in nDrawBitmap() argument
DBaseRecordingCanvas.java138 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() argument
160 nDrawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha, in drawBitmap()
168 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() argument
171 hasAlpha, paint); in drawBitmap()
592 float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero); in nDrawBitmap() argument
DCanvas.java1614 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() argument
1615 super.drawBitmap(colors, offset, stride, x, y, width, height, hasAlpha, paint); in drawBitmap()
1628 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() argument
1629 super.drawBitmap(colors, offset, stride, x, y, width, height, hasAlpha, paint); in drawBitmap()
/frameworks/native/opengl/libagl/
Ddxt.cpp144 bool hasAlpha = false; in DXT1HasAlpha() local
172 hasAlpha = true; in DXT1HasAlpha()
190 return hasAlpha; in DXT1HasAlpha()
196 bool hasAlpha) in decodeDXT1() argument
243 if (hasAlpha) { in decodeDXT1()
274 if (hasAlpha) { in decodeDXT1()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScrimView.java147 boolean hasAlpha = Color.alpha(mTintColor) != 0; in updateColorWithTint()
148 if (hasAlpha) { in updateColorWithTint()
/frameworks/base/core/java/android/view/animation/
DAlphaAnimation.java86 public boolean hasAlpha() { in hasAlpha() method in AlphaAnimation
DAnimationSet.java181 public boolean hasAlpha() { in hasAlpha() method in AnimationSet
189 if (animations.get(i).hasAlpha()) { in hasAlpha()
DAnimation.java1158 public boolean hasAlpha() { in hasAlpha() method
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DShape.java94 public boolean hasAlpha() { in hasAlpha() method in Shape
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java230 int height, boolean hasAlpha, Paint paint) { in drawBitmap() argument
235 int height, boolean hasAlpha, Paint paint) { in drawBitmap() argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsAlphaActivity.java59 Log.d("OpenGLRenderer", " has bitmap alpha? " + mBitmap3.hasAlpha()); in BitmapsView()
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java57 assertTrue("hasAlpha", bm1.hasAlpha()); in testBasic()
58 assertFalse("hasAlpha", bm2.hasAlpha()); in testBasic()
59 assertTrue("hasAlpha", bm3.hasAlpha()); in testBasic()
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java205 public boolean hasAlpha() { in hasAlpha() method in Bitmap_Delegate
520 /*package*/ static void nativeSetHasAlpha(long nativeBitmap, boolean hasAlpha, in nativeSetHasAlpha() argument
528 delegate.mHasAlpha = hasAlpha; in nativeSetHasAlpha()
DRadialGradient_Delegate.java148 mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault(); in RadialGradientPaintContext()
DLinearGradient_Delegate.java158 mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault(); in LinearGradientPaintContext()
DBaseCanvas_Delegate.java116 final float x, final float y, int width, int height, boolean hasAlpha, in nDrawBitmap() argument
120 hasAlpha ? BufferedImage.TYPE_INT_ARGB : BufferedImage.TYPE_INT_RGB); in nDrawBitmap()
710 } else if (!bitmap.hasAlpha()) { in getImageToDraw()
/frameworks/native/libs/renderengine/gl/
DProgramCache.cpp588 if (needs.getTextureTarget() == Key::TEXTURE_OFF || needs.hasAlpha()) { in generateFragmentShader()
662 if (needs.hasAlpha()) { in generateFragmentShader()
DProgramCache.h129 inline bool hasAlpha() const { return (mKey & ALPHA_MASK) == ALPHA_LT_ONE; } in hasAlpha() function
/frameworks/native/services/surfaceflinger/tests/
DSurfaceInterceptor_test.cpp434 bool hasAlpha(change.alpha().alpha() == ALPHA_UPDATE); in alphaUpdateFound() local
435 if (hasAlpha && !foundAlpha) { in alphaUpdateFound()
437 } else if (hasAlpha && foundAlpha) { in alphaUpdateFound()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java440 return (hasBitmap() && (mBitmap.bmp.hasAlpha() || mPaint.getAlpha() < 255)) ? in getOpacity()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java647 && !mBitmapState.mBitmap.hasAlpha(); in getOutline()
968 return (bitmap == null || bitmap.hasAlpha() || mBitmapState.mPaint.getAlpha() < 255) ? in getOpacity()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp499 jboolean hasAlpha, jlong paintHandle) { in drawBitmapArray() argument
503 hasAlpha ? kN32_SkColorType : kRGB_565_SkColorType, in drawBitmapArray()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp628 jboolean hasAlpha, jboolean requestPremul) { in Bitmap_setHasAlpha() argument
630 if (hasAlpha) { in Bitmap_setHasAlpha()

12