Home
last modified time | relevance | path

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

123

/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()
DComposeShader.java73 @NonNull BlendMode blendMode) { in ComposeShader()
/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.java33 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()
1600 @Nullable ColorStateList tint, @Nullable BlendMode blendMode) { in updateBlendModeFilter()
1723 public static BlendMode parseBlendMode(int value, BlendMode defaultMode) { in parseBlendMode()
1725 case 3: return BlendMode.SRC_OVER; in parseBlendMode()
1726 case 5: return BlendMode.SRC_IN; in parseBlendMode()
1727 case 9: return BlendMode.SRC_ATOP; in parseBlendMode()
[all …]
DIcon.java33 import android.graphics.BlendMode;
115 static final BlendMode DEFAULT_BLEND_MODE = Drawable.DEFAULT_BLEND_MODE; // SRC_IN
116 private BlendMode mBlendMode = Drawable.DEFAULT_BLEND_MODE;
756 mBlendMode = BlendMode.fromValue(mode.nativeInt); in setTintMode()
766 public @NonNull Icon setTintBlendMode(@NonNull BlendMode mode) { in setTintBlendMode()
879 mBlendMode = BlendMode.fromValue(in.readInt()); in Icon()
910 dest.writeInt(BlendMode.toValue(mBlendMode)); in writeToParcel()
DColorStateListDrawable.java24 import android.graphics.BlendMode;
118 public void setTintBlendMode(@NonNull BlendMode blendMode) { in setTintBlendMode()
246 BlendMode mBlendMode = DEFAULT_BLEND_MODE;
DColorDrawable.java29 import android.graphics.BlendMode;
218 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()
480 state.mBlendMode = Drawable.parseBlendMode(tintMode, BlendMode.SRC_IN); in updateStateFromTypedArray()
545 BlendMode mBlendMode = DEFAULT_BLEND_MODE;
/frameworks/base/core/java/android/widget/
DProgressBar.java28 import android.graphics.BlendMode;
806 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setIndeterminateTintMode()
820 public void setIndeterminateTintBlendMode(@Nullable BlendMode blendMode) { in setIndeterminateTintBlendMode()
842 BlendMode mode = getIndeterminateTintBlendMode(); in getIndeterminateTintMode()
843 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getIndeterminateTintMode()
857 public BlendMode getIndeterminateTintBlendMode() { in getIndeterminateTintBlendMode()
1115 setProgressTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setProgressTintMode()
1129 public void setProgressTintBlendMode(@Nullable BlendMode blendMode) { in setProgressTintBlendMode()
1153 BlendMode mode = getProgressTintBlendMode(); in getProgressTintMode()
1154 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getProgressTintMode()
[all …]
DEdgeEffect.java24 import android.graphics.BlendMode;
56 public static final BlendMode DEFAULT_BLEND_MODE = BlendMode.SRC_ATOP;
323 public void setBlendMode(@Nullable BlendMode blendmode) { in setBlendMode()
346 public BlendMode getBlendMode() { in getBlendMode()
DSwitch.java29 import android.graphics.BlendMode;
101 private BlendMode mThumbBlendMode = null;
108 private BlendMode mTrackBlendMode = null;
271 BlendMode thumbTintMode = Drawable.parseBlendMode( in Switch()
288 BlendMode trackTintMode = Drawable.parseBlendMode( in Switch()
595 setTrackTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTrackTintMode()
609 public void setTrackTintBlendMode(@Nullable BlendMode blendMode) { in setTrackTintBlendMode()
625 BlendMode mode = getTrackTintBlendMode(); in getTrackTintMode()
626 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getTrackTintMode()
637 public BlendMode getTrackTintBlendMode() { in getTrackTintBlendMode()
[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()
DAbsSeekBar.java25 import android.graphics.BlendMode;
57 private BlendMode mThumbBlendMode = null;
63 private BlendMode mTickMarkBlendMode = null;
291 setThumbTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : in setThumbTintMode()
307 public void setThumbTintBlendMode(@Nullable BlendMode blendMode) { in setThumbTintBlendMode()
325 ? BlendMode.blendModeToPorterDuffMode(mThumbBlendMode) : null; in getThumbTintMode()
337 public BlendMode getThumbTintBlendMode() { in getThumbTintBlendMode()
477 setTickMarkTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTickMarkTintMode()
492 public void setTickMarkTintBlendMode(@Nullable BlendMode blendMode) { in setTickMarkTintBlendMode()
511 ? BlendMode.blendModeToPorterDuffMode(mTickMarkBlendMode) : null; in getTickMarkTintMode()
[all …]
DCompoundButton.java26 import android.graphics.BlendMode;
71 private BlendMode mButtonBlendMode = null;
381 setButtonTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setButtonTintMode()
395 public void setButtonTintBlendMode(@Nullable BlendMode tintMode) { in setButtonTintBlendMode()
410 return mButtonBlendMode != null ? BlendMode.blendModeToPorterDuffMode(mButtonBlendMode) : in getButtonTintMode()
422 public BlendMode getButtonTintBlendMode() { in getButtonTintBlendMode()
DImageView.java30 import android.graphics.BlendMode;
133 private BlendMode mDrawableBlendMode = null;
232 mDrawableBlendMode = BlendMode.SRC_ATOP; in ImageView()
680 setImageTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null);
694 public void setImageTintBlendMode(@Nullable BlendMode blendMode) {
711 ? BlendMode.blendModeToPorterDuffMode(mDrawableBlendMode) : null;
722 public BlendMode getImageTintBlendMode() {
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h113 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) {}
Dhardware_composer.cpp1050 HWC::BlendMode blending = in UpdateLayerConfig()
1051 layer_index == 0 ? HWC::BlendMode::None : HWC::BlendMode::Coverage; in UpdateLayerConfig()
1331 blending_ = HWC::BlendMode::None; in Reset()
1344 HWC::BlendMode blending, HWC::Composition composition_type, in Layer()
1356 const std::shared_ptr<IonBuffer>& buffer, HWC::BlendMode blending, in Layer()
1399 void Layer::SetBlending(HWC::BlendMode blending) { in SetBlending()
1430 blending_.cast<Hwc2::IComposerClient::BlendMode>()); in UpdateVisibilitySettings()
/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>()
114 p.blendMode = BlendMode.SRC in <lambda>()
123 p.blendMode = BlendMode.CLEAR in <lambda>()
142 p.blendMode = BlendMode.SRC in <lambda>()
/frameworks/native/libs/ui/include/ui/
DGraphicTypes.h51 using aidl::android::hardware::graphics::common::BlendMode;
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicTypes.h51 using aidl::android::hardware::graphics::common::BlendMode;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHal.h50 using BlendMode = IComposerClient::BlendMode; variable

123