Home
last modified time | relevance | path

Searched refs:BlendMode (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/graphics/java/android/graphics/
DBlendMode.java22 public enum BlendMode { enum
501 private static final BlendMode[] BLEND_MODES = values();
506 public static @Nullable BlendMode fromValue(int value) { in fromValue()
507 for (BlendMode mode : BLEND_MODES) { in fromValue()
518 public static int toValue(BlendMode mode) { in toValue()
525 public static @Nullable PorterDuff.Mode blendModeToPorterDuffMode(@Nullable BlendMode mode) { in blendModeToPorterDuffMode()
576 BlendMode(int mode) { in BlendMode() method in BlendMode
DBlendModeColorFilter.java29 private final BlendMode mMode;
31 public BlendModeColorFilter(@ColorInt int color, @NonNull BlendMode mode) { in BlendModeColorFilter()
56 public BlendMode getMode() { in getMode()
/frameworks/base/core/java/android/view/
DMenuItem.java27 import android.graphics.BlendMode;
289 default @NonNull MenuItem setIconTintBlendMode(@Nullable BlendMode blendMode) { in setIconTintBlendMode()
290 PorterDuff.Mode mode = BlendMode.blendModeToPorterDuffMode(blendMode); in setIconTintBlendMode()
319 default BlendMode getIconTintBlendMode() { in getIconTintBlendMode()
322 return BlendMode.fromValue(mode.nativeInt); in getIconTintBlendMode()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java32 import android.graphics.BlendMode;
187 static final BlendMode DEFAULT_BLEND_MODE = BlendMode.SRC_IN;
700 BlendMode mode = tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null; in setTintMode()
721 public void setTintBlendMode(@Nullable BlendMode blendMode) { in setTintBlendMode()
724 PorterDuff.Mode mode = BlendMode.blendModeToPorterDuffMode(blendMode); in setTintBlendMode()
1597 @Nullable ColorStateList tint, @Nullable BlendMode blendMode) { in updateBlendModeFilter()
1720 public static BlendMode parseBlendMode(int value, BlendMode defaultMode) { in parseBlendMode()
1722 case 3: return BlendMode.SRC_OVER; in parseBlendMode()
1723 case 5: return BlendMode.SRC_IN; in parseBlendMode()
1724 case 9: return BlendMode.SRC_ATOP; in parseBlendMode()
[all …]
DIcon.java36 import android.graphics.BlendMode;
120 static final BlendMode DEFAULT_BLEND_MODE = Drawable.DEFAULT_BLEND_MODE; // SRC_IN
121 private BlendMode mBlendMode = Drawable.DEFAULT_BLEND_MODE;
780 mBlendMode = BlendMode.fromValue(mode.nativeInt); in setTintMode()
790 public @NonNull Icon setTintBlendMode(@NonNull BlendMode mode) { in setTintBlendMode()
796 public @NonNull BlendMode getTintBlendMode() { in getTintBlendMode()
908 mBlendMode = BlendMode.fromValue(in.readInt()); in Icon()
939 dest.writeInt(BlendMode.toValue(mBlendMode)); in writeToParcel()
DColorStateListDrawable.java24 import android.graphics.BlendMode;
124 public void setTintBlendMode(@NonNull BlendMode blendMode) { in setTintBlendMode()
252 BlendMode mBlendMode = DEFAULT_BLEND_MODE;
DColorDrawable.java29 import android.graphics.BlendMode;
219 public void setTintBlendMode(@NonNull BlendMode blendMode) { in setTintBlendMode()
355 BlendMode mBlendMode = DEFAULT_BLEND_MODE;
DShapeDrawable.java27 import android.graphics.BlendMode;
300 public void setTintBlendMode(@NonNull BlendMode blendMode) { in setTintBlendMode()
479 state.mBlendMode = Drawable.parseBlendMode(tintMode, BlendMode.SRC_IN); in updateStateFromTypedArray()
544 BlendMode mBlendMode = DEFAULT_BLEND_MODE;
/frameworks/base/core/java/android/widget/
DAnalogClock.java29 import android.graphics.BlendMode;
134 BlendMode dialTintMode = Drawable.parseBlendMode( in AnalogClock()
156 BlendMode hourHandTintMode = Drawable.parseBlendMode( in AnalogClock()
178 BlendMode minuteHandTintMode = Drawable.parseBlendMode( in AnalogClock()
197 BlendMode secondHandTintMode = Drawable.parseBlendMode( in AnalogClock()
275 public void setDialTintBlendMode(@Nullable BlendMode blendMode) { in setDialTintBlendMode()
289 public BlendMode getDialTintBlendMode() { in getDialTintBlendMode()
351 public void setHourHandTintBlendMode(@Nullable BlendMode blendMode) { in setHourHandTintBlendMode()
366 public BlendMode getHourHandTintBlendMode() { in getHourHandTintBlendMode()
428 public void setMinuteHandTintBlendMode(@Nullable BlendMode blendMode) { in setMinuteHandTintBlendMode()
[all …]
DProgressBar.java30 import android.graphics.BlendMode;
812 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setIndeterminateTintMode()
827 public void setIndeterminateTintBlendMode(@Nullable BlendMode blendMode) { in setIndeterminateTintBlendMode()
849 BlendMode mode = getIndeterminateTintBlendMode(); in getIndeterminateTintMode()
850 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getIndeterminateTintMode()
864 public BlendMode getIndeterminateTintBlendMode() { in getIndeterminateTintBlendMode()
1122 setProgressTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setProgressTintMode()
1137 public void setProgressTintBlendMode(@Nullable BlendMode blendMode) { in setProgressTintBlendMode()
1161 BlendMode mode = getProgressTintBlendMode(); in getProgressTintMode()
1162 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getProgressTintMode()
[all …]
DCheckedTextView.java26 import android.graphics.BlendMode;
62 private BlendMode mCheckMarkBlendMode = null;
265 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setCheckMarkTintMode()
279 public void setCheckMarkTintBlendMode(@Nullable BlendMode tintMode) { in setCheckMarkTintBlendMode()
299 ? BlendMode.blendModeToPorterDuffMode(mCheckMarkBlendMode) : null; in getCheckMarkTintMode()
313 public BlendMode getCheckMarkTintBlendMode() { in getCheckMarkTintBlendMode()
DSwitch.java29 import android.graphics.BlendMode;
106 private BlendMode mThumbBlendMode = null;
113 private BlendMode mTrackBlendMode = null;
276 BlendMode thumbTintMode = Drawable.parseBlendMode( in Switch()
293 BlendMode trackTintMode = Drawable.parseBlendMode( in Switch()
628 setTrackTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTrackTintMode()
643 public void setTrackTintBlendMode(@Nullable BlendMode blendMode) { in setTrackTintBlendMode()
659 BlendMode mode = getTrackTintBlendMode(); in getTrackTintMode()
660 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getTrackTintMode()
671 public BlendMode getTrackTintBlendMode() { in getTrackTintBlendMode()
[all …]
DAbsSeekBar.java25 import android.graphics.BlendMode;
59 private BlendMode mThumbBlendMode = null;
65 private BlendMode mTickMarkBlendMode = null;
293 setThumbTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : in setThumbTintMode()
309 public void setThumbTintBlendMode(@Nullable BlendMode blendMode) { in setThumbTintBlendMode()
327 ? BlendMode.blendModeToPorterDuffMode(mThumbBlendMode) : null; in getThumbTintMode()
339 public BlendMode getThumbTintBlendMode() { in getThumbTintBlendMode()
479 setTickMarkTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTickMarkTintMode()
494 public void setTickMarkTintBlendMode(@Nullable BlendMode blendMode) { in setTickMarkTintBlendMode()
513 ? BlendMode.blendModeToPorterDuffMode(mTickMarkBlendMode) : null; in getTickMarkTintMode()
[all …]
DCompoundButton.java26 import android.graphics.BlendMode;
73 private BlendMode mButtonBlendMode = null;
410 setButtonTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setButtonTintMode()
425 public void setButtonTintBlendMode(@Nullable BlendMode tintMode) { in setButtonTintBlendMode()
440 return mButtonBlendMode != null ? BlendMode.blendModeToPorterDuffMode(mButtonBlendMode) : in getButtonTintMode()
452 public BlendMode getButtonTintBlendMode() { in getButtonTintBlendMode()
DEdgeEffect.java30 import android.graphics.BlendMode;
77 public static final BlendMode DEFAULT_BLEND_MODE = BlendMode.SRC_ATOP;
550 public void setBlendMode(@Nullable BlendMode blendmode) { in setBlendMode()
572 public BlendMode getBlendMode() { in getBlendMode()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h128 hal::BlendMode blendMode{hal::BlendMode::INVALID};
/frameworks/native/libs/vr/libvrflinger/
Dhardware_composer.h74 HWC::BlendMode blending, HWC::Composition composition_type,
87 const std::shared_ptr<IonBuffer>& buffer, HWC::BlendMode blending,
116 void SetBlending(HWC::BlendMode blending);
188 HWC::BlendMode blending_ = HWC::BlendMode::None;
Dhwc_types.h177 struct BlendMode final : public Wrapper<HWC2::BlendMode> {
185 BlendMode() : Base(Invalid) {}
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java22 import android.graphics.BlendMode;
102 drawable.setTintBlendMode(BlendMode.SRC_IN); in setImageDrawable()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
DBlingyNotification.kt21 import android.graphics.BlendMode
81 paint.blendMode = BlendMode.PLUS in onSizeChanged()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/
DGlassView.kt22 import android.graphics.BlendMode
169 materialPaint.blendMode = BlendMode.SOFT_LIGHT
170 noisePaint.blendMode = BlendMode.SOFT_LIGHT
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DThumbnailBehavior.kt19 import android.graphics.BlendMode
89 .getColor(R.color.control_thumbnail_tint), BlendMode.LUMINOSITY)) in bind()
/frameworks/native/libs/gralloc/types/tests/
DGralloc4_test.cpp30 using aidl::android::hardware::graphics::common::BlendMode;
390 class Gralloc4TestBlendMode : public testing::TestWithParam<BlendMode> { };
394 ::testing::Values(BlendMode::INVALID, BlendMode::NONE, BlendMode::PREMULTIPLIED,
395 BlendMode::COVERAGE));
397 TEST_P(Gralloc4TestBlendMode, BlendMode) { in TEST_P() argument
490 ASSERT_NE(NO_ERROR, gralloc4::encodeBlendMode(BlendMode::NONE, nullptr)); in TEST_F()
532 BlendMode blendMode; in TEST_F()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt18 import android.graphics.BlendMode in <lambda>()
115 p.blendMode = BlendMode.SRC in <lambda>()
124 p.blendMode = BlendMode.CLEAR in <lambda>()
143 p.blendMode = BlendMode.SRC in <lambda>()
/frameworks/native/libs/ui/include/ui/
DGraphicTypes.h51 using aidl::android::hardware::graphics::common::BlendMode;

1234