HomeSort by relevance Sort by last modified time
    Searched refs:prng_rand_n (Results 1 - 13 of 13) sorted by null

  /external/pixman/test/
scaling-test.c 29 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_WIDTH) + 1
    [all...]
glyph-test.c 110 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 (height)
    [all...]
affine-test.c 53 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_width * 3 / 2)
    [all...]
composite-traps-test.c 29 ((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);
114 if (prng_rand_n (8) == 0
    [all...]
stress-test.c 77 switch (prng_rand_n (28))
87 return prng_rand_n (100);
90 return prng_rand_n (2000) + 1000;
99 return prng_rand_n (64000) + 63000;
185 mask = (1 << prng_rand_n (10)) - 1;
194 return prng_rand_n (image->bits.width);
203 return prng_rand_n (image->bits.height);
219 int n = prng_rand_n (ARRAY_LENGTH (image_formats));
222 (alpha == REQUIRE_ALPHA || prng_rand_n (4) != 0))
278 if (prng_rand_n(2) == 0
    [all...]
blitters-test.c 36 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)
71 if (prng_rand_n (16) == 0)
257 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
259 if (prng_rand_n (8))
288 src_x = prng_rand_n (src_width)
    [all...]
scaling-helpers-test.c 60 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;
region-test.c 96 prng_rand_n (image_size),
97 prng_rand_n (image_size),
98 prng_rand_n (25),
99 prng_rand_n (25));
matrix-test.c 99 if (prng_rand_n (3) == 0)
100 vi.v[j] >>= prng_rand_n (46);
103 if (prng_rand_n (2))
108 ti.matrix[j][k] >>= prng_rand_n (30);
111 if (prng_rand_n (2))
119 if (prng_rand_n (2))
130 if (is_affine && prng_rand_n (2))
rotate-test.c 46 (formats[prng_rand_n (ARRAY_LENGTH (formats))])
49 (ops[prng_rand_n (ARRAY_LENGTH (ops))])
52 (&(transforms[prng_rand_n (ARRAY_LENGTH (transforms))]))
region-contains-test.c 12 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))
composite.c 432 return prng_rand_n (ARRAY_LENGTH (sizes));
438 return prng_rand_n (ARRAY_LENGTH (colors));
444 return prng_rand_n (ARRAY_LENGTH (formats));
461 op = operators [prng_rand_n (ARRAY_LENGTH (operators))];
463 ca = prng_rand_n (3);
utils.h 44 prng_rand_n (int max) function

Completed in 106 milliseconds