/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | Shape.java | 92 public boolean hasAlpha() { method in class:Shape
|
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/ |
H A D | Bitmap.kt | 99 * @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 D | NinePatch.java | 241 * 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 D | Bitmap.java | 229 * <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 D | BaseCanvas.java | 65 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 D | Canvas.java | 1520 * @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 D | AlphaAnimation.java | 86 public boolean hasAlpha() { method in class:AlphaAnimation
|
H A D | AnimationSet.java | 181 public boolean hasAlpha() { method in class:AnimationSet 189 if (animations.get(i).hasAlpha()) {
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 135 bool hasAlpha = false; local 138 hasAlpha = true; 144 info.hasAlpha = hasAlpha; 153 texture->blend = info.hasAlpha;
|
H A D | GradientCache.h | 145 bool hasAlpha; member in struct:android::uirenderer::GradientCache::GradientInfo
|
/frameworks/native/opengl/libagl/ |
H A D | dxt.cpp | 144 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 D | BitmapTest.java | 52 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 D | BitmapsAlphaActivity.java | 59 Log.d("OpenGLRenderer", " has bitmap alpha? " + mBitmap3.hasAlpha());
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 230 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 D | ProgramCache.h | 117 inline bool hasAlpha() const { return (mKey & ALPHA_MASK) == ALPHA_LT_ONE; } function in class:android::ProgramCache::Key
|
H A D | ProgramCache.cpp | 552 if (needs.getTextureTarget() == Key::TEXTURE_OFF || needs.hasAlpha()) { 626 if (needs.hasAlpha()) {
|
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/ |
H A D | FitWidthBitmapDrawable.java | 194 return (bitmap == null || bitmap.hasAlpha() || mBitmapState.mPaint.getAlpha() < 255)
|
/frameworks/base/core/java/android/view/ |
H A D | RecordingCanvas.java | 148 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 D | Bitmap_Delegate.java | 231 * 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 D | LinearGradient_Delegate.java | 166 mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault();
|
H A D | RadialGradient_Delegate.java | 155 mColorModel = colorModel.hasAlpha() ? colorModel : ColorModel.getRGBdefault();
|
H A D | BaseCanvas_Delegate.java | 112 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 D | RoundedBitmapDrawable.java | 376 || bm.hasAlpha()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | BasicBitmapDrawable.java | 440 return (hasBitmap() && (mBitmap.bmp.hasAlpha() || mPaint.getAlpha() < 255)) ?
|
/frameworks/native/services/surfaceflinger/tests/ |
H A D | SurfaceInterceptor_test.cpp | 404 bool hasAlpha(change.alpha().alpha() == ALPHA_UPDATE); 405 if (hasAlpha && !foundAlpha) { 408 else if (hasAlpha && foundAlpha) {
|