Searched refs:rand (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Random.c53 /* Windows' rand is rotten, the first generated value after the init
56 for (i=0; i<100; i++) rand();
81 (*out_value) = rand();
/frameworks/base/cmds/interrupter/
H A Dinterrupter.c44 if (rand() < probability) {
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_math_agree.java28 private Random rand; field in class:UT_math_agree
33 rand = new Random();
102 fv[i] = rand.nextFloat();
107 rand.nextBytes(cv);
113 ucv[i] = (short)rand.nextInt(0x1 << 8);
119 sv[i] = (short)rand.nextInt(0x1 << 16);
125 usv[i] = rand.nextInt(0x1 << 16);
131 iv[i] = rand.nextInt();
137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE;
143 lv[i] = rand
[all...]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_math_agree.java28 private Random rand; field in class:UT_math_agree
33 rand = new Random();
102 fv[i] = rand.nextFloat();
107 rand.nextBytes(cv);
113 ucv[i] = (short)rand.nextInt(0x1 << 8);
119 sv[i] = (short)rand.nextInt(0x1 << 16);
125 usv[i] = rand.nextInt(0x1 << 16);
131 iv[i] = rand.nextInt();
137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE;
143 lv[i] = rand
[all...]
/frameworks/base/core/java/com/android/internal/http/multipart/
H A DMultipartEntity.java109 Random rand = new Random();
110 byte[] bytes = new byte[rand.nextInt(11) + 30]; // a random size from 30 to 40
112 bytes[i] = MULTIPART_CHARS[rand.nextInt(MULTIPART_CHARS.length)];
/frameworks/wilhelm/tests/listening/
H A DseekTorture.c121 SLmillisecond delay = 100 + (rand() & 8191);
124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0);
/frameworks/wilhelm/tests/sandbox/
H A Dmultithread.c83 usleep(1000 + (rand() & 0xFFF));
133 int r = rand();
H A Dmultiplay.c217 SLmillisecond delay = 100 + (rand() & 1023);
220 i = (rand() & 0x7FFFFFFF) % numPlayers;
256 SLmillibel volumeLevel = -((rand() & 0x7FFFFFFF) % ((SL_MILLIBEL_MIN + 1) / 10));
262 SLpermille stereoPosition = ((rand() & 0x7FFFFFFF) % 2001) - 1000;
H A Dmonkey.c142 unsigned us = 1000 + (rand() & 0xFFFFF);
273 unsigned choice = (rand() & 0x7FFFFFFF) % totalProbability;
/frameworks/av/media/libstagefright/rtsp/
H A DVideoSource.h70 char x = (char)((double)rand() / RAND_MAX * 255);
H A DARTPSource.cpp51 mNextFIRSeqNo((rand() * 256.0) / RAND_MAX),
H A DARTPWriter.cpp44 return ((double)rand() * limit) / RAND_MAX;
124 mSourceID = rand();
126 mRTPTimeBase = rand();
H A DMyTransmitter.h49 return ((double)rand() * limit) / RAND_MAX;
85 mSourceID(rand()),
87 mRTPTimeBase(rand()),
H A DARTPConnection.cpp120 /* rand() * 1000 may overflow int type, use long long */
121 unsigned start = (unsigned)((rand()* 1000ll)/RAND_MAX) + 15550;
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp194 float x = ((float)rand()) / RAND_MAX;
195 float y = ((float)rand()) / RAND_MAX;
196 float z = ((float)rand()) / RAND_MAX;
197 float w = ((float)rand()) / RAND_MAX;
/frameworks/rs/cpu_ref/linkloader/android/
H A Dtest-librsloader.c45 DEF("rand", rand)
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
H A Dstochastic_linear_ranker.cpp89 ((rand()/RAND_MAX) < acceptence_probability_)) {
/frameworks/base/core/java/android/net/http/
H A DRequestHandle.java429 Random rand = new Random();
430 int nextInt = rand.nextInt();
/frameworks/wilhelm/tools/permute/
H A Dpermute.c96 unsigned r = rand() & 0x7FFFFFFF;
231 unsigned r = rand() & 0x7FFFFFFF;
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp30 return static_cast<float>(rand()) / RAND_MAX;
/frameworks/rs/cpu_ref/linkloader/
H A Dmain.cpp100 return rand();
121 DEF("rand", stub_rand)
/frameworks/rs/cpu_ref/
H A DrsCpuRuntimeMath.cpp104 float r = (float)rand();
/frameworks/rs/driver/runtime/
H A Drs_core.c99 extern int32_t rand();
105 float r = (float)rand();
114 //float r = (float)rand();
/frameworks/av/cmds/stagefright/
H A Drecord.cpp90 char x = (char)((double)rand() / RAND_MAX * 255);
H A Dstagefright.cpp275 shouldSeek = ((double)rand() / RAND_MAX) < 0.1;
285 seekTimeUs = (rand() * (float)durationUs) / RAND_MAX;

Completed in 1922 milliseconds

12