/external/skia/gm/ |
textblobmixedsizes.cpp | 126 SkRandom random; variable 145 canvas->rotate(random.nextF() * 45.f); 148 canvas->rotate(-random.nextF() * 45.f);
|
variedtext.cpp | 16 * Draws text with random parameters. The text draws each get their own clip rect. It is also 61 SkRandom random; variable 63 int length = random.nextRangeU(kMinLength, kMaxLength); 66 text[j] = (char)random.nextRangeU('!', 'z'); 70 fColors[i] = random.nextU(); 77 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); 79 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); 95 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); 96 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom);
|
/external/skia/tests/ |
BitmapTest.cpp | 200 SkRandom random; local 207 SkColor color1 = (SkColor)((random.nextU() & 0xFFFFFF00) | i); 209 SkColor color2 = (SkColor)((random.nextU() & 0x00FFFFFF) | (i << 24));
|
TDPQueueTest.cpp | 82 SkRandom random; local 86 // Create a random set of Dummy objects. 87 int count = random.nextULessThan(100); 92 dummy->fPriority = random.nextS(); 93 dummy->fValue = random.nextS(); 120 // Do one of three random actions: 121 unsigned action = random.nextULessThan(3); 130 case 1: { // remove a random element, 133 item = random.nextULessThan(count); 142 item = random.nextULessThan(count) 154 SkRandom random; local [all...] |
/external/skqp/bench/ |
ChartBench.cpp | 22 SkRandom* random, SkTDArray<SkScalar>* dataPts) { 25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), 120 SkRandom random; variable 124 gen_data(y, ySpread, dataPointCount, &random, fData + i);
|
MultitextureImageBench.cpp | 42 SkRandom random; variable 45 SkColor color = random.nextU();
|
PDFBench.cpp | 48 SkRandom random; variable 51 auto f = random.nextRangeF(-500.0f, 1500.0f);
|
/external/skqp/gm/ |
atlastext.cpp | 107 SkRandom random; local 113 // Choose a random color but don't let alpha be too small to see. 114 uint32_t color = random.nextU() | 0x40000000; 117 if (random.nextBool()) { 127 if (random.nextBool()) { 136 if ((random.nextU() % 8) == 0) {
|
drawminibitmaprect.cpp | 93 SkRandom random; variable 103 switch (random.nextU() % 3) { 105 canvas->rotate(random.nextF() * 10.f); 108 canvas->rotate(-random.nextF() * 10.f);
|
tallstretchedbitmaps.cpp | 26 SkRandom random; local 43 paint.setColor(random.nextU() | 0xFF000000);
|
textblobmixedsizes.cpp | 126 SkRandom random; variable 145 canvas->rotate(random.nextF() * 45.f); 148 canvas->rotate(-random.nextF() * 45.f);
|
variedtext.cpp | 16 * Draws text with random parameters. The text draws each get their own clip rect. It is also 61 SkRandom random; variable 63 int length = random.nextRangeU(kMinLength, kMaxLength); 66 text[j] = (char)random.nextRangeU('!', 'z'); 70 fColors[i] = random.nextU(); 77 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); 79 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); 95 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); 96 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom);
|
/external/skqp/tests/ |
BitmapTest.cpp | 200 SkRandom random; local 207 SkColor color1 = (SkColor)((random.nextU() & 0xFFFFFF00) | i); 209 SkColor color2 = (SkColor)((random.nextU() & 0x00FFFFFF) | (i << 24));
|
TDPQueueTest.cpp | 82 SkRandom random; local 86 // Create a random set of Dummy objects. 87 int count = random.nextULessThan(100); 92 dummy->fPriority = random.nextS(); 93 dummy->fValue = random.nextS(); 120 // Do one of three random actions: 121 unsigned action = random.nextULessThan(3); 130 case 1: { // remove a random element, 133 item = random.nextULessThan(count); 142 item = random.nextULessThan(count) 154 SkRandom random; local [all...] |
/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
SmaliLexerTest.java | 37 import java.util.Random; 165 * Generate some random text and make sure the lexer doesn't throw any exceptions 175 private Random random = new Random(123456789); field in class:SmaliLexerTest 179 int type = random.nextInt(10); 184 randomCodepoint = random.nextInt(); 190 randomChar = (char)random.nextInt(2^16); 194 sb.append((char)random.nextInt(256)); 198 sb.append((char)random.nextInt(128)) [all...] |
/external/tensorflow/tensorflow/core/lib/random/ |
weighted_picker.cc | 16 #include "tensorflow/core/lib/random/weighted_picker.h" 21 #include "tensorflow/core/lib/random/simple_philox.h" 24 namespace random { namespace in namespace:tensorflow 217 } // namespace random
|
weighted_picker_test.cc | 16 #include "tensorflow/core/lib/random/weighted_picker.h" 21 #include "tensorflow/core/lib/random/simple_philox.h" 29 namespace random { namespace in namespace:tensorflow 268 } // namespace random
|
/external/v8/src/base/utils/ |
random-number-generator.h | 17 // This class is used to generate a stream of pseudo-random numbers. The class 20 // The resulting stream of pseudo-random numbers has a period length of 2^128-1. 46 // random number generator's sequence. The general contract of |NextInt()| is 55 // (inclusive) and the specified max value (exclusive), drawn from this random 63 // this random number generator's sequence. The general contract of 72 // 0.0 and 1.0 from this random number generator's sequence. 79 // random number generator's sequence. The general contract of |NextInt64()| 85 // Fills the elements of a specified array of bytes with random numbers. 98 uint64_t random = ((state0 + state1) & kMantissaMask) | kExponentBits; local 99 return bit_cast<double>(random) - 1 [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
TextViewOnMeasurePerfTest.java | 38 import java.util.Random; 84 // Append random span to text. 85 final Random random = new Random(0); external variable declarations 88 FAMILIES[random.nextInt(FAMILIES.length)], 89 STYLES[random.nextInt(STYLES.length)], 90 24 + random.nextInt(32), // text size. minimum 24 91 COLORS[random.nextInt(COLORS.length)], 92 COLORS[random.nextInt(COLORS.length)]) [all...] |
/frameworks/base/core/java/android/privacy/internal/rappor/ |
RapporEncoder.java | 28 import java.util.Random; 67 final Random random; local 69 // Use SecureRandom as random generator. 70 random = sSecureRandom; 73 random = new Random(getInsecureSeed(config.mEncoderId)); 76 mEncoder = new Encoder(random, null, null,
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
EventListTest.java | 30 import java.util.Random; 67 final Random random = new Random(128); local 70 listUnderTest.insert(getUsageEvent(random.nextLong())); 77 final Random random = new Random(256); local 80 final long randomTimeStamp = random.nextLong();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
ActivityStartControllerTests.java | 40 import java.util.Random; 73 final Random random = new Random(); local 77 final int startFlags = random.nextInt(); 85 final boolean resume = random.nextBoolean();
|
/libcore/benchmarks/src/benchmarks/ |
BufferedZipFileBenchmark.java | 25 import java.util.Random; 42 Random random = new Random(0); local 48 random.nextBytes(data);
|
ZipFileBenchmark.java | 25 import java.util.Random; 61 Random random = new Random(); local 69 random.nextBytes(writeBuffer);
|
ZipFileReadBenchmark.java | 26 import java.util.Random; 54 Random random = new Random(); local 62 random.nextBytes(writeBuffer);
|