Searched refs:nextU (Results 1 - 25 of 93) sorted by relevance

1234

/external/skia/include/utils/
H A DSkRandom.h37 uint32_t nextU() { function in class:SkRandom
45 int32_t nextS() { return (int32_t)this->nextU(); }
49 U16CPU nextU16() { return this->nextU() >> 16; }
59 unsigned int floatint = 0x3f800000 | (this->nextU() >> 9);
77 return this->nextU() >> (32 - bitCount);
87 return this->nextU();
89 return min + this->nextU() % range;
120 bool nextBool() { return this->nextU() >= 0x80000000; }
134 return (hi << 32) | this->nextU();
161 SkFixed nextUFixed1() { return this->nextU() >> 1
[all...]
/external/skia/bench/
H A DColorPrivBench.cpp31 fSrcs[i] = SkPreMultiplyColor(rand.nextU());
32 fDsts[i] = SkPreMultiplyColor(rand.nextU());
H A DTopoSortBench.cpp37 int numEdges = fRand.nextU() % (kMaxEdges+1);
40 int dep = fRand.nextU() % i;
H A DRegionBench.cpp83 int x = rand.nextU() % W;
84 int y = rand.nextU() % H;
85 int w = rand.nextU() % W;
86 int h = rand.nextU() % H;
H A DRectBench.cpp54 int x = rand.nextU() % W;
55 int y = rand.nextU() % H;
56 int w = rand.nextU() % W;
57 int h = rand.nextU() % H;
65 fColors[i] = rand.nextU() | 0xFF808080;
255 alpha = rand.nextU() & 255;
H A DChecksumBench.cpp32 fData[i] = rand.nextU();
H A DFSRectBench.cpp35 fColors[i] = rand.nextU() | 0xFF000000;
H A DPathIterBench.cpp18 int n = rand.nextU() & 3;
H A DRegionContainBench.cpp32 int w = rand.nextU() % W;
/external/skia/tests/
H A DChecksumTest.cpp19 data[i] = tweaked[i] = rand.nextU();
32 tweaked[j] = rand.nextU();
H A DColorTest.cpp52 SkColor colorSrc = r.nextU();
53 SkColor colorDst = r.nextU();
69 SkColor colorSrc = r.nextU();
70 SkColor colorDst = r.nextU();
H A DRandomTest.cpp65 bins[(rand.nextU() >> shift) & 0xff]++;
116 unsigned int rnd = rand.nextU();
123 unsigned int rnd = rand.nextU();
H A DRegionTest.cpp111 int x = rand.nextU() % W;
112 int y = rand.nextU() % H;
113 int w = rand.nextU() % W;
114 int h = rand.nextU() % H;
208 rect->set(rand.nextU() >> shift, rand.nextU() >> shift,
209 rand.nextU() >> shift, rand.nextU() >> shift);
/external/skia/gm/
H A Darcofzorro.cpp46 SkColor color = rand.nextU();
H A Dbeziers.cpp29 paint->setColor(rand.nextU());
49 paint->setColor(rand.nextU());
H A Ddiscard.cpp60 SkColor color = sk_tool_utils::color_to_565(rand.nextU() | 0xFF404040);
H A Dsimplerect.cpp39 paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24)));
H A Dcircles.cpp163 SkColor color = rand.nextU();
184 SkColor color = rand.nextU();
H A Ddegeneratesegments.cpp322 StyleAndName style = gStyles[(rand.nextU() >> 16) % numStyles];
323 CapAndName cap = gCaps[(rand.nextU() >> 16) % numCaps];
324 FillAndName fill = gFills[(rand.nextU() >> 16) % numFills];
326 unsigned s1 = (rand.nextU() >> 16) % numSegments;
327 unsigned s2 = (rand.nextU() >> 16) % numSegments;
328 unsigned s3 = (rand.nextU() >> 16) % numSegments;
329 unsigned s4 = (rand.nextU() >> 16) % numSegments;
330 unsigned s5 = (rand.nextU() >> 16) % numSegments;
/external/skia/samplecode/
H A DSampleClip.cpp29 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU());
47 paint.setColor(rand.nextU());
52 paint.setColor(rand.nextU());
76 paint.setColor(rand.nextU());
81 paint.setColor(rand.nextU());
89 paint.setColor(rand.nextU());
H A DSampleAnimBlur.cpp53 paint.setColor(random.nextU() | 0xff000000);
H A DSampleManyRects.cpp61 paint.setColor(fRandom.nextU());
H A DSampleTextAlpha.cpp59 paint.setColor(rand.nextU() | (0xFF << 24));
H A DSampleFontCache.cpp23 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32);
42 text[j] = (uint16_t)((rand.nextU() & 0xFF) + 32);
H A DSampleHT.cpp43 return rand.nextU() | (0xFF << 24);
56 fColor = rand_opaque_color(rand.nextU());

Completed in 302 milliseconds

1234