/external/skia/tools/ |
D | random_parse_path.cpp | 37 int reps = rand->nextRangeU(0, 2); in add_white() 39 int index = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1); in add_white() 70 int index = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gLegal) - 1); in MakeRandomParsePathPiece() 75 int reps = rand->nextRangeU(1, 3); in MakeRandomParsePathPiece() 89 atom.appendU32(rand->nextRangeU(0, 1)); in MakeRandomParsePathPiece() 91 atom.appendU32(rand->nextRangeU(0, 1)); in MakeRandomParsePathPiece()
|
/external/skia/samplecode/ |
D | SamplePathFuzz.cpp | 147 fPathDepthLimit = fRand.nextRangeU(1, 2); in randomize() 148 fPathContourCount = fRand.nextRangeU(1, 4); in randomize() 149 fPathSegmentLimit = fRand.nextRangeU(1, 8); in randomize() 154 fPathDepthLimit = fRand.nextRangeU(1, 3); in randomize() 155 fPathContourCount = fRand.nextRangeU(1, 6); in randomize() 156 fPathSegmentLimit = fRand.nextRangeU(1, 16); in randomize() 188 return (SkPath::AddPathMode) fRand.nextRangeU(SkPath::kAppend_AddPathMode, in makeAddPathMode() 193 return (RandomAddPath) fRand.nextRangeU(0, kRandomAddPath_Last); in makeAddPathType() 207 return (SkPath::Direction) fRand.nextRangeU(SkPath::kCW_Direction, SkPath::kCCW_Direction); in makeDirection() 213 RandomSetMatrix setMatrix = (RandomSetMatrix) fRand.nextRangeU(0, kRandomSetMatrix_Last); in makeMatrix() [all …]
|
D | SampleManyRects.cpp | 40 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent() 41 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent() 42 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent() 43 int y = fRandom.nextRangeU(0, dsize.fHeight); in onDrawContent()
|
D | SampleRectanizer.cpp | 37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView() 38 random.nextRangeU(kMinRectSize, kMaxRectSize)); in RectanizerView() 40 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)), in RectanizerView() 41 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize))); in RectanizerView()
|
D | SampleMegaStroke.cpp | 23 fMegaPath.lineTo(SkIntToScalar(index), SkIntToScalar(rand.nextRangeU(500, 600))); in MegaStrokeView()
|
/external/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.cpp | 259 int width = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE); in TestCreate() 260 int height = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE / width); in TestCreate() 268 SkIPoint kernelOffset = SkIPoint::Make(d->fRandom->nextRangeU(0, kernelSize.width()), in TestCreate() 269 d->fRandom->nextRangeU(0, kernelSize.height())); in TestCreate() 270 SkIRect bounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), in TestCreate() 271 d->fRandom->nextRangeU(0, proxy->height()), in TestCreate() 272 d->fRandom->nextRangeU(0, proxy->width()), in TestCreate() 273 d->fRandom->nextRangeU(0, proxy->height())); in TestCreate() 275 static_cast<GrTextureDomain::Mode>(d->fRandom->nextRangeU(0, 2)); in TestCreate()
|
D | GrGaussianConvolutionFragmentProcessor.cpp | 231 bounds[0] = d->fRandom->nextRangeU(0, proxy->width()-1); in TestCreate() 232 bounds[1] = d->fRandom->nextRangeU(bounds[0], proxy->width()-1); in TestCreate() 235 bounds[0] = d->fRandom->nextRangeU(0, proxy->height()-1); in TestCreate() 236 bounds[1] = d->fRandom->nextRangeU(bounds[0], proxy->height()-1); in TestCreate() 239 int radius = d->fRandom->nextRangeU(1, kMaxKernelRadius); in TestCreate()
|
D | GrSRGBEffect.cpp | 109 Mode testMode = static_cast<Mode>(d->fRandom->nextRangeU(0, 1)); in TestCreate()
|
/external/skia/bench/ |
D | RectanizerBench.cpp | 93 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2), in onDraw() 94 rand.nextRangeU(1, kHeight / 2)); in onDraw() 96 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)), in onDraw() 97 GrNextPow2(rand.nextRangeU(1, kHeight / 2))); in onDraw()
|
D | GrMemoryPoolBench.cpp | 116 uint32_t idx = r.nextRangeU(0, kMaxObjects-1); in onDraw() 160 uint32_t count = r.nextRangeU(0, M-1); in onDraw()
|
D | ShapesBench.cpp | 168 shapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup() 172 innerShapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup()
|
/external/skia/include/gpu/ |
D | GrTestUtils.h | 114 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor() 115 random->nextRangeU(0, alpha), in GrRandomColor() 116 random->nextRangeU(0, alpha), in GrRandomColor()
|
D | GrProcessorUnitTest.h | 90 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Make() 125 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Get()
|
/external/skia/tests/ |
D | PathOpsTightBoundsTest.cpp | 18 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsLines() 20 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsLines() 63 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsQuads() 65 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
|
D | GpuRectanizerTest.cpp | 66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST() 67 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
|
D | RandomTest.cpp | 166 (void) rand.nextRangeU(0, 0xffffffff); in test_range() 172 unsigned int u = rand.nextRangeU(17, 17+255); in test_range()
|
D | GpuSampleLocationsTest.cpp | 138 rand.nextRangeU(1 + numSamples / 2, numSamples), in test_sampleLocations() 142 rand.nextRangeU(1 + numSamples / 2, numSamples), in test_sampleLocations()
|
D | OverAlignedTest.cpp | 18 void* p = sk_malloc_throw(rand.nextRangeU(0,100)); in DEF_TEST()
|
D | SortTest.cpp | 47 int count = rand.nextRangeU(1, SK_ARRAY_COUNT(randomArray)); in DEF_TEST()
|
D | GrMemoryPoolTest.cpp | 155 switch (r->nextRangeU(0, 4)) { in Create() 209 int d = r.nextRangeU(0, instanceRecs.count() - 1); in DEF_TEST()
|
D | ParsePathTest.cpp | 83 uint32_t count = rand.nextRangeU(0, 10); in DEF_TEST()
|
/external/skia/gm/ |
D | arcto.cpp | 151 uint32_t y = rand.nextRangeU(30, 70); in DEF_SIMPLE_GM() 152 uint32_t x = rand.nextRangeU(30, 70); in DEF_SIMPLE_GM() 154 uint32_t count = rand.nextRangeU(0, 10); in DEF_SIMPLE_GM()
|
D | variedtext.cpp | 65 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw() 68 text[j] = (char)random.nextRangeU('!', 'z'); in onOnceBeforeDraw()
|
/external/skia/include/utils/ |
D | SkRandom.h | 83 uint32_t nextRangeU(uint32_t min, uint32_t max) { in nextRangeU() function 98 return this->nextRangeU(0, count - 1); in nextULessThan()
|
/external/skia/src/effects/ |
D | SkDisplacementMapEffect.cpp | 542 d->fRandom->nextRangeU(1, kMaxComponent)); in TestCreate() 545 d->fRandom->nextRangeU(1, kMaxComponent)); in TestCreate() 549 colorDimensions.fWidth = d->fRandom->nextRangeU(0, colorProxy->width()); in TestCreate() 550 colorDimensions.fHeight = d->fRandom->nextRangeU(0, colorProxy->height()); in TestCreate()
|