Home
last modified time | relevance | path

Searched refs:nextU (Results 1 – 25 of 92) sorted by relevance

1234

/external/skia/include/utils/
DSkRandom.h37 uint32_t nextU() { in nextU() function
45 int32_t nextS() { return (int32_t)this->nextU(); } in nextS()
49 U16CPU nextU16() { return this->nextU() >> 16; } in nextU16()
59 unsigned int floatint = 0x3f800000 | (this->nextU() >> 9); in nextF()
77 return this->nextU() >> (32 - bitCount); in nextBits()
87 return this->nextU(); in nextRangeU()
89 return min + this->nextU() % range; in nextRangeU()
120 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool()
134 return (hi << 32) | this->nextU(); in next64()
161 SkFixed nextUFixed1() { return this->nextU() >> 16; } in nextUFixed1()
/external/skia/samplecode/
DSampleClip.cpp29 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU()); in show_text()
47 paint.setColor(rand.nextU()); in show_fill()
52 paint.setColor(rand.nextU()); in show_fill()
76 paint.setColor(rand.nextU()); in show_stroke()
81 paint.setColor(rand.nextU()); in show_stroke()
89 paint.setColor(rand.nextU()); in show_stroke()
DSampleFontCache.cpp23 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32); in call_measure()
42 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32); in call_draw()
DSampleHT.cpp43 return rand.nextU() | (0xFF << 24); in rand_opaque_color()
56 fColor = rand_opaque_color(rand.nextU()); in HTDrawable()
/external/skia/bench/
DRectBench.cpp54 int x = rand.nextU() % W; in onDelayedSetup()
55 int y = rand.nextU() % H; in onDelayedSetup()
56 int w = rand.nextU() % W; in onDelayedSetup()
57 int h = rand.nextU() % H; in onDelayedSetup()
65 fColors[i] = rand.nextU() | 0xFF808080; in onDelayedSetup()
255 alpha = rand.nextU() & 255; in onDraw()
DRegionBench.cpp83 int x = rand.nextU() % W; in randrect()
84 int y = rand.nextU() % H; in randrect()
85 int w = rand.nextU() % W; in randrect()
86 int h = rand.nextU() % H; in randrect()
DTopoSortBench.cpp37 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup()
40 int dep = fRand.nextU() % i; in onDelayedSetup()
DColorPrivBench.cpp31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
32 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
DChecksumBench.cpp32 fData[i] = rand.nextU(); in ComputeChecksumBench()
/external/skia/tests/
DRegionTest.cpp111 int x = rand.nextU() % W; in randRect()
112 int y = rand.nextU() % H; in randRect()
113 int w = rand.nextU() % W; in randRect()
114 int h = rand.nextU() % H; in randRect()
208 rect->set(rand.nextU() >> shift, rand.nextU() >> shift, in rand_rect()
209 rand.nextU() >> shift, rand.nextU() >> shift); in rand_rect()
DChecksumTest.cpp19 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST()
32 tweaked[j] = rand.nextU(); in DEF_TEST()
DAAClipTest.cpp96 int w = rand.nextU() % n; in rand_rect()
97 int h = rand.nextU() % n; in rand_rect()
102 int count = rand.nextU() % 20; in make_rand_rgn()
238 r->setXYWH(0, 0, rand.nextU() % N, rand.nextU() % N); in rand_irect()
239 int dx = rand.nextU() % (2*N); in rand_irect()
240 int dy = rand.nextU() % (2*N); in rand_irect()
DRandomTest.cpp65 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte()
116 unsigned int rnd = rand.nextU(); in test_single_gorilla()
123 unsigned int rnd = rand.nextU(); in test_single_gorilla()
DColorTest.cpp69 SkColor colorSrc = r.nextU(); in test_fast_interp()
70 SkColor colorDst = r.nextU(); in test_fast_interp()
DMipMapTest.cpp23 int width = 1 + rand.nextU() % 1000; in DEF_TEST()
24 int height = 1 + rand.nextU() % 1000; in DEF_TEST()
/external/skia/gm/
Ddegeneratesegments.cpp322 StyleAndName style = gStyles[(rand.nextU() >> 16) % numStyles]; in onDraw()
323 CapAndName cap = gCaps[(rand.nextU() >> 16) % numCaps]; in onDraw()
324 FillAndName fill = gFills[(rand.nextU() >> 16) % numFills]; in onDraw()
326 unsigned s1 = (rand.nextU() >> 16) % numSegments; in onDraw()
327 unsigned s2 = (rand.nextU() >> 16) % numSegments; in onDraw()
328 unsigned s3 = (rand.nextU() >> 16) % numSegments; in onDraw()
329 unsigned s4 = (rand.nextU() >> 16) % numSegments; in onDraw()
330 unsigned s5 = (rand.nextU() >> 16) % numSegments; in onDraw()
Dbeziers.cpp29 paint->setColor(rand.nextU()); in rnd_quad()
49 paint->setColor(rand.nextU()); in rnd_cubic()
Dcircles.cpp163 SkColor color = rand.nextU(); in onDraw()
184 SkColor color = rand.nextU(); in onDraw()
Dshapes.cpp97 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
143 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
Daddarc.cpp40 paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
148 paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
201 paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
Darcofzorro.cpp46 SkColor color = rand.nextU(); in onDraw()
Dsimplerect.cpp39 paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp363 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
374 int xPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE()
375 int yPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE()
376 int xInt = (random->nextU() % kMaxTrans) * xPos; in GR_DRAW_OP_TEST_DEFINE()
377 int yInt = (random->nextU() % kMaxTrans) * yPos; in GR_DRAW_OP_TEST_DEFINE()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp64 uint32_t nextU() { uint32_t r = fSeed * kMul + kAdd; fSeed = r; return r; } in nextU() function in LCGRandom
68 int32_t nextS() { return (int32_t)this->nextU(); } in nextS()
/external/skia/src/gpu/ops/
DGrTessellatingPathRenderer.cpp384 random->nextU(), random->nextU(), random->nextU(), random->nextU()); in GR_DRAW_OP_TEST_DEFINE()

1234