Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_math_agree.java28 private Random rand; field in UT_math_agree
33 rand = new Random(); in UT_math_agree()
102 fv[i] = rand.nextFloat(); in randvec_float()
107 rand.nextBytes(cv); in randvec_char()
113 ucv[i] = (short)rand.nextInt(0x1 << 8); in randvec_uchar()
119 sv[i] = (short)rand.nextInt(0x1 << 16); in randvec_short()
125 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort()
131 iv[i] = rand.nextInt(); in randvec_int()
137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE; in randvec_uint()
143 lv[i] = rand.nextLong(); in randvec_long()
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_math_agree.java28 private Random rand; field in UT_math_agree
33 rand = new Random(); in UT_math_agree()
102 fv[i] = rand.nextFloat(); in randvec_float()
107 rand.nextBytes(cv); in randvec_char()
113 ucv[i] = (short)rand.nextInt(0x1 << 8); in randvec_uchar()
119 sv[i] = (short)rand.nextInt(0x1 << 16); in randvec_short()
125 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort()
131 iv[i] = rand.nextInt(); in randvec_int()
137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE; in randvec_uint()
143 lv[i] = rand.nextLong(); in randvec_long()
[all …]
DUT_reduce_backward.java46 Random rand = new Random(seed); in createInputArrayFloat() local
49 array[i] = rand.nextFloat(); in createInputArrayFloat()
54 Random rand = new Random(seed); in createInputArrayInt() local
57 array[i] = rand.nextInt(); in createInputArrayInt()
62 Random rand = new Random(seed); in createInputArrayInt() local
65 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
DUT_reduce.java46 Random rand = new Random(seed); in createInputArrayFloat() local
49 array[i] = rand.nextFloat(); in createInputArrayFloat()
54 Random rand = new Random(seed); in createInputArrayInt() local
57 array[i] = rand.nextInt(); in createInputArrayInt()
62 Random rand = new Random(seed); in createInputArrayInt() local
65 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_math_agree.java28 private Random rand; field in UT_math_agree
33 rand = new Random(); in UT_math_agree()
102 fv[i] = rand.nextFloat(); in randvec_float()
107 rand.nextBytes(cv); in randvec_char()
113 ucv[i] = (short)rand.nextInt(0x1 << 8); in randvec_uchar()
119 sv[i] = (short)rand.nextInt(0x1 << 16); in randvec_short()
125 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort()
131 iv[i] = rand.nextInt(); in randvec_int()
137 uiv[i] = (long)rand.nextInt() - (long)Integer.MIN_VALUE; in randvec_uint()
143 lv[i] = rand.nextLong(); in randvec_long()
[all …]
DUT_reduce_backward.java46 Random rand = new Random(seed); in createInputArrayFloat() local
49 array[i] = rand.nextFloat(); in createInputArrayFloat()
54 Random rand = new Random(seed); in createInputArrayInt() local
57 array[i] = rand.nextInt(); in createInputArrayInt()
62 Random rand = new Random(seed); in createInputArrayInt() local
65 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
DUT_reduce.java125 Random rand = new Random(seed); in createInputArrayFloat() local
128 array[i] = rand.nextFloat(); in createInputArrayFloat()
133 Random rand = new Random(seed); in createInputArrayInt() local
136 array[i] = rand.nextInt(); in createInputArrayInt()
141 Random rand = new Random(seed); in createInputArrayInt() local
144 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
/frameworks/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp90 SkColor randomColor = BrightColors[rand() % BrightColorsCount]; in createRandomCharIcon()
99 char charToShow = 'A' + (rand() % 26); in createRandomCharIcon()
134 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createCard()
146 const SkBitmap& boxBitmap = rand() % 2 ? filledBox : strokedBox; in createCard()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DTestModel.java46 Random rand = new Random(); in update() local
57 row.add(Document.COLUMN_SIZE, rand.nextInt()); in update()
DModelTest.java81 Random rand = new Random(); in setUp() local
92 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
/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/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBNNMTest.java89 Random rand = new Random(); in addByteNoise() local
91 if (rand.nextFloat() < frequency) { in addByteNoise()
93 final float direction = rand.nextFloat(); in addByteNoise()
94 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise()
/frameworks/wilhelm/tests/sandbox/
Dmultiplay.c217 SLmillisecond delay = 100 + (rand() & 1023); in main()
220 i = (rand() & 0x7FFFFFFF) % numPlayers; in main()
256 SLmillibel volumeLevel = -((rand() & 0x7FFFFFFF) % ((SL_MILLIBEL_MIN + 1) / 10)); in main()
262 SLpermille stereoPosition = ((rand() & 0x7FFFFFFF) % 2001) - 1000; in main()
Dmultithread.c83 usleep(1000 + (rand() & 0xFFF)); in thread_start()
133 int r = rand(); in main()
Dmonkey.c142 unsigned us = 1000 + (rand() & 0xFFFFF); in actionSleep()
273 unsigned choice = (rand() & 0x7FFFFFFF) % totalProbability; in main()
/frameworks/wilhelm/tests/listening/
DseekTorture.c121 SLmillisecond delay = 100 + (rand() & 8191); in main()
124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main()
/frameworks/base/cmds/interrupter/
Dinterrupter.c44 if (rand() < probability) { in maybe_interrupt()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java963 Random rand = new Random(WifiTestUtil.getTestMethod().hashCode() + seed); in getUniqueRandomNumberValues() local
966 int num = rand.nextInt(maxValue); in getUniqueRandomNumberValues()
968 num = rand.nextInt(maxValue); in getUniqueRandomNumberValues()
998 Random rand = new Random(WifiTestUtil.getTestMethod().hashCode()); in testDisconnectedPnoNetworkListCreation() local
1012 config.priority = rand.nextInt(10000); in testDisconnectedPnoNetworkListCreation()
1059 config.numAssociation = rand.nextInt(10000); in testDisconnectedPnoNetworkListCreation()
1060 config.priority = rand.nextInt(10000); in testDisconnectedPnoNetworkListCreation()
1084 Random rand = new Random(WifiTestUtil.getTestMethod().hashCode()); in testConnectedPnoNetworkListCreation() local
1096 config.numAssociation = rand.nextInt(10000); in testConnectedPnoNetworkListCreation()
1097 config.priority = rand.nextInt(10000); in testConnectedPnoNetworkListCreation()
[all …]
/frameworks/compile/mclinker/lib/Support/Windows/
DSystem.inc41 return ::rand();
/frameworks/av/media/libstagefright/rtsp/
DVideoSource.h70 char x = (char)((double)rand() / RAND_MAX * 255); in read()
DARTPWriter.cpp44 return ((double)rand() * limit) / RAND_MAX; in UniformRand()
124 mSourceID = rand(); in start()
126 mRTPTimeBase = rand(); in start()
DMyTransmitter.h50 return ((double)rand() * limit) / RAND_MAX; in uniformRand()
86 mSourceID(rand()), in MyTransmitter()
88 mRTPTimeBase(rand()), in MyTransmitter()
/frameworks/wilhelm/tools/permute/
Dpermute.c96 unsigned r = rand() & 0x7FFFFFFF; in split()
231 unsigned r = rand() & 0x7FFFFFFF; in permute()
/frameworks/rs/tests/cppbasic-getpointer/
Dcompute.cpp57 input[i * inputStride + j] = rand(); in test_compute()
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/
Dstochastic_linear_ranker.cpp89 ((rand()/RAND_MAX) < acceptence_probability_)) { in UpdateClassifier()

12