Home
last modified time | relevance | path

Searched refs:Mode (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/frameworks/base/graphics/java/android/graphics/
DPorterDuff.java180 public enum Mode { enum in PorterDuff
362 Mode(int nativeInt) { in Mode() method in PorterDuff.Mode
376 public static int modeToInt(Mode mode) { in modeToInt()
383 public static Mode intToMode(int val) { in intToMode()
386 case 0: return Mode.CLEAR; in intToMode()
387 case 1: return Mode.SRC; in intToMode()
388 case 2: return Mode.DST; in intToMode()
389 case 3: return Mode.SRC_OVER; in intToMode()
390 case 4: return Mode.DST_OVER; in intToMode()
391 case 5: return Mode.SRC_IN; in intToMode()
[all …]
DBlendMode.java525 public static @Nullable PorterDuff.Mode blendModeToPorterDuffMode(@Nullable BlendMode mode) { in blendModeToPorterDuffMode()
529 return PorterDuff.Mode.CLEAR; in blendModeToPorterDuffMode()
531 return PorterDuff.Mode.SRC; in blendModeToPorterDuffMode()
533 return PorterDuff.Mode.DST; in blendModeToPorterDuffMode()
535 return PorterDuff.Mode.SRC_OVER; in blendModeToPorterDuffMode()
537 return PorterDuff.Mode.DST_OVER; in blendModeToPorterDuffMode()
539 return PorterDuff.Mode.SRC_IN; in blendModeToPorterDuffMode()
541 return PorterDuff.Mode.DST_IN; in blendModeToPorterDuffMode()
543 return PorterDuff.Mode.SRC_OUT; in blendModeToPorterDuffMode()
545 return PorterDuff.Mode.DST_OUT; in blendModeToPorterDuffMode()
[all …]
DAvoidXfermode.java29 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()
DPorterDuffColorFilter.java30 private PorterDuff.Mode mMode;
40 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in PorterDuffColorFilter()
68 public PorterDuff.Mode getMode() { in getMode()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DXfermodeActivity.java28 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 …]
DFramebufferBlendActivity.java71 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()
DAdvancedBlendActivity.java85 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/layoutlib/bridge/src/android/graphics/
DPorterDuffColorFilter_Delegate.java22 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()
/frameworks/base/core/java/android/service/controls/templates/
DTemperatureControlTemplate.java59 public @interface Mode {} annotation in TemperatureControlTemplate
66 public static final @Mode int MODE_UNKNOWN = 0;
71 public static final @Mode int MODE_OFF = 1;
76 public static final @Mode int MODE_HEAT = 2;
81 public static final @Mode int MODE_COOL = 3;
86 public static final @Mode int MODE_HEAT_COOL = 4;
91 public static final @Mode int MODE_ECO = 5;
147 private final @Mode int mCurrentMode;
148 private final @Mode int mCurrentActiveMode;
165 @Mode int currentMode, in TemperatureControlTemplate()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/os/
DFakeHandler.java34 private Mode mMode = Mode.IMMEDIATE;
44 if (mMode == Mode.IMMEDIATE) { in sendMessageAtTime()
50 public void setMode(Mode mode) { in setMode()
65 public enum Mode { enum in FakeHandler
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode.cpp170 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/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorInstrumentationTestRunner.java42 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/av/media/libstagefright/codecs/amrnb/dec/src/
Damrdecode.cpp397 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/
Ddatapart_decode.cpp141 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/services/tests/wmtests/src/com/android/server/wm/
DRefreshRatePolicyTest.java28 import android.view.Display.Mode;
56 Mode defaultMode = di.getDefaultMode(); in setUp()
57 di.supportedModes = new Mode[] { in setUp()
58 new Mode(1, defaultMode.getPhysicalWidth(), defaultMode.getPhysicalHeight(), 90), in setUp()
59 new Mode(2, defaultMode.getPhysicalWidth(), defaultMode.getPhysicalHeight(), 70), in setUp()
60 new Mode(LOW_MODE_ID, in setUp()
/frameworks/base/core/java/android/view/
DDisplay.java902 public Mode getMode() { in getMode()
912 public Mode[] getSupportedModes() { in getSupportedModes()
915 final Display.Mode[] modes = mDisplayInfo.supportedModes; in getSupportedModes()
1378 public static final class Mode implements Parcelable { class in Display
1382 public static final Mode[] EMPTY_ARRAY = new Mode[0];
1393 public Mode(int modeId, int width, int height, float refreshRate) { in Mode() method in Display.Mode
1462 if (!(other instanceof Mode)) { in equals()
1465 Mode that = (Mode) other; in equals()
1495 private Mode(Parcel in) { in Mode() method in Display.Mode
1508 public static final @android.annotation.NonNull Parcelable.Creator<Mode> CREATOR
[all …]
/frameworks/av/media/codec2/faultinjection/
DSimpleMethodState.h29 enum Mode { enum
67 Mode getMode() const;
75 Mode mMode;
/frameworks/native/services/inputflinger/dispatcher/
DCancelationOptions.h26 enum Mode { enum
34 Mode mode;
48 CancelationOptions(Mode mode, const char* reason) : mode(mode), reason(reason) {} in CancelationOptions()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DPorterDuffUtility.java25 import android.graphics.PorterDuff.Mode;
36 private static final int MODES_COUNT = Mode.values().length;
46 public static Mode getPorterDuffMode(int porterDuffMode) { in getPorterDuffMode()
53 return Mode.SRC_OVER; in getPorterDuffMode()
60 public static Composite getComposite(Mode mode, int alpha255) { in getComposite()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DTracer.java49 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/native/libs/vr/libpdx/private/pdx/
Dfile_handle.h19 template <FileHandleMode Mode>
54 if (Mode == FileHandleMode::Local) in AsDuplicate()
81 if (IsValid() && Mode == FileHandleMode::Local) in Close()
97 return FileHandle(Mode == FileHandleMode::Local ? dup(fd_) : fd_); in Duplicate()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp52 using android::hardware::power::Mode;
228 static bool setPowerModeWithHandle(sp<IPowerAidl> handle, Mode mode, bool enabled) { in setPowerModeWithHandle()
231 static std::array<std::atomic<HalSupport>, static_cast<int32_t>(Mode::DISPLAY_INACTIVE) + 1> in setPowerModeWithHandle()
235 if (mode > Mode::DISPLAY_INACTIVE || in setPowerModeWithHandle()
257 static bool setPowerMode(Mode mode, bool enabled) { in setPowerMode()
296 setPowerModeWithHandle(handle, Mode::LAUNCH, static_cast<bool>(data)); in sendPowerHint()
301 setPowerModeWithHandle(handle, Mode::LOW_POWER, static_cast<bool>(data)); in sendPowerHint()
306 setPowerModeWithHandle(handle, Mode::SUSTAINED_PERFORMANCE, in sendPowerHint()
312 setPowerModeWithHandle(handle, Mode::VR, static_cast<bool>(data)); in sendPowerHint()
449 setPowerModeWithHandle(handle, Mode::INTERACTIVE, enable); in nativeSetInteractive()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java44 import android.graphics.PorterDuff.Mode;
186 static final PorterDuff.Mode DEFAULT_TINT_MODE = PorterDuff.Mode.SRC_IN;
625 public void setColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { in setColorFilter()
697 public void setTintMode(@Nullable PorterDuff.Mode tintMode) { in setTintMode()
724 PorterDuff.Mode mode = BlendMode.blendModeToPorterDuffMode(blendMode); in setTintBlendMode()
1585 @Nullable ColorStateList tint, @Nullable PorterDuff.Mode tintMode) { in updateTintFilter()
1704 public static PorterDuff.Mode parseTintMode(int value, Mode defaultMode) { in parseTintMode()
1706 case 3: return Mode.SRC_OVER; in parseTintMode()
1707 case 5: return Mode.SRC_IN; in parseTintMode()
1708 case 9: return Mode.SRC_ATOP; in parseTintMode()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
DUserIconDrawableTest.java29 import android.graphics.PorterDuff.Mode;
54 final PorterDuff.Mode mode = Mode.SRC_OVER; in setTintList_shouldBeApplied()
/frameworks/base/core/java/android/net/
Dnetwork-policy-restrictions.md13 * **DS ON**: Data Saver Mode is on
14 * **DS OFF**: Data Saver Mode is off
15 * **BS ON**: Battery Saver Mode is on
16 * **BS OFF**: Battery Saver Mode is off

12345678910>>...12