Home
last modified time | relevance | path

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

1234

/external/skia/src/base/
DSkRandom.h42 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/
DColorTest.cpp49 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()
DRegionTest.cpp123 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()
DAAClipTest.cpp137 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()
DRandomTest.cpp70 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()
DChecksumTest.cpp27 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST()
40 tweaked[j] = rand.nextU(); in DEF_TEST()
DDrawBitmapRectTest.cpp50 size->set(rand.nextU() & 0xFFFF, rand.nextU() & 0xFFFF); in rand_size()
/external/skia/gm/
Dwidebuttcaps.cpp34 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()
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()
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.cpp36 paint->setColor(rand.nextU()); in rnd_quad()
59 paint->setColor(rand.nextU()); in rnd_cubic()
Druntimeshader.cpp568 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()
Daddarc.cpp50 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()
Dshapes.cpp109 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
174 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
Darcofzorro.cpp52 SkColor color = rand.nextU(); in onDraw()
Dsimplerect.cpp43 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
/external/skia/bench/
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()
DRectBench.cpp67 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()
DTopoSortBench.cpp36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup()
39 int dep = fRand.nextU() % i; in onDelayedSetup()
DColorPrivBench.cpp31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
32 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
DVertBench.cpp102 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench()
213 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup()
DChecksumBench.cpp32 fData[i] = rand.nextU(); in ComputeChecksumBench()
/external/skia/tools/viewer/
DClipSlide.cpp31 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/
DAtlasTextOp.cpp566 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()
DTriangulatingPathRenderer.cpp560 random->nextU(), random->nextU(), random->nextU(), random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
/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