HomeSort by relevance Sort by last modified time
    Searched refs:rand (Results 1 - 25 of 1518) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/tools/
random_parse_path.cpp 32 static void add_white(SkRandom* rand, SkString* atom) {
37 int reps = rand->nextRangeU(0, 2);
39 int index = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1);
46 static void add_comma(SkRandom* rand, SkString* atom) {
52 add_white(rand, atom);
53 if (rand->nextBool()) {
57 add_white(rand, atom);
61 static void add_some_white(SkRandom* rand, SkString* atom) {
64 add_white(rand, atom);
68 SkString MakeRandomParsePathPiece(SkRandom* rand) {
    [all...]
random_parse_path.h 15 SkString MakeRandomParsePathPiece(SkRandom* rand);
  /external/skqp/tools/
random_parse_path.cpp 32 static void add_white(SkRandom* rand, SkString* atom) {
37 int reps = rand->nextRangeU(0, 2);
39 int index = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1);
46 static void add_comma(SkRandom* rand, SkString* atom) {
52 add_white(rand, atom);
53 if (rand->nextBool()) {
57 add_white(rand, atom);
61 static void add_some_white(SkRandom* rand, SkString* atom) {
64 add_white(rand, atom);
68 SkString MakeRandomParsePathPiece(SkRandom* rand) {
    [all...]
random_parse_path.h 15 SkString MakeRandomParsePathPiece(SkRandom* rand);
  /system/bt/osi/src/
osi.cc 36 int rand; local
40 LOG_ERROR(LOG_TAG, "%s can't open rand fd %s: %s ", __func__, RANDOM_PATH,
45 ssize_t read_bytes = read(rand_fd, &rand, sizeof(rand));
48 CHECK(read_bytes == sizeof(rand));
50 if (rand < 0) rand = -rand;
52 return rand;
  /bionic/libc/bionic/
rand.cpp 19 // The BSD rand/srand is very weak. glibc just uses random/srandom instead.
23 int rand() { function
  /test/vts/drivers/hal/libdatatype/
vts_datatype.cpp 27 uint32_t RandomUint32() { return (unsigned int)rand(); }
29 int32_t RandomInt32() { return rand(); }
32 uint64_t num = (unsigned int)rand();
33 return (num << 32) | (unsigned int)rand();
37 int64_t num = rand();
38 return (num << 32) | rand();
41 float RandomFloat() { return (float)rand() / (float)(RAND_MAX / 1000000000.0); }
44 return (double)rand() / (double)(RAND_MAX / 1000000000.0);
47 bool RandomBool() { return (abs(rand()) % 2) == 1; }
  /prebuilts/go/darwin-x86/src/crypto/tls/
handshake_messages_test.go 9 "math/rand"
38 rand := rand.New(rand.NewSource(0))
48 v, ok := quick.Value(ty, rand)
86 rand := rand.New(rand.NewSource(0))
91 len := rand.Intn(100)
92 bytes := randomBytes(len, rand)
    [all...]
  /prebuilts/go/linux-x86/src/crypto/tls/
handshake_messages_test.go 9 "math/rand"
38 rand := rand.New(rand.NewSource(0))
48 v, ok := quick.Value(ty, rand)
86 rand := rand.New(rand.NewSource(0))
91 len := rand.Intn(100)
92 bytes := randomBytes(len, rand)
    [all...]
  /external/skia/gm/
beziers.cpp 18 static void rnd_quad(SkPath* p, SkPaint* paint, SkRandom& rand) {
19 auto a = rand.nextRangeScalar(0,W),
20 b = rand.nextRangeScalar(0,H);
23 auto c = rand.nextRangeScalar(W/4, W),
24 d = rand.nextRangeScalar( 0, H),
25 e = rand.nextRangeScalar( 0, W),
26 f = rand.nextRangeScalar(H/4, H);
29 paint->setColor(rand.nextU());
30 SkScalar width = rand.nextRangeScalar(1, 5);
36 static void rnd_cubic(SkPath* p, SkPaint* paint, SkRandom& rand) {
76 SkRandom rand; variable
    [all...]
  /external/skqp/gm/
beziers.cpp 18 static void rnd_quad(SkPath* p, SkPaint* paint, SkRandom& rand) {
19 auto a = rand.nextRangeScalar(0,W),
20 b = rand.nextRangeScalar(0,H);
23 auto c = rand.nextRangeScalar(W/4, W),
24 d = rand.nextRangeScalar( 0, H),
25 e = rand.nextRangeScalar( 0, W),
26 f = rand.nextRangeScalar(H/4, H);
29 paint->setColor(rand.nextU());
30 SkScalar width = rand.nextRangeScalar(1, 5);
36 static void rnd_cubic(SkPath* p, SkPaint* paint, SkRandom& rand) {
76 SkRandom rand; variable
    [all...]
  /external/eigen/bench/btl/generic_bench/init/
init_function.hh 35 return std::rand()/double(RAND_MAX);
40 return std::rand()/double(RAND_MAX);
  /external/skia/tests/
OverAlignedTest.cpp 15 SkRandom rand; local
18 void* p = sk_malloc_throw(rand.nextRangeU(0,100));
  /external/skqp/tests/
OverAlignedTest.cpp 15 SkRandom rand; local
18 void* p = sk_malloc_throw(rand.nextRangeU(0,100));
  /external/skia/bench/
ControlBench.cpp 19 volatile uint32_t rand = 0; variable
21 rand *= 1664525;
22 rand += 1013904223;
  /external/skqp/bench/
ControlBench.cpp 19 volatile uint32_t rand = 0; variable
21 rand *= 1664525;
22 rand += 1013904223;
  /external/llvm/test/tools/llvm-cov/Inputs/
test.cpp 42 on = rand() % 2;
48 a += rand();
52 switch (rand() % 5) {
54 a += rand();
58 a += rand() / rand();
61 a -= rand();
  /external/skia/samplecode/
SampleHairCurves.cpp 36 SkRandom rand; local
43 rand.nextUScalar1(), rand.nextUScalar1(),
44 rand.nextUScalar1(), rand.nextUScalar1(),
45 rand.nextUScalar1(), rand.nextUScalar1(),
46 rand.nextUScalar1(), rand.nextUScalar1()
65 rand.nextUScalar1(), rand.nextUScalar1()
    [all...]
SampleClip.cpp 22 SkRandom rand; local
29 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU());
31 rand.nextSScalar1() * W, rand.nextSScalar1() * H + 20,
37 SkRandom rand; local
45 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H,
46 rand.nextUScalar1() * W, rand.nextUScalar1() * H);
47 paint.setColor(rand.nextU())
64 SkRandom rand; local
    [all...]
  /external/skqp/samplecode/
SampleHairCurves.cpp 36 SkRandom rand; local
43 rand.nextUScalar1(), rand.nextUScalar1(),
44 rand.nextUScalar1(), rand.nextUScalar1(),
45 rand.nextUScalar1(), rand.nextUScalar1(),
46 rand.nextUScalar1(), rand.nextUScalar1()
65 rand.nextUScalar1(), rand.nextUScalar1()
    [all...]
SampleClip.cpp 22 SkRandom rand; local
29 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU());
31 rand.nextSScalar1() * W, rand.nextSScalar1() * H + 20,
37 SkRandom rand; local
45 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H,
46 rand.nextUScalar1() * W, rand.nextUScalar1() * H);
47 paint.setColor(rand.nextU())
64 SkRandom rand; local
    [all...]
  /external/libdrm/tests/
random.c 102 unsigned long rand; local
106 rand = drmRandom(state);
108 ret = rand != state->check;
110 rand, state->check,
  /external/clang/test/Analysis/
security-syntax-checks-no-emit.c 7 // Omit the 'rand' check since 'arc4random' is not available on Linux.
8 int rand(void);
24 rand(); // no-warning
  /external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/
RandomIntegerArrayGenerator.java 30 Random rand = new Random(11); field in class:RandomIntegerArrayGenerator
35 int r = rand.nextInt();
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
UnitSphereRandomVectorGenerator.java 35 private final RandomGenerator rand; field in class:UnitSphereRandomVectorGenerator
43 * @param rand RNG for the individual components of the vectors.
46 final RandomGenerator rand) {
48 this.rand = rand;
69 final double comp = 2 * rand.nextDouble() - 1;

Completed in 385 milliseconds

1 2 3 4 5 6 7 8 91011>>