Home
last modified time | relevance | path

Searched refs:BlendMode (Results 1 – 25 of 57) 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;
109 static final BlendMode DEFAULT_BLEND_MODE = Drawable.DEFAULT_BLEND_MODE; // SRC_IN
110 private BlendMode mBlendMode = Drawable.DEFAULT_BLEND_MODE;
701 mBlendMode = BlendMode.fromValue(mode.nativeInt); in setTintMode()
711 public @NonNull Icon setTintBlendMode(@NonNull BlendMode mode) { in setTintBlendMode()
822 mBlendMode = BlendMode.fromValue(in.readInt()); in Icon()
852 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;
DBitmapDrawable.java28 import android.graphics.BlendMode;
688 public void setTintBlendMode(@NonNull BlendMode blendMode) { in setTintBlendMode()
711 return BlendMode.blendModeToPorterDuffMode(mBitmapState.mBlendMode); in getTintMode()
870 state.mBlendMode = Drawable.parseBlendMode(tintMode, BlendMode.SRC_IN); in updateStateFromTypedArray()
985 BlendMode mBlendMode = DEFAULT_BLEND_MODE;
/frameworks/base/core/java/android/widget/
DProgressBar.java28 import android.graphics.BlendMode;
804 ? BlendMode.fromValue(tintMode.nativeInt) : null); in setIndeterminateTintMode()
818 public void setIndeterminateTintBlendMode(@Nullable BlendMode blendMode) { in setIndeterminateTintBlendMode()
840 BlendMode mode = getIndeterminateTintBlendMode(); in getIndeterminateTintMode()
841 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getIndeterminateTintMode()
855 public BlendMode getIndeterminateTintBlendMode() { in getIndeterminateTintBlendMode()
1113 setProgressTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setProgressTintMode()
1127 public void setProgressTintBlendMode(@Nullable BlendMode blendMode) { in setProgressTintBlendMode()
1151 BlendMode mode = getProgressTintBlendMode(); in getProgressTintMode()
1152 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()
DAbsSeekBar.java25 import android.graphics.BlendMode;
57 private BlendMode mThumbBlendMode = null;
63 private BlendMode mTickMarkBlendMode = null;
287 setThumbTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : in setThumbTintMode()
303 public void setThumbTintBlendMode(@Nullable BlendMode blendMode) { in setThumbTintBlendMode()
321 ? BlendMode.blendModeToPorterDuffMode(mThumbBlendMode) : null; in getThumbTintMode()
333 public BlendMode getThumbTintBlendMode() { in getThumbTintBlendMode()
473 setTickMarkTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTickMarkTintMode()
488 public void setTickMarkTintBlendMode(@Nullable BlendMode blendMode) { in setTickMarkTintBlendMode()
507 ? BlendMode.blendModeToPorterDuffMode(mTickMarkBlendMode) : null; in getTickMarkTintMode()
[all …]
DSwitch.java29 import android.graphics.BlendMode;
102 private BlendMode mThumbBlendMode = null;
109 private BlendMode mTrackBlendMode = null;
272 BlendMode thumbTintMode = Drawable.parseBlendMode( in Switch()
289 BlendMode trackTintMode = Drawable.parseBlendMode( in Switch()
593 setTrackTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setTrackTintMode()
607 public void setTrackTintBlendMode(@Nullable BlendMode blendMode) { in setTrackTintBlendMode()
623 BlendMode mode = getTrackTintBlendMode(); in getTrackTintMode()
624 return mode != null ? BlendMode.blendModeToPorterDuffMode(mode) : null; in getTrackTintMode()
635 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()
DCompoundButton.java26 import android.graphics.BlendMode;
71 private BlendMode mButtonBlendMode = null;
341 setButtonTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null); in setButtonTintMode()
355 public void setButtonTintBlendMode(@Nullable BlendMode tintMode) { in setButtonTintBlendMode()
370 return mButtonBlendMode != null ? BlendMode.blendModeToPorterDuffMode(mButtonBlendMode) : in getButtonTintMode()
382 public BlendMode getButtonTintBlendMode() { in getButtonTintBlendMode()
DImageView.java30 import android.graphics.BlendMode;
131 private BlendMode mDrawableBlendMode = null;
230 mDrawableBlendMode = BlendMode.SRC_ATOP; in ImageView()
678 setImageTintBlendMode(tintMode != null ? BlendMode.fromValue(tintMode.nativeInt) : null);
692 public void setImageTintBlendMode(@Nullable BlendMode blendMode) {
709 ? BlendMode.blendModeToPorterDuffMode(mDrawableBlendMode) : null;
720 public BlendMode getImageTintBlendMode() {
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h64 Hwc2::IComposerClient::BlendMode blendMode{Hwc2::IComposerClient::BlendMode::INVALID};
/frameworks/native/libs/vr/libvrflinger/
Dhardware_composer.h73 HWC::BlendMode blending, HWC::Composition composition_type,
86 const std::shared_ptr<IonBuffer>& buffer, HWC::BlendMode blending,
115 void SetBlending(HWC::BlendMode blending);
187 HWC::BlendMode blending_ = HWC::BlendMode::None;
Dhwc_types.h177 struct BlendMode final : public Wrapper<HWC2::BlendMode> {
185 BlendMode() : Base(Invalid) {}
Dhardware_composer.cpp1042 HWC::BlendMode blending = in UpdateLayerConfig()
1043 layer_index == 0 ? HWC::BlendMode::None : HWC::BlendMode::Coverage; in UpdateLayerConfig()
1303 blending_ = HWC::BlendMode::None; in Reset()
1316 HWC::BlendMode blending, HWC::Composition composition_type, in Layer()
1328 const std::shared_ptr<IonBuffer>& buffer, HWC::BlendMode blending, in Layer()
1371 void Layer::SetBlending(HWC::BlendMode blending) { in SetBlending()
1402 blending_.cast<Hwc2::IComposerClient::BlendMode>()); in UpdateVisibilitySettings()
/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/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp254 static constexpr Hwc2::IComposerClient::BlendMode kBlendMode =
255 static_cast<Hwc2::IComposerClient::BlendMode>(41);
284 EXPECT_CALL(*mHwcLayer, setBlendMode(static_cast<HWC2::BlendMode>(kBlendMode))) in expectGeometryCommonCalls()
DMockHWC2.h45 MOCK_METHOD1(setBlendMode, Error(BlendMode));
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h57 using BlendMode = member
58 hardware::graphics::composer::V2_1::IComposerClient::BlendMode;
65 BlendMode blend_mode;

123