Searched refs:saveLayerAlpha (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/libs/hwui/tests/common/scenes/
H A DSaveLayerAnimation.cpp37 canvas.saveLayerAlpha(0, 0, 400, 400, 200, SaveFlags::ClipToLayer);
40 canvas.saveLayerAlpha(100, 100, 300, 300, 128, SaveFlags::ClipToLayer);
48 canvas.saveLayerAlpha(100, 100, 300, 300, 128, SaveFlags::Flags(0)); // unclipped
/frameworks/base/libs/hwui/tests/unit/
H A DLeakCheckTests.cpp35 canvas.saveLayerAlpha(0, 0, 100, 100, 128, SaveFlags::ClipToLayer);
55 canvas.saveLayerAlpha(10, 10, 190, 190, 128, (SaveFlags::Flags)(0));
H A DRecordingCanvasTests.cpp311 canvas.saveLayerAlpha(10, 20, 190, 180, 128, SaveFlags::ClipToLayer);
345 canvas.saveLayerAlpha(0, 0, 200, 200, 128, SaveFlags::ClipToLayer);
360 canvas.saveLayerAlpha(10, 20, 190, 180, 128, (SaveFlags::Flags)0); // unclipped
394 canvas.saveLayerAlpha(10, 20, 190, 180, 128, (SaveFlags::Flags)0); // unclipped
414 canvas.saveLayerAlpha(100, 100, 300, 300, 128, SaveFlags::ClipToLayer);
440 canvas.saveLayerAlpha(0, 0, 100, 100, 128, SaveFlags::ClipToLayer);
467 canvas.saveLayerAlpha(0, 0, 400, 400, 128, SaveFlags::ClipToLayer);
H A DFrameBuilderTests.cpp845 canvas.saveLayerAlpha(10, 10, 190, 190, 128, SaveFlags::ClipToLayer);
921 canvas.saveLayerAlpha(0, 0, 800, 800, 128, SaveFlags::ClipToLayer);
924 canvas.saveLayerAlpha(0, 0, 400, 400, 128, SaveFlags::ClipToLayer);
947 canvas.saveLayerAlpha(200, 200, 400, 400, 128, SaveFlags::ClipToLayer);
996 canvas.saveLayerAlpha(10, 10, 190, 190, 128, (SaveFlags::Flags)(0));
1029 canvas.saveLayerAlpha(10.95f, 10.5f, 189.75f, 189.25f, // values should all round out
1084 canvas.saveLayerAlpha(0, 0, 5, 5, 128, SaveFlags::MatrixClip);
1085 canvas.saveLayerAlpha(95, 0, 100, 5, 128, SaveFlags::MatrixClip);
1086 canvas.saveLayerAlpha(0, 95, 5, 100, 128, SaveFlags::MatrixClip);
1087 canvas.saveLayerAlpha(9
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java76 public int saveLayerAlpha(RectF bounds, int alpha, int saveFlags) { method in class:NopCanvas
81 public int saveLayerAlpha(RectF bounds, int alpha) { method in class:NopCanvas
86 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, method in class:NopCanvas
92 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { method in class:NopCanvas
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java347 * <code>saveLayerAlpha()</code> variants. Not passing this flag generally
356 * call to <code>saveLayer()</code> and <code>saveLayerAlpha()</code>
484 public int saveLayerAlpha(@Nullable RectF bounds, int alpha, @Saveflags int saveFlags) { method in class:Canvas
488 return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags);
492 * Convenience for saveLayerAlpha(bounds, alpha, {@link #ALL_SAVE_FLAG})
494 public int saveLayerAlpha(@Nullable RectF bounds, int alpha) { method in class:Canvas
495 return saveLayerAlpha(bounds, alpha, ALL_SAVE_FLAG);
499 * Helper for saveLayerAlpha() that takes 4 values instead of a RectF.
501 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, method in class:Canvas
509 * Helper for saveLayerAlpha(lef
511 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { method in class:Canvas
[all...]
/frameworks/base/libs/hwui/hwui/
H A DCanvas.h143 virtual int saveLayerAlpha(float left, float top, float right, float bottom,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAlphaLayersActivity.java128 canvas.saveLayerAlpha(0.0f, 100.0f, getWidth(), 150.0f, 127,
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java172 canvas.saveLayerAlpha(mClipRect, 0, 0);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp99 static jint saveLayerAlpha(JNIEnv* env, jobject, jlong canvasHandle, jfloat l, jfloat t, function in namespace:android::CanvasJNI
102 return static_cast<jint>(get_canvas(canvasHandle)->saveLayerAlpha(l, t, r, b, alpha, flags));
585 {"native_saveLayerAlpha","!(JFFFFII)I", (void*) CanvasJNI::saveLayerAlpha},
/frameworks/base/libs/hwui/
H A DDisplayListCanvas.h135 virtual int saveLayerAlpha(float left, float top, float right, float bottom,
H A DRecordingCanvas.h112 virtual int saveLayerAlpha(float left, float top, float right, float bottom,
H A DSkiaCanvas.cpp92 virtual int saveLayerAlpha(float left, float top, float right, float bottom,
353 int SkiaCanvas::saveLayerAlpha(float left, float top, float right, float bottom, function in class:android::SkiaCanvas
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java634 int restoreTo = canvas.saveLayerAlpha(l, t, child.getWidth(), child.getHeight(), alpha,
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java231 return canvasDelegate.saveLayerAlpha(new RectF(l, t, r, b), alpha, layerFlags);
1111 private int saveLayerAlpha(RectF rect, int alpha, int saveFlags) { method in class:Canvas_Delegate
/frameworks/base/core/java/android/view/
H A DView.java12251 * <p>The current implementation of the saveLayer and saveLayerAlpha methods in {@link Canvas}
16931 canvas.saveLayerAlpha(sx, sy, sx + getWidth(), sy + getHeight(),

Completed in 618 milliseconds