/cts/tests/tests/graphics/src/android/graphics/cts/ |
Region_OpTest.java | 20 import android.graphics.Region.Op; 26 @TestTargetClass(Region.Op.class) 35 assertEquals(Op.DIFFERENCE, Op.valueOf("DIFFERENCE")); 36 assertEquals(Op.INTERSECT, Op.valueOf("INTERSECT")); 37 assertEquals(Op.UNION, Op.valueOf("UNION")); 38 assertEquals(Op.XOR, Op.valueOf("XOR")) [all...] |
RegionTest.java | 441 method = "op", 442 args = {android.graphics.Rect.class, android.graphics.Region.Op.class} 465 assertFalse(mRegion.op(rect1, Region.Op.DIFFERENCE)); 466 assertFalse(mRegion.op(rect1, Region.Op.INTERSECT)); 467 assertFalse(mRegion.op(rect1, Region.Op.UNION)); 468 assertFalse(mRegion.op(rect1, Region.Op.XOR)) [all...] |
RegionIteratorTest.java | 69 region.op(rect, Region.Op.UNION); 96 region.op(rect, Region.Op.DIFFERENCE); 118 region.op(rect, Region.Op.INTERSECT); 135 region.op(rect, Region.Op.REVERSE_DIFFERENCE); 157 region.op(rect, Region.Op.XOR) [all...] |
CanvasTest.java | 37 import android.graphics.Region.Op; 1083 args = {android.graphics.RectF.class, android.graphics.Region.Op.class} 1086 assertFalse(mCanvas.clipRect(mRectF, Op.DIFFERENCE)); 1087 assertFalse(mCanvas.clipRect(mRectF, Op.INTERSECT)); 1088 assertTrue(mCanvas.clipRect(mRectF, Op.REPLACE)); 1089 assertFalse(mCanvas.clipRect(mRectF, Op.REVERSE_DIFFERENCE)); 1090 assertTrue(mCanvas.clipRect(mRectF, Op.UNION)) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Clipping.java | 76 canvas.clipRect(30, 30, 70, 70, Region.Op.DIFFERENCE); 85 canvas.clipPath(mPath, Region.Op.REPLACE); 92 canvas.clipRect(40, 40, 100, 100, Region.Op.UNION); 99 canvas.clipRect(40, 40, 100, 100, Region.Op.XOR); 106 canvas.clipRect(40, 40, 100, 100, Region.Op.REVERSE_DIFFERENCE);
|
Regions.java | 63 private void drawRgn(Canvas canvas, int color, String str, Region.Op op) { 71 rgn.op(mRect2, op); 106 drawRgn(canvas, Color.RED, "Union", Region.Op.UNION); 111 drawRgn(canvas, Color.BLUE, "Xor", Region.Op.XOR); 116 drawRgn(canvas, Color.GREEN, "Difference", Region.Op.DIFFERENCE); 121 drawRgn(canvas, Color.WHITE, "Intersect", Region.Op.INTERSECT);
|
/frameworks/base/graphics/java/android/graphics/ |
Region.java | 25 public enum Op { 33 Op(int nativeInt) { 235 return op(r, Op.UNION); 239 * Perform the specified Op on this region and the specified rect. Return 240 * true if the result of the op is not empty. 242 public boolean op(Rect r, Op op) { method in class:Region 244 op.nativeInt) 251 public boolean op(int left, int top, int right, int bottom, Op op) { method in class:Region 260 public boolean op(Region region, Op op) { method in class:Region 268 public boolean op(Rect rect, Region region, Op op) { method in class:Region 277 public boolean op(Region region1, Region region2, Op op) { method in class:Region [all...] |
Canvas.java | 460 * @param op How the clip is modified 463 public boolean clipRect(RectF rect, Region.Op op) { 466 op.nativeInt); 474 * @param op How the clip is modified 477 public boolean clipRect(Rect rect, Region.Op op) { 480 op.nativeInt); 513 * @param op How the clip is modified 517 Region.Op op) [all...] |
/external/skia/include/core/ |
SkRegion.h | 198 enum Op { 199 kDifference_Op, //!< subtract the op region from the first region 203 /** subtract the first region from the op region */ 205 kReplace_Op //!< replace the dst region with the op region 208 /** Set this region to the result of applying the Op to this region and the 209 specified rectangle: this = (this op rect). 212 bool op(const SkIRect& rect, Op op) { return this->op(*this, rect, op); function in class:SkRegion 218 bool op(int left, int top, int right, int bottom, Op op) { function in class:SkRegion 228 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } function in class:SkRegion [all...] |
SkCanvas.h | 218 @param op The region op to apply to the current clip 222 SkRegion::Op op = SkRegion::kIntersect_Op); 226 @param op The region op to apply to the current clip 230 SkRegion::Op op = SkRegion::kIntersect_Op); 237 @param op The region op to apply to the current cli [all...] |
/external/skia/include/utils/ |
SkNWayCanvas.h | 30 SkRegion::Op op = SkRegion::kIntersect_Op); 32 SkRegion::Op op = SkRegion::kIntersect_Op); 34 SkRegion::Op op = SkRegion::kIntersect_Op);
|
SkDumpCanvas.h | 70 SkRegion::Op op = SkRegion::kIntersect_Op); 72 SkRegion::Op op = SkRegion::kIntersect_Op); 74 SkRegion::Op op = SkRegion::kIntersect_Op);
|
SkProxyCanvas.h | 42 SkRegion::Op op = SkRegion::kIntersect_Op); 44 SkRegion::Op op = SkRegion::kIntersect_Op); 46 SkRegion::Op op = SkRegion::kIntersect_Op);
|
/external/skia/src/animator/ |
SkScript2.h | 50 enum Op { // used by tokenizer attribute table 184 Branch(Op op, int depth, unsigned offset) : fOffset(offset), fOpStackDepth(depth), fOperator(op), 200 Op fOperator : 6; // operand which generated branch 240 void processLogicalOp(Op op); 249 SkTDStack<Op> fOpStack;
|
SkScriptTokenizer.cpp | 121 *fOpStack.push() = (Op) kParen; 131 void SkScriptEngine2::addToken(SkScriptEngine2::TypeOp op) { 142 unsigned char charOp = (unsigned char) op; 147 SkOperand2::OpType toType, SkScriptEngine2::TypeOp op) { 151 addToken(op); 213 Op op = kUnassigned; local 223 op = kAdd; 226 op = lastPush ? kSubtract : kMinus; 229 op = kMultiply 909 Op op; local 1050 Op op; local [all...] |
/frameworks/base/core/java/com/android/internal/service/wallpaper/ |
ImageWallpaper.java | 24 import android.graphics.Region.Op; 158 c.clipRect(0, 0, bw, bh, Op.DIFFERENCE);
|
/external/skia/src/core/ |
SkPictureRecord.h | 27 virtual bool clipRect(const SkRect& rect, SkRegion::Op op); 28 virtual bool clipPath(const SkPath& path, SkRegion::Op op); 29 virtual bool clipRegion(const SkRegion& region, SkRegion::Op op);
|
SkPicturePlayback.cpp | 538 SkRegion::Op op = (SkRegion::Op) getInt(); local 540 // HACK (false) until I can handle op==kReplace 541 if (!canvas.clipPath(path, op)) { 550 SkRegion::Op op = (SkRegion::Op) getInt(); local 552 if (!canvas.clipRegion(region, op)) { 561 SkRegion::Op op = (SkRegion::Op) getInt() local [all...] |
SkRegion.cpp | 198 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) 202 return this->op(tmp, rgn, op); 205 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) 209 return this->op(rgn, tmp, op); [all...] |
SkPictureRecord.cpp | 125 bool SkPictureRecord::clipRect(const SkRect& rect, SkRegion::Op op) { 128 addInt(op); 135 return this->INHERITED::clipRect(rect, op); 138 bool SkPictureRecord::clipPath(const SkPath& path, SkRegion::Op op) { 141 addInt(op); 150 return this->INHERITED::clipRect(path.getBounds(), op); 152 return this->INHERITED::clipPath(path, op); 156 bool SkPictureRecord::clipRegion(const SkRegion& region, SkRegion::Op op) [all...] |
/external/skia/src/utils/ |
SkProxyCanvas.cpp | 66 bool SkProxyCanvas::clipRect(const SkRect& rect, SkRegion::Op op) { 67 return fProxy->clipRect(rect, op); 70 bool SkProxyCanvas::clipPath(const SkPath& path, SkRegion::Op op) { 71 return fProxy->clipPath(path, op); 74 bool SkProxyCanvas::clipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { 75 return fProxy->clipRegion(deviceRgn, op);
|
SkNWayCanvas.cpp | 125 bool SkNWayCanvas::clipRect(const SkRect& rect, SkRegion::Op op) { 128 iter->clipRect(rect, op); 130 return this->INHERITED::clipRect(rect, op); 133 bool SkNWayCanvas::clipPath(const SkPath& path, SkRegion::Op op) { 136 iter->clipPath(path, op); 138 return this->INHERITED::clipPath(path, op); 141 bool SkNWayCanvas::clipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { [all...] |
SkDumpCanvas.cpp | 68 static const char* toString(SkRegion::Op op) { 72 return gOpNames[op]; 242 bool SkDumpCanvas::clipRect(const SkRect& rect, SkRegion::Op op) { 245 this->dump(kClip_Verb, NULL, "clipRect(%s %s)", str.c_str(), toString(op)); 246 return this->INHERITED::clipRect(rect, op); 249 bool SkDumpCanvas::clipPath(const SkPath& path, SkRegion::Op op) { 252 this->dump(kClip_Verb, NULL, "clipPath(%s %s)", str.c_str(), toString(op)); [all...] |
/frameworks/base/core/jni/android/graphics/ |
Region.cpp | 48 static jboolean Region_op0(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom, int op) { 52 return dst->op(ir, (SkRegion::Op)op); 55 static jboolean Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { 58 return dst->op(ir, *region, (SkRegion::Op)op); 61 static jboolean Region_op2(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* region1, const SkRegion* region2, int op) { 62 return dst->op(*region1, *region2, (SkRegion::Op)op) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Canvas.java | 31 import android.graphics.Region.Op; 309 * @see android.graphics.Canvas#clipRect(float, float, float, float, android.graphics.Region.Op) 312 public boolean clipRect(float left, float top, float right, float bottom, Op op) { 335 * @see android.graphics.Canvas#clipRect(android.graphics.Rect, android.graphics.Region.Op) 338 public boolean clipRect(Rect rect, Op op) { 351 * @see android.graphics.Canvas#clipRect(android.graphics.RectF, android.graphics.Region.Op) 354 public boolean clipRect(RectF rect, Op op) { [all...] |