Home
last modified time | relevance | path

Searched refs:shape (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DShapeTest.java81 Shape shape = new MockShape(); in testClone() local
82 shape.resize(100f, 200f); in testClone()
83 Shape clonedShape = shape.clone(); in testClone()
84 assertEquals(100f, shape.getWidth()); in testClone()
85 assertEquals(200f, shape.getHeight()); in testClone()
87 assertNotSame(shape, clonedShape); in testClone()
88 assertEquals(shape.getWidth(), clonedShape.getWidth()); in testClone()
89 assertEquals(shape.getHeight(), clonedShape.getHeight()); in testClone()
94 Shape shape = new MockShape(); in testHasAlpha() local
95 assertTrue(shape.hasAlpha()); in testHasAlpha()
[all …]
DRoundRectShapeTest.java101 RoundRectShape shape; in testGetOutline() local
104 shape = new RoundRectShape(null, null, null); in testGetOutline()
105 shape.getOutline(outline); in testGetOutline()
110 shape.resize(100, 100); in testGetOutline()
111 shape.getOutline(outline); in testGetOutline()
121 shape = new RoundRectShape(new float[] { 10, 10, 10, 10, 10, 10, 10, 10 }, null, null); in testGetOutline()
122 shape.getOutline(outline); in testGetOutline()
127 shape.resize(100, 100); in testGetOutline()
128 shape.getOutline(outline); in testGetOutline()
138 shape = new RoundRectShape(new float[] { 10, 10, 0, 0, 0, 0, 0, 0 }, null, null); in testGetOutline()
[all …]
DOvalShapeTest.java75 OvalShape shape; in testGetOutline() local
78 shape = new OvalShape(); in testGetOutline()
79 shape.getOutline(outline); in testGetOutline()
85 shape.resize(100, 100); in testGetOutline()
86 shape.getOutline(outline); in testGetOutline()
96 shape.resize(100, 200); in testGetOutline()
97 shape.getOutline(outline); in testGetOutline()
DArcShapeTest.java81 ArcShape shape; in testGetOutline() local
85 shape = new ArcShape(0.0f, 360.0f); in testGetOutline()
86 shape.getOutline(outline); in testGetOutline()
DRectShapeTest.java104 RectShape shape = new RectShape(); in testGetOutline() local
107 shape.getOutline(outline); in testGetOutline()
113 shape.resize(100, 100); in testGetOutline()
114 shape.getOutline(outline); in testGetOutline()
DPathShapeTest.java109 PathShape shape; in testGetOutline() local
113 shape = new PathShape(new Path(), 0, 0); in testGetOutline()
114 shape.getOutline(outline); in testGetOutline()
/cts/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py102 size_raw = img_raw.shape
246 size = img.shape
389 shape = {"left": np.inf, "right": 0, "top": np.inf, "bottom": 0,
392 if pt[0][0] < shape["left"]:
393 shape["left"] = pt[0][0]
394 if pt[0][0] > shape["right"]:
395 shape["right"] = pt[0][0]
396 if pt[0][1] < shape["top"]:
397 shape["top"] = pt[0][1]
398 if pt[0][1] > shape["bottom"]:
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_crop_region_raw.py116 h,w,ch = img.shape
124 xpad = (imgs2["raw_full"].shape[1] - imgs2["yuv_full"].shape[1]) / 2
125 ypad = (imgs2["raw_full"].shape[0] - imgs2["yuv_full"].shape[0]) / 2
126 wyuv = imgs2["yuv_full"].shape[1]
127 hyuv = imgs2["yuv_full"].shape[0]
Dtest_yuv_jpeg_all.py65 assert(img.shape[0] == size[1])
66 assert(img.shape[1] == size[0])
67 assert(img.shape[2] == 3)
Dtest_crop_regions.py88 wtest = min(tile_full.shape[1], aw)
89 htest = min(tile_full.shape[0], ah)
/cts/apps/CameraITS/pymodules/its/
Dimage.py97 img = numpy.ndarray(shape=(2*h*w*4,), dtype='<f', buffer=cap["data"])
135 if img.shape[1] % 5 != 0:
137 w = img.shape[1]*4/5
138 h = img.shape[0]
185 if img.shape[1] % 3 != 0:
187 w = img.shape[1]*2/3
188 h = img.shape[0]
251 img = numpy.ndarray(shape=(h*w,), dtype='<u2',
387 h,w = r_plane.shape[:2]
437 if len(a.shape) == 3 and a.shape[2] == 3:
[all …]
Ddevice.py713 buf_size = numpy.product(buf.shape)
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py33 tile_rows, tile_cols = a.shape[0]/tile_size, a.shape[1]/tile_size
141 p = p[0:p.shape[0] - p.shape[0]%tile_size,
142 0:p.shape[1] - p.shape[1]%tile_size]
217 a = a/(np.tile(gains, (a.shape[1], 1)).T)
/cts/tests/tests/rsblas/assets/
Dblas_gen.py29 for i in range(1, a.shape[0]):
33 for i in range(0, a.shape[0]-1):
34 for j in range(i+1, a.shape[1]):
39 for i in range(1, a.shape[0]):
45 for i in range(0, a.shape[0]):
47 for i in range(1, a.shape[0]):
53 for i in range(0, a.shape[0]):
54 for j in range(0, a.shape[1]):
100 for i in range(0, a.shape[0]):
101 for j in range(0, a.shape[1]):
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPathDashPathEffectTest.java42 PathDashPathEffect effect = new PathDashPathEffect(shape(), ADVANCE, 0, in testPathDashPathEffect()
80 private static Path shape() { in shape() method in PathDashPathEffectTest
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java199 int shape; in testSetShape() local
201 shape = GradientDrawable.OVAL; in testSetShape()
202 gradientDrawable.setShape(shape); in testSetShape()
204 shape, gradientDrawable.getShape()); in testSetShape()
206 shape = -1; in testSetShape()
207 gradientDrawable.setShape(shape); in testSetShape()
209 shape, gradientDrawable.getShape()); in testSetShape()
DShapeDrawableTest.java254 protected void onDraw(Shape shape, Canvas canvas, Paint paint) { in onDraw() argument
255 super.onDraw(shape, canvas, paint); in onDraw()
/cts/apps/CameraITS/tests/inprog/
Dtest_rawstats.py39 h,w,_ = mean_image.shape
/cts/apps/CameraITS/tests/
Dtutorial.py135 print "RGB image dimensions:", rgbimg.shape
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/tools/dex-tools/dex/
Dclasses0.out.dex9076 public void shape(
9081 public void shape(
Dclasses.out.dex1056 public static final int shape
110304 public static final int shape