Searched refs:prng_rand_n (Results 1 - 17 of 17) sorted by relevance

/xsrc/external/mit/pixman/dist/test/
H A Daffine-test.c53 src_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
54 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
55 op = (prng_rand_n (2) == 0) ? PIXMAN_OP_SRC : PIXMAN_OP_OVER;
57 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
58 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
59 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1;
60 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1;
61 src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp;
62 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp;
70 src_x = -(src_width / 4) + prng_rand_n (src_widt
[all...]
H A Dscaling-test.c29 switch (prng_rand_n (4))
85 src_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
86 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
87 switch (prng_rand_n (3))
100 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
101 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
103 if (prng_rand_n (2))
105 mask_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
106 mask_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
113 dst_width = prng_rand_n (MAX_DST_WIDT
[all...]
H A Dglyph-test.c110 return formats[prng_rand_n (i)];
125 if ((flags & ALLOW_SOLID) && prng_rand_n (4) == 0)
137 width = prng_rand_n (max_size) + 1;
138 height = prng_rand_n (max_size) + 1;
142 stride = (width * bpp + 7) / 8 + prng_rand_n (17);
145 if (prng_rand_n (64) == 0)
164 if ((flags & ALLOW_CLIPPED) && prng_rand_n (8) == 0)
168 int n = prng_rand_n (8) + 1;
172 clip_boxes[i].x1 = prng_rand_n (width);
173 clip_boxes[i].y1 = prng_rand_n (heigh
[all...]
H A Dcomposite-traps-test.c29 ((array)[prng_rand_n(ARRAY_LENGTH((array)))])
40 return prng_rand_n (n << 16);
85 if (prng_rand_n (4) == 0)
88 &(colors[prng_rand_n (ARRAY_LENGTH (colors))]));
97 int src_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
98 int src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
99 int src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp;
102 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2);
103 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2);
109 if (prng_rand_n (
[all...]
H A Dblitters-test.c36 if (n > N_MOST_LIKELY_FORMATS && prng_rand_n (4) != 0)
38 fmt = allowed_formats[prng_rand_n (n)];
40 width = prng_rand_n (max_width) + 1;
41 height = prng_rand_n (max_height) + 1;
43 prng_rand_n (max_extra_stride + 1);
49 if (prng_rand_n (4) == 0)
61 if (prng_rand_n (4) == 0)
78 if (prng_rand_n (16) == 0)
266 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
268 if (prng_rand_n (
[all...]
H A Dscaling-helpers-test.c60 pixman_fixed_t vx = prng_rand_n(10000 << 16) - (3000 << 16);
61 int32_t width = prng_rand_n(10000);
62 int32_t source_image_width = prng_rand_n(10000) + 1;
63 pixman_fixed_t unit_x = prng_rand_n(10 << 16) + 1;
H A Dstress-test.c81 switch (prng_rand_n (28))
91 return prng_rand_n (100);
94 return prng_rand_n (2000) + 1000;
103 return prng_rand_n (64000) + 63000;
202 mask = (1 << prng_rand_n (10)) - 1;
211 return prng_rand_n (image->bits.width);
220 return prng_rand_n (image->bits.height);
236 int n = prng_rand_n (ARRAY_LENGTH (image_formats));
239 (alpha == REQUIRE_ALPHA || prng_rand_n (4) != 0))
274 align_add = align_mask + prng_rand_n (6
[all...]
H A Dregion-fractional-test.c96 prng_rand_n (image_size),
97 prng_rand_n (image_size),
98 prng_rand_n (25),
99 prng_rand_n (25));
H A Dregion-test.c96 prng_rand_n (image_size),
97 prng_rand_n (image_size),
98 prng_rand_n (25),
99 prng_rand_n (25));
H A Drotate-test.c46 (formats[prng_rand_n (ARRAY_LENGTH (formats))])
49 (ops[prng_rand_n (ARRAY_LENGTH (ops))])
52 (&(transforms[prng_rand_n (ARRAY_LENGTH (transforms))]))
72 if (prng_rand_n (2) == 0)
H A Dsolid-test.c171 if (n > N_MOST_LIKELY_FORMATS && prng_rand_n (4) != 0)
174 return allowed_formats[prng_rand_n (n)];
209 if (prng_rand_n (2))
233 *buffer = prng_rand_n (2) ? 0xFFFFFFFFu : 0;
255 color.alpha = prng_rand_n (UINT16_MAX + 1);
256 color.red = prng_rand_n (UINT16_MAX + 1);
257 color.green = prng_rand_n (UINT16_MAX + 1);
258 color.blue = prng_rand_n (UINT16_MAX + 1);
284 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
287 switch (prng_rand_n (
[all...]
H A Dcover-test.c157 f >>= 31 - 16 + prng_rand_n (2 * LOG2_MAX_FACTOR + 1) - LOG2_MAX_FACTOR;
198 if (prng_rand_n (2))
204 if (prng_rand_n (2))
208 offset += prng_rand_n (32);
211 if (prng_rand_n (2))
302 left_align = prng_rand_n (2);
303 top_align = prng_rand_n (2);
304 bilinear = prng_rand_n (2);
307 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
309 dst_fmt = img_fmt_list[prng_rand_n (ARRAY_LENGT
[all...]
H A Dmatrix-test.c148 if (prng_rand_n (3) == 0)
149 vi.v[j] >>= prng_rand_n (46);
152 if (prng_rand_n (2))
157 ti.matrix[j][k] >>= prng_rand_n (30);
160 if (prng_rand_n (2))
168 if (prng_rand_n (2))
179 if (is_affine && prng_rand_n (2))
H A Dregion-contains-test.c12 n_boxes = prng_rand_n (64);
40 if (prng_rand_n (14))
45 b = bb + prng_rand_n (n_boxes);
65 switch (prng_rand_n (5))
H A Dtolerance-test.c86 (array[prng_rand_n (ARRAY_LENGTH (array))])
99 int width = prng_rand_n (MAX_WIDTH);
100 int height = prng_rand_n (MAX_HEIGHT);
293 x = prng_rand_n (MAX_WIDTH);
294 y = prng_rand_n (MAX_HEIGHT);
295 width = prng_rand_n (MAX_WIDTH) + 4;
296 height = prng_rand_n (MAX_HEIGHT) + 4;
311 if (prng_rand_n (2))
317 component_alpha = prng_rand_n (2);
H A Dcomposite.c422 return prng_rand_n (ARRAY_LENGTH (sizes));
428 return prng_rand_n (ARRAY_LENGTH (colors));
434 return prng_rand_n (ARRAY_LENGTH (formats));
451 op = operators [prng_rand_n (ARRAY_LENGTH (operators))];
453 ca = prng_rand_n (3);
/xsrc/external/mit/pixman/dist/test/utils/
H A Dutils.h49 prng_rand_n (int max) function in typeref:typename:uint32_t

Completed in 12 milliseconds