Home
last modified time | relevance | path

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

1234

/external/skia/include/utils/
DSkRandom.h36 uint32_t nextU() { in nextU() function
44 int32_t nextS() { return (int32_t)this->nextU(); } in nextS()
48 U16CPU nextU16() { return this->nextU() >> 16; } in nextU16()
58 unsigned int floatint = 0x3f800000 | (this->nextU() >> 9); in nextF()
76 return this->nextU() >> (32 - bitCount); in nextBits()
86 return this->nextU(); in nextRangeU()
88 return min + this->nextU() % range; in nextRangeU()
103 SkFixed nextUFixed1() { return this->nextU() >> 16; } in nextUFixed1()
129 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool()
143 return (hi << 32) | this->nextU(); in next64()
/external/skia/samplecode/
DSampleClip.cpp27 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU()); in show_text()
45 paint.setColor(rand.nextU()); in show_fill()
50 paint.setColor(rand.nextU()); in show_fill()
74 paint.setColor(rand.nextU()); in show_stroke()
79 paint.setColor(rand.nextU()); in show_stroke()
87 paint.setColor(rand.nextU()); in show_stroke()
DSampleFontCache.cpp24 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32); in call_measure()
43 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/tests/
DRegionTest.cpp110 int x = rand.nextU() % W; in randRect()
111 int y = rand.nextU() % H; in randRect()
112 int w = rand.nextU() % W; in randRect()
113 int h = rand.nextU() % H; in randRect()
207 rect->set(rand.nextU() >> shift, rand.nextU() >> shift, in rand_rect()
208 rand.nextU() >> shift, rand.nextU() >> shift); in rand_rect()
DPackBitsTest.cpp20 buffer[i] = (uint16_t)gRand.nextU(); in rand_fill()
70 buffer[i] = (uint8_t)((gRand.nextU() >> 8) & 0x3); in rand_fill()
115 uint32_t skip = gRand.nextU() % size; in test_pack8()
116 uint32_t write = gRand.nextU() % size; in test_pack8()
DAAClipTest.cpp94 int w = rand.nextU() % n; in rand_rect()
95 int h = rand.nextU() % n; in rand_rect()
100 int count = rand.nextU() % 20; in make_rand_rgn()
237 r->setXYWH(0, 0, rand.nextU() % N, rand.nextU() % N); in rand_irect()
238 int dx = rand.nextU() % (2*N); in rand_irect()
239 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.cpp16 int w = 2 + rand.nextU() % 1000; in make_bitmap()
17 int h = 2 + rand.nextU() % 1000; in make_bitmap()
DChecksumTest.cpp28 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST()
45 tweaked[j] = rand.nextU(); in DEF_TEST()
DMathTest.cpp26 uint32_t mask = rand.nextU(); in test_clz()
89 unsigned a = rand.nextU() & 0x7FFF; in test_muldivround()
90 unsigned b = rand.nextU() & 0x7FFF; in test_muldivround()
204 data.fSignBitInt = rand.nextU(); in nextFloat()
298 int ival = rand.nextU() & 0xFFFFFF; in unittest_fastfloat()
DGrRedBlackTreeTest.cpp25 int x = r.nextU() % 100; in DEF_TEST()
89 int x = r.nextU() % 3; in DEF_TEST()
/external/skia/bench/
DGrOrderedSetBench.cpp38 fData[j] = rand.nextU() % NUM_ELEMENTS; in onPreDraw()
79 fData[j] = rand.nextU() % 1500; in onPreDraw()
80 fSet.insert(rand.nextU() % NUM_ELEMENTS); in onPreDraw()
120 fSet.insert(rand.nextU() % NUM_ELEMENTS); in onPreDraw()
DRectBench.cpp53 int x = rand.nextU() % W; in onPreDraw()
54 int y = rand.nextU() % H; in onPreDraw()
55 int w = rand.nextU() % W; in onPreDraw()
56 int h = rand.nextU() % H; in onPreDraw()
64 fColors[i] = rand.nextU() | 0xFF808080; in onPreDraw()
233 alpha = rand.nextU() & 255; in onDraw()
DRegionBench.cpp84 int x = rand.nextU() % W; in randrect()
85 int y = rand.nextU() % H; in randrect()
86 int w = rand.nextU() % W; in randrect()
87 int h = rand.nextU() % H; in randrect()
DColorPrivBench.cpp25 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onPreDraw()
26 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onPreDraw()
DRegionContainBench.cpp32 int w = rand.nextU() % W; in randrect()
DFSRectBench.cpp36 fColors[i] = rand.nextU() | 0xFF000000; in onPreDraw()
/external/skia/gm/
Ddegeneratesegments.cpp321 StyleAndName style = gStyles[(rand.nextU() >> 16) % numStyles]; in onDraw()
322 CapAndName cap = gCaps[(rand.nextU() >> 16) % numCaps]; in onDraw()
323 FillAndName fill = gFills[(rand.nextU() >> 16) % numFills]; in onDraw()
325 unsigned s1 = (rand.nextU() >> 16) % numSegments; in onDraw()
326 unsigned s2 = (rand.nextU() >> 16) % numSegments; in onDraw()
327 unsigned s3 = (rand.nextU() >> 16) % numSegments; in onDraw()
328 unsigned s4 = (rand.nextU() >> 16) % numSegments; in onDraw()
329 unsigned s5 = (rand.nextU() >> 16) % numSegments; in onDraw()
Dbeziers.cpp23 paint->setColor(rand.nextU()); in rnd_quad()
37 paint->setColor(rand.nextU()); in rnd_cubic()
Dcircles.cpp175 SkColor color = rand.nextU(); in onDraw()
196 SkColor color = rand.nextU(); in onDraw()
Darcofzorro.cpp45 SkColor color = rand.nextU(); in onDraw()
Daddarc.cpp39 paint.setColor(rand.nextU() | (0xFF << 24)); in onDraw()
147 paint.setColor(rand.nextU() | (0xFF << 24)); in onDraw()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp52 uint32_t nextU() { uint32_t r = fSeed * kMul + kAdd; fSeed = r; return r; } in nextU() function in LCGRandom
56 int32_t nextS() { return (int32_t)this->nextU(); } in nextS()

1234