/frameworks/base/graphics/java/android/graphics/ |
D | PorterDuff.java | 22 public enum Mode { enum in PorterDuff 61 Mode(int nativeInt) { in Mode() method in PorterDuff.Mode 74 public static final int modeToInt(Mode mode) { in modeToInt() 81 public static final Mode intToMode(int val) { in intToMode() 84 case 0: return Mode.CLEAR; in intToMode() 85 case 1: return Mode.SRC; in intToMode() 86 case 2: return Mode.DST; in intToMode() 87 case 3: return Mode.SRC_OVER; in intToMode() 88 case 4: return Mode.DST_OVER; in intToMode() 89 case 5: return Mode.SRC_IN; in intToMode() [all …]
|
D | PorterDuffColorFilter.java | 28 private PorterDuff.Mode mMode; 40 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in PorterDuffColorFilter() 85 public PorterDuff.Mode getMode() { in getMode() 99 public void setMode(@NonNull PorterDuff.Mode mode) { in setMode()
|
D | AvoidXfermode.java | 29 public enum Mode { enum in AvoidXfermode 33 Mode(int nativeInt) { in Mode() method in AvoidXfermode.Mode 54 public AvoidXfermode(int opColor, int tolerance, Mode mode) { in AvoidXfermode()
|
D | PorterDuffXfermode.java | 23 public final PorterDuff.Mode mode; 30 public PorterDuffXfermode(PorterDuff.Mode mode) { in PorterDuffXfermode()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | XfermodeActivity.java | 28 import static android.graphics.PorterDuff.Mode; 63 drawRects(canvas, Mode.SRC_OVER); in onDraw() 66 drawRects(canvas, Mode.SRC_IN); in onDraw() 69 drawRects(canvas, Mode.SRC_OUT); in onDraw() 72 drawRects(canvas, Mode.SRC_ATOP); in onDraw() 75 drawRects(canvas, Mode.SRC); in onDraw() 84 drawRects(canvas, Mode.DST_OVER); in onDraw() 87 drawRects(canvas, Mode.DST_IN); in onDraw() 90 drawRects(canvas, Mode.DST_OUT); in onDraw() 93 drawRects(canvas, Mode.DST_ATOP); in onDraw() [all …]
|
D | FramebufferBlendActivity.java | 71 drawBlendedBitmap(canvas, PorterDuff.Mode.DARKEN); in onDraw() 72 drawBlendedBitmap(canvas, PorterDuff.Mode.LIGHTEN); in onDraw() 73 drawBlendedBitmap(canvas, PorterDuff.Mode.MULTIPLY); in onDraw() 80 drawBlendedBitmap(canvas, PorterDuff.Mode.SCREEN); in onDraw() 81 drawBlendedBitmap(canvas, PorterDuff.Mode.ADD); in onDraw() 82 drawBlendedBitmapInverse(canvas, PorterDuff.Mode.OVERLAY); in onDraw() 87 private void drawBlendedBitmap(Canvas canvas, PorterDuff.Mode mode) { in drawBlendedBitmap() 99 private void drawBlendedBitmapInverse(Canvas canvas, PorterDuff.Mode mode) { in drawBlendedBitmapInverse()
|
D | AdvancedBlendActivity.java | 85 PorterDuff.Mode.DARKEN); in ShadersView() 87 PorterDuff.Mode.LIGHTEN); in ShadersView() 89 PorterDuff.Mode.MULTIPLY); in ShadersView() 91 PorterDuff.Mode.SCREEN); in ShadersView() 93 PorterDuff.Mode.ADD); in ShadersView() 95 PorterDuff.Mode.OVERLAY); in ShadersView()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | PorterDuffColorFilter_Delegate.java | 22 import android.graphics.PorterDuff.Mode; 52 private final Mode mMode; 96 private Mode getCompatibleMode(Mode mode) { in getCompatibleMode() 97 Mode m = mode; in getCompatibleMode() 104 m = Mode.SRC_IN; in getCompatibleMode() 107 m = Mode.SRC_ATOP; in getCompatibleMode() 110 m = Mode.DST; in getCompatibleMode() 113 m = Mode.CLEAR; in getCompatibleMode() 116 m = Mode.DST_IN; in getCompatibleMode() 119 m = Mode.DST_OUT; in getCompatibleMode()
|
D | PorterDuffXfermode_Delegate.java | 23 import android.graphics.PorterDuff.Mode; 48 private final Mode mMode; 52 public Mode getMode() { in getMode()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | ViewUtils.java | 42 static PorterDuff.Mode parseTintMode(int value, PorterDuff.Mode defaultMode) { in parseTintMode() 45 return PorterDuff.Mode.SRC_OVER; in parseTintMode() 47 return PorterDuff.Mode.SRC_IN; in parseTintMode() 49 return PorterDuff.Mode.SRC_ATOP; in parseTintMode() 51 return PorterDuff.Mode.MULTIPLY; in parseTintMode() 53 return PorterDuff.Mode.SCREEN; in parseTintMode()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | vlc_encode.cpp | 170 Void DCACPred(VideoEncData *video, UChar Mode, Int *intraDC_decision, Int intraDCVlcQP); 173 static Bool IntraDCSwitch_Decision(Int Mode, Int intra_dc_vlc_threshold, Int intraDCVlcQP); 891 UChar Mode = video->headerInfo.Mode[video->mbnum]; in MBVlcEncodeDataPar_I_VOP() local 902 DCACPred(video, Mode, &intraDC_decision, video->QP_prev); in MBVlcEncodeDataPar_I_VOP() 913 if (dquant && Mode == MODE_INTRA) in MBVlcEncodeDataPar_I_VOP() 915 Mode = MODE_INTRA_Q; in MBVlcEncodeDataPar_I_VOP() 925 PutMCBPC_Intra(CBP, Mode, bs1); /* MCBPC */ in MBVlcEncodeDataPar_I_VOP() 927 if (Mode == MODE_INTRA_Q) in MBVlcEncodeDataPar_I_VOP() 959 … (*BlockCodeCoeff)(&(RLB[i]), bs3, 1 - intraDC_decision, ncoefblck[i], Mode);/* Code Intra AC*/ in MBVlcEncodeDataPar_I_VOP() 980 UChar Mode = video->headerInfo.Mode[mbnum]; in MBVlcEncodeDataPar_P_VOP() local [all …]
|
/frameworks/support/compat/java/android/support/v4/widget/ |
D | CompoundButtonCompat.java | 50 void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode); in setButtonTintMode() 51 PorterDuff.Mode getButtonTintMode(CompoundButton button); in getButtonTintMode() 67 public void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() 72 public PorterDuff.Mode getButtonTintMode(CompoundButton button) { in getButtonTintMode() 94 public void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() 99 public PorterDuff.Mode getButtonTintMode(CompoundButton button) { in getButtonTintMode() 151 @Nullable PorterDuff.Mode tintMode) { in setButtonTintMode() 161 public static PorterDuff.Mode getButtonTintMode(@NonNull CompoundButton button) { in getButtonTintMode()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 701 public Mode getMode() { in getMode() 711 public Mode[] getSupportedModes() { in getSupportedModes() 714 final Display.Mode[] modes = mDisplayInfo.supportedModes; in getSupportedModes() 1006 public static final class Mode implements Parcelable { class in Display 1010 public static final Mode[] EMPTY_ARRAY = new Mode[0]; 1020 public Mode(int modeId, int width, int height, float refreshRate) { in Mode() method in Display.Mode 1089 if (!(other instanceof Mode)) { in equals() 1092 Mode that = (Mode) other; in equals() 1122 private Mode(Parcel in) { in Mode() method in Display.Mode 1135 public static final Parcelable.Creator<Mode> CREATOR [all …]
|
D | DisplayInfo.java | 170 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY; 368 supportedModes = new Display.Mode[nModes]; in readFromParcel() 370 supportedModes[i] = Display.Mode.CREATOR.createFromParcel(source); in readFromParcel() 438 public Display.Mode getMode() { in getMode() 442 public Display.Mode getDefaultMode() { in getDefaultMode() 446 private Display.Mode findMode(int id) { in findMode() 460 Display.Mode[] modes = supportedModes; in findDefaultModeByRefreshRate() 461 Display.Mode defaultMode = getDefaultMode(); in findDefaultModeByRefreshRate() 475 Display.Mode[] modes = supportedModes; in getDefaultRefreshRates() 477 Display.Mode defaultMode = getDefaultMode(); in getDefaultRefreshRates() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | DrawableUtils.java | 178 static PorterDuff.Mode parseTintMode(int value, PorterDuff.Mode defaultMode) { in parseTintMode() 180 case 3: return PorterDuff.Mode.SRC_OVER; in parseTintMode() 181 case 5: return PorterDuff.Mode.SRC_IN; in parseTintMode() 182 case 9: return PorterDuff.Mode.SRC_ATOP; in parseTintMode() 183 case 14: return PorterDuff.Mode.MULTIPLY; in parseTintMode() 184 case 15: return PorterDuff.Mode.SCREEN; in parseTintMode() 186 ? PorterDuff.Mode.valueOf("ADD") in parseTintMode()
|
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorInstrumentationTestRunner.java | 42 Tracer.Mode mode = Tracer.Mode.valueOf(Tracer.Mode.class, traceType); in onStart() 43 if (mode == Tracer.Mode.FILE || mode == Tracer.Mode.ALL) { in onStart()
|
/frameworks/base/libs/hwui/utils/ |
D | PaintUtils.h | 40 static inline SkXfermode::Mode getXfermode(SkXfermode* mode) { in getXfermode() 41 SkXfermode::Mode resultMode; in getXfermode() 80 SkXfermode::Mode mode = getXfermode(paint->getXfermode()); in isOpaquePaint() 81 return mode == SkXfermode::Mode::kSrcOver_Mode in isOpaquePaint() 82 || mode == SkXfermode::Mode::kSrc_Mode; in isOpaquePaint() 124 static inline SkXfermode::Mode getXfermodeDirect(const SkPaint* paint) { in getXfermodeDirect()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
D | ImageViewBindingObject.java | 31 private PorterDuff.Mode mTintMode = PorterDuff.Mode.DARKEN; 41 public PorterDuff.Mode getTintMode() { in getTintMode() 48 mTintMode = PorterDuff.Mode.LIGHTEN; in changeValues()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | amrdecode.cpp | 397 enum Mode mode = (enum Mode)MR475; in AMRDecode() 437 mode = (enum Mode) frame_type; in AMRDecode() 450 mode = (enum Mode) modeStore; in AMRDecode() 502 mode = (enum Mode) * ets_word_ptr; in AMRDecode()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | datapart_decode.cpp | 141 uint8 *Mode = video->headerInfo.Mode; in DecodeDataPart_I_VideoPacket() local 173 Mode[mbnum] = (uint8)(MBtype = MBtype_mode[MCBPC & 7]); in DecodeDataPart_I_VideoPacket() 234 MBtype = Mode[mbnum]; in DecodeDataPart_I_VideoPacket() 306 uint8 *Mode = video->headerInfo.Mode; in DecodeDataPart_P_VideoPacket() local 350 if (Mode[video->mbnum] & INTER_MASK) /* INTER || INTER_Q || INTER_4V */ in DecodeDataPart_P_VideoPacket() 353 status = PV_GetMBvectors(video, Mode[video->mbnum]); in DecodeDataPart_P_VideoPacket() 412 MBtype = Mode[mbnum]; in DecodeDataPart_P_VideoPacket() 460 if (Mode[mbnum] != MODE_SKIPPED) in DecodeDataPart_P_VideoPacket() 522 uint8 *Mode = video->headerInfo.Mode; in GetMBheaderDataPart_DQUANT_DC() local 523 int MBtype = Mode[mbnum]; in GetMBheaderDataPart_DQUANT_DC() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | Tracer.java | 49 public enum Mode { enum in Tracer 93 private Mode mCurrentMode = Mode.NONE; 118 public void setOutputMode(Mode mode) { in setOutputMode() 167 if (mCurrentMode == Mode.NONE) { in doTrace() 190 return mCurrentMode != Mode.NONE; in isTracingEnabled()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | PorterDuffUtility.java | 25 import android.graphics.PorterDuff.Mode; 38 private static final int MODES_COUNT = Mode.values().length; 48 public static Mode getPorterDuffMode(int porterDuffMode) { in getPorterDuffMode() 55 return Mode.SRC_OVER; in getPorterDuffMode() 62 public static Composite getComposite(Mode mode, int alpha255) { in getComposite()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 44 import android.graphics.PorterDuff.Mode; 177 static final PorterDuff.Mode DEFAULT_TINT_MODE = PorterDuff.Mode.SRC_IN; 575 public void setColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in setColorFilter() 637 public void setTintMode(@NonNull PorterDuff.Mode tintMode) {} in setTintMode() 1407 @Nullable ColorStateList tint, @Nullable PorterDuff.Mode tintMode) { in updateTintFilter() 1511 public static PorterDuff.Mode parseTintMode(int value, Mode defaultMode) { in parseTintMode() 1513 case 3: return Mode.SRC_OVER; in parseTintMode() 1514 case 5: return Mode.SRC_IN; in parseTintMode() 1515 case 9: return Mode.SRC_ATOP; in parseTintMode() 1516 case 14: return Mode.MULTIPLY; in parseTintMode() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.h | 32 enum Mode { enum 47 ElementaryStreamQueue(Mode mode, uint32_t flags = 0); 63 Mode mMode;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ScrimView.java | 82 PorterDuff.Mode mode = mDrawAsSrc ? PorterDuff.Mode.SRC : PorterDuff.Mode.SRC_OVER; in onDraw() 118 mPaint.setXfermode(new PorterDuffXfermode(mDrawAsSrc ? PorterDuff.Mode.SRC in setDrawAsSrc() 119 : PorterDuff.Mode.SRC_OVER)); in setDrawAsSrc()
|