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

12

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DShape.java92 public boolean hasAlpha() { method in class:Shape
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/
H A DBitmap.kt99 * @param hasAlpha Whether the new bitmap is opaque or not
109 hasAlpha: Boolean = true,
112 return Bitmap.createBitmap(width, height, config, hasAlpha, colorSpace)
/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java241 * This is equivalent to calling <code>getBitmap().hasAlpha()</code> on this
244 public final boolean hasAlpha() { method in class:NinePatch
245 return mBitmap.hasAlpha();
H A DBitmap.java229 * <p>Note: This may change this result of hasAlpha(). When converting to 565,
855 bitmap = createBitmap(neww, newh, newConfig, source.hasAlpha());
871 bitmap = createBitmap(neww, newh, transformedConfig, transformed || source.hasAlpha());
885 bitmap.setHasAlpha(source.hasAlpha());
941 * @param hasAlpha If the bitmap is ARGB_8888 or RGBA_16F this flag can be used to
949 @NonNull Config config, boolean hasAlpha) {
950 return createBitmap(null, width, height, config, hasAlpha);
960 * @param hasAlpha If the bitmap is ARGB_8888 or RGBA_16F this flag can be used to
976 boolean hasAlpha, @NonNull ColorSpace colorSpace) {
977 return createBitmap(null, width, height, config, hasAlpha, colorSpac
948 createBitmap(int width, int height, @NonNull Config config, boolean hasAlpha) argument
975 createBitmap(int width, int height, @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) argument
998 createBitmap(@ullable DisplayMetrics display, int width, int height, @NonNull Config config, boolean hasAlpha) argument
1030 createBitmap(@ullable DisplayMetrics display, int width, int height, @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) argument
1584 public final boolean hasAlpha() { method in class:Bitmap
1601 setHasAlpha(boolean hasAlpha) argument
2085 nativeSetHasAlpha(long nativeBitmap, boolean hasAlpha, boolean requestPremul) argument
[all...]
H A DBaseCanvas.java65 bitmap.hasAlpha()) {
176 int width, int height, boolean hasAlpha, @Nullable Paint paint) {
199 nDrawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha,
205 int width, int height, boolean hasAlpha, @Nullable Paint paint) {
208 hasAlpha, paint);
590 float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero);
175 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
204 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
589 nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument
H A DCanvas.java1520 * @param hasAlpha True if the alpha channel of the colors contains valid values. If false, the
1530 int width, int height, boolean hasAlpha, @Nullable Paint paint) {
1531 super.drawBitmap(colors, offset, stride, x, y, width, height, hasAlpha, paint);
1544 int width, int height, boolean hasAlpha, @Nullable Paint paint) {
1545 super.drawBitmap(colors, offset, stride, x, y, width, height, hasAlpha, paint);
1529 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
1543 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
/frameworks/base/core/java/android/view/animation/
H A DAlphaAnimation.java86 public boolean hasAlpha() { method in class:AlphaAnimation
H A DAnimationSet.java181 public boolean hasAlpha() { method in class:AnimationSet
189 if (animations.get(i).hasAlpha()) {
/frameworks/base/libs/hwui/
H A DGradientCache.cpp135 bool hasAlpha = false; local
138 hasAlpha = true;
144 info.hasAlpha = hasAlpha;
153 texture->blend = info.hasAlpha;
H A DGradientCache.h145 bool hasAlpha; member in struct:android::uirenderer::GradientCache::GradientInfo
/frameworks/native/opengl/libagl/
H A Ddxt.cpp144 bool hasAlpha = false; local
172 hasAlpha = true;
190 return hasAlpha;
196 bool hasAlpha)
243 if (hasAlpha) {
274 if (hasAlpha) {
194 decodeDXT1(const GLvoid *data, int width, int height, void *surface, int stride, bool hasAlpha) argument
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DBitmapTest.java52 assertTrue("hasAlpha", bm1.hasAlpha());
53 assertFalse("hasAlpha", bm2.hasAlpha());
54 assertTrue("hasAlpha", bm3.hasAlpha());
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapsAlphaActivity.java59 Log.d("OpenGLRenderer", " has bitmap alpha? " + mBitmap3.hasAlpha());
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java230 int height, boolean hasAlpha, Paint paint) {
235 int height, boolean hasAlpha, Paint paint) {
229 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument
234 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.h117 inline bool hasAlpha() const { return (mKey & ALPHA_MASK) == ALPHA_LT_ONE; } function in class:android::ProgramCache::Key
H A DProgramCache.cpp552 if (needs.getTextureTarget() == Key::TEXTURE_OFF || needs.hasAlpha()) {
626 if (needs.hasAlpha()) {
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
H A DFitWidthBitmapDrawable.java194 return (bitmap == null || bitmap.hasAlpha() || mBitmapState.mPaint.getAlpha() < 255)
/frameworks/base/core/java/android/view/
H A DRecordingCanvas.java148 int width, int height, boolean hasAlpha, @Nullable Paint paint) {
170 nDrawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha,
178 int width, int height, boolean hasAlpha, @Nullable Paint paint) {
181 hasAlpha, paint);
557 float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero);
147 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
177 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
556 nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument
/frameworks/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java231 * Returns the hasAlpha rendering hint
234 public boolean hasAlpha() { method in class:Bitmap_Delegate
538 /*package*/ static void nativeSetHasAlpha(long nativeBitmap, boolean hasAlpha, argument
546 delegate.mHasAlpha = hasAlpha;
H A DLinearGradient_Delegate.java166 mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault();
H A DRadialGradient_Delegate.java155 mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault();
H A DBaseCanvas_Delegate.java112 final float x, final float y, int width, int height, boolean hasAlpha,
116 hasAlpha ? BufferedImage.TYPE_INT_ARGB : BufferedImage.TYPE_INT_RGB);
657 } else if (!bitmap.hasAlpha()) {
658 // hasAlpha is merely a rendering hint. There can in fact be alpha values
111 nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, final float x, final float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DRoundedBitmapDrawable.java376 || bm.hasAlpha()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DBasicBitmapDrawable.java440 return (hasBitmap() && (mBitmap.bmp.hasAlpha() || mPaint.getAlpha() < 255)) ?
/frameworks/native/services/surfaceflinger/tests/
H A DSurfaceInterceptor_test.cpp404 bool hasAlpha(change.alpha().alpha() == ALPHA_UPDATE);
405 if (hasAlpha && !foundAlpha) {
408 else if (hasAlpha && foundAlpha) {

Completed in 145 milliseconds

12