/external/skia/include/utils/ |
D | SkRandom.h | 37 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/ |
D | SampleClip.cpp | 29 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()
|
D | SampleFontCache.cpp | 23 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32); in call_measure() 42 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/bench/ |
D | RectBench.cpp | 54 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()
|
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 | TopoSortBench.cpp | 37 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup() 40 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 | ChecksumBench.cpp | 32 fData[i] = rand.nextU(); in ComputeChecksumBench()
|
/external/skia/tests/ |
D | RegionTest.cpp | 111 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()
|
D | ChecksumTest.cpp | 19 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST() 32 tweaked[j] = rand.nextU(); in DEF_TEST()
|
D | AAClipTest.cpp | 96 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()
|
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 | 23 int width = 1 + rand.nextU() % 1000; in DEF_TEST() 24 int height = 1 + rand.nextU() % 1000; in DEF_TEST()
|
/external/skia/gm/ |
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() 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()
|
D | beziers.cpp | 29 paint->setColor(rand.nextU()); in rnd_quad() 49 paint->setColor(rand.nextU()); in rnd_cubic()
|
D | circles.cpp | 163 SkColor color = rand.nextU(); in onDraw() 184 SkColor color = rand.nextU(); in onDraw()
|
D | shapes.cpp | 97 paint.setColor(rand.nextU() & ~0x808080); in drawShapes() 143 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
|
D | addarc.cpp | 40 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()
|
D | arcofzorro.cpp | 46 SkColor color = rand.nextU(); in onDraw()
|
D | simplerect.cpp | 39 paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
|
/external/skia/src/gpu/text/ |
D | GrAtlasTextContext.cpp | 363 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/ |
D | SkDiscretePathEffect.cpp | 64 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/ |
D | GrTessellatingPathRenderer.cpp | 384 random->nextU(), random->nextU(), random->nextU(), random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
|