/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_math_agree.java | 28 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/ |
D | UT_math_agree.java | 28 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 …]
|
D | UT_reduce_backward.java | 46 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()
|
D | UT_reduce.java | 46 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/ |
D | UT_math_agree.java | 28 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 …]
|
D | UT_reduce_backward.java | 46 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()
|
D | UT_reduce.java | 125 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/ |
D | ListViewAnimation.cpp | 90 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/ |
D | TestModel.java | 46 Random rand = new Random(); in update() local 57 row.add(Document.COLUMN_SIZE, rand.nextInt()); in update()
|
D | ModelTest.java | 81 Random rand = new Random(); in setUp() local 92 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | fill_common.cpp | 194 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/ |
D | BNNMTest.java | 89 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/ |
D | multiplay.c | 217 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()
|
D | multithread.c | 83 usleep(1000 + (rand() & 0xFFF)); in thread_start() 133 int r = rand(); in main()
|
D | monkey.c | 142 unsigned us = 1000 + (rand() & 0xFFFFF); in actionSleep() 273 unsigned choice = (rand() & 0x7FFFFFFF) % totalProbability; in main()
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 121 SLmillisecond delay = 100 + (rand() & 8191); in main() 124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main()
|
/frameworks/base/cmds/interrupter/ |
D | interrupter.c | 44 if (rand() < probability) { in maybe_interrupt()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 963 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/ |
D | System.inc | 41 return ::rand();
|
/frameworks/av/media/libstagefright/rtsp/ |
D | VideoSource.h | 70 char x = (char)((double)rand() / RAND_MAX * 255); in read()
|
D | ARTPWriter.cpp | 44 return ((double)rand() * limit) / RAND_MAX; in UniformRand() 124 mSourceID = rand(); in start() 126 mRTPTimeBase = rand(); in start()
|
D | MyTransmitter.h | 50 return ((double)rand() * limit) / RAND_MAX; in uniformRand() 86 mSourceID(rand()), in MyTransmitter() 88 mRTPTimeBase(rand()), in MyTransmitter()
|
/frameworks/wilhelm/tools/permute/ |
D | permute.c | 96 unsigned r = rand() & 0x7FFFFFFF; in split() 231 unsigned r = rand() & 0x7FFFFFFF; in permute()
|
/frameworks/rs/tests/cppbasic-getpointer/ |
D | compute.cpp | 57 input[i * inputStride + j] = rand(); in test_compute()
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
D | stochastic_linear_ranker.cpp | 89 ((rand()/RAND_MAX) < acceptence_probability_)) { in UpdateClassifier()
|