/external/skia/include/utils/ |
D | SkRandom.h | 36 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/ |
D | SampleClip.cpp | 27 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()
|
D | SampleFontCache.cpp | 24 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32); in call_measure() 43 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32); in call_draw()
|
D | SampleHT.cpp | 43 return rand.nextU() | (0xFF << 24); in rand_opaque_color() 56 fColor = rand_opaque_color(rand.nextU()); in HTDrawable()
|
/external/skia/tests/ |
D | RegionTest.cpp | 110 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()
|
D | PackBitsTest.cpp | 20 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()
|
D | AAClipTest.cpp | 94 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()
|
D | RandomTest.cpp | 65 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()
|
D | ColorTest.cpp | 69 SkColor colorSrc = r.nextU(); in test_fast_interp() 70 SkColor colorDst = r.nextU(); in test_fast_interp()
|
D | MipMapTest.cpp | 16 int w = 2 + rand.nextU() % 1000; in make_bitmap() 17 int h = 2 + rand.nextU() % 1000; in make_bitmap()
|
D | ChecksumTest.cpp | 28 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST() 45 tweaked[j] = rand.nextU(); in DEF_TEST()
|
D | MathTest.cpp | 26 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()
|
D | GrRedBlackTreeTest.cpp | 25 int x = r.nextU() % 100; in DEF_TEST() 89 int x = r.nextU() % 3; in DEF_TEST()
|
/external/skia/bench/ |
D | GrOrderedSetBench.cpp | 38 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()
|
D | RectBench.cpp | 53 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()
|
D | RegionBench.cpp | 84 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()
|
D | ColorPrivBench.cpp | 25 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onPreDraw() 26 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onPreDraw()
|
D | RegionContainBench.cpp | 32 int w = rand.nextU() % W; in randrect()
|
D | FSRectBench.cpp | 36 fColors[i] = rand.nextU() | 0xFF000000; in onPreDraw()
|
/external/skia/gm/ |
D | degeneratesegments.cpp | 321 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()
|
D | beziers.cpp | 23 paint->setColor(rand.nextU()); in rnd_quad() 37 paint->setColor(rand.nextU()); in rnd_cubic()
|
D | circles.cpp | 175 SkColor color = rand.nextU(); in onDraw() 196 SkColor color = rand.nextU(); in onDraw()
|
D | arcofzorro.cpp | 45 SkColor color = rand.nextU(); in onDraw()
|
D | addarc.cpp | 39 paint.setColor(rand.nextU() | (0xFF << 24)); in onDraw() 147 paint.setColor(rand.nextU() | (0xFF << 24)); in onDraw()
|
/external/skia/src/effects/ |
D | SkDiscretePathEffect.cpp | 52 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()
|