/external/skia/src/base/ |
D | SkRandom.h | 42 uint32_t nextU() { in nextU() function 50 int32_t nextS() { return (int32_t)this->nextU(); } in nextS() 56 int floatint = 0x3f800000 | (int)(this->nextU() >> 9); in nextF() 74 return this->nextU() >> (32 - bitCount); in nextBits() 84 return this->nextU(); in nextRangeU() 86 return min + this->nextU() % range; in nextRangeU() 117 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() 150 SkFixed nextUFixed1() { return this->nextU() >> 16; } in nextUFixed1()
|
/external/skia/tests/ |
D | ColorTest.cpp | 49 SkColor colorSrc = r.nextU(); in DEF_TEST() 50 SkColor colorDst = r.nextU(); in DEF_TEST() 67 SkColor colorSrc = r.nextU(); in DEF_TEST() 68 SkColor colorDst = r.nextU(); in DEF_TEST()
|
D | RegionTest.cpp | 123 int x = rand.nextU() % W; in randRect() 124 int y = rand.nextU() % H; in randRect() 125 int w = rand.nextU() % W; in randRect() 126 int h = rand.nextU() % H; in randRect() 220 rect->setLTRB(rand.nextU() >> shift, rand.nextU() >> shift, in rand_rect() 221 rand.nextU() >> shift, rand.nextU() >> shift); in rand_rect()
|
D | AAClipTest.cpp | 137 int w = rand.nextU() % n; in rand_rect() 138 int h = rand.nextU() % n; in rand_rect() 143 int count = rand.nextU() % 20; in make_rand_rgn() 260 r->setXYWH(0, 0, rand.nextU() % N, rand.nextU() % N); in rand_irect() 261 int dx = rand.nextU() % (2*N); in rand_irect() 262 int dy = rand.nextU() % (2*N); in rand_irect()
|
D | RandomTest.cpp | 70 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte() 121 unsigned int rnd = rand.nextU(); in test_single_gorilla() 128 unsigned int rnd = rand.nextU(); in test_single_gorilla()
|
D | ChecksumTest.cpp | 27 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST() 40 tweaked[j] = rand.nextU(); in DEF_TEST()
|
D | DrawBitmapRectTest.cpp | 50 size->set(rand.nextU() & 0xFFFF, rand.nextU() & 0xFFFF); in rand_size()
|
/external/skia/gm/ |
D | widebuttcaps.cpp | 34 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes() 39 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes() 44 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes() 48 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
|
D | degeneratesegments.cpp | 322 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() 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 | 36 paint->setColor(rand.nextU()); in rnd_quad() 59 paint->setColor(rand.nextU()); in rnd_cubic()
|
D | runtimeshader.cpp | 568 rand.nextU() | 0xff808080); in onDraw() 574 rand.nextU() | 0xff808080); in onDraw() 580 rand.nextU() | 0xff808080); in onDraw() 586 rand.nextU() | 0xff808080); in onDraw() 592 rand.nextU() | 0xff808080); in onDraw() 598 rand.nextU() | 0xff808080); in onDraw() 604 rand.nextU() | 0xff808080); in onDraw() 610 rand.nextU() | 0xff808080); in onDraw()
|
D | addarc.cpp | 50 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw() 142 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw() 195 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
|
D | shapes.cpp | 109 paint.setColor(rand.nextU() & ~0x808080); in drawShapes() 174 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
|
D | arcofzorro.cpp | 52 SkColor color = rand.nextU(); in onDraw()
|
D | simplerect.cpp | 43 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
|
/external/skia/bench/ |
D | RegionBench.cpp | 83 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()
|
D | RectBench.cpp | 67 int x = rand.nextU() % W; in onDelayedSetup() 68 int y = rand.nextU() % H; in onDelayedSetup() 69 int w = rand.nextU() % W; in onDelayedSetup() 70 int h = rand.nextU() % H; in onDelayedSetup() 78 fColors[i] = rand.nextU() | 0xFF808080; in onDelayedSetup() 313 alpha = rand.nextU() & 255; in onDraw()
|
D | TopoSortBench.cpp | 36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup() 39 int dep = fRand.nextU() % i; in onDelayedSetup()
|
D | ColorPrivBench.cpp | 31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup() 32 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
|
D | VertBench.cpp | 102 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench() 213 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup()
|
D | ChecksumBench.cpp | 32 fData[i] = rand.nextU(); in ComputeChecksumBench()
|
/external/skia/tools/viewer/ |
D | ClipSlide.cpp | 31 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() 74 paint.setColor(rand.nextU()); in show_stroke() 79 paint.setColor(rand.nextU()); in show_stroke() 86 paint.setColor(rand.nextU()); in show_stroke()
|
/external/skia/src/gpu/ganesh/ops/ |
D | AtlasTextOp.cpp | 566 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE() 580 int xPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE() 581 int yPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE() 582 int xInt = (random->nextU() % kMaxTrans) * xPos; in GR_DRAW_OP_TEST_DEFINE() 583 int yInt = (random->nextU() % kMaxTrans) * yPos; in GR_DRAW_OP_TEST_DEFINE()
|
D | TriangulatingPathRenderer.cpp | 560 random->nextU(), random->nextU(), random->nextU(), random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
|
/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()
|