Home
last modified time | relevance | path

Searched refs:RAND_MAX (Results 1 – 17 of 17) sorted by relevance

/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp194 float x = ((float)rand()) / RAND_MAX; in randUniform()
195 float y = ((float)rand()) / RAND_MAX; in randUniform()
196 float z = ((float)rand()) / RAND_MAX; in randUniform()
197 float w = ((float)rand()) / RAND_MAX; in randUniform()
/frameworks/base/cmds/interrupter/
Dinterrupter.c41 static int probability = PROBABILITY * RAND_MAX;
/frameworks/av/services/oboeservice/
DTimestampScheduler.cpp41 sleepTime += (int64_t)(random() * mBurstPeriod / RAND_MAX); in nextAbsoluteTime()
/frameworks/av/media/libstagefright/rtsp/
DVideoSource.h70 char x = (char)((double)rand() / RAND_MAX * 255); in read()
DARTPSource.cpp51 mNextFIRSeqNo((rand() * 256.0) / RAND_MAX), in ARTPSource()
DARTPConnection.cpp121 unsigned start = (unsigned)((rand()* 1000ll)/RAND_MAX) + 15550; in MakePortPair()
DARTPWriter.cpp44 return ((double)rand() * limit) / RAND_MAX; in UniformRand()
DMyTransmitter.h50 return ((double)rand() * limit) / RAND_MAX; in uniformRand()
/frameworks/rs/cpu_ref/
DrsCpuRuntimeMath.cpp102 r /= RAND_MAX; in SC_randf2()
/frameworks/av/cmds/stagefright/
Drecord.cpp92 char x = (char)((double)rand() / RAND_MAX * 255);
Dstagefright.cpp282 shouldSeek = ((double)rand() / RAND_MAX) < 0.1; in playSource()
292 seekTimeUs = (rand() * (float)durationUs) / RAND_MAX; in playSource()
/frameworks/rs/driver/runtime/
Drs_core.c156 #define RAND_MAX 0x7fffffff macro
/frameworks/base/libs/hwui/
DSpotShadow.cpp1093 float randomX = rand() / float(RAND_MAX); in testIntersection()
1094 float randomY = rand() / float(RAND_MAX); in testIntersection()
/frameworks/av/media/libstagefright/wifi-display/rtp/
DRTPSender.cpp73 return (int32_t)(((float)(kRange + 1) * rand()) / RAND_MAX) * 2 + 1024; in PickRandomRTPPort()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp575 return (double)rand() / RAND_MAX; in uniform_rand()
/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp160 mSelectedIndex = (rand() * mMediaItems.size()) / RAND_MAX; in pickRandomMediaItems()
DLiveSession.cpp1185 return (double)rand() / RAND_MAX;