Home
last modified time | relevance | path

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

123

/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_math_agree.java42 private Random rand; field in UT_math_agree
46 rand = new Random(); in UT_math_agree()
129 fv[i] = rand.nextFloat(); in randvec_float()
135 rand.nextBytes(cv); in randvec_char()
142 ucv[i] = (short) rand.nextInt(0x1 << 8); in randvec_uchar()
149 sv[i] = (short) rand.nextInt(0x1 << 16); in randvec_short()
156 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort()
163 iv[i] = rand.nextInt(); in randvec_int()
170 uiv[i] = (long) rand.nextInt() - (long) Integer.MIN_VALUE; in randvec_uint()
177 lv[i] = rand.nextLong(); in randvec_long()
[all …]
DUT_reduce_backward.java54 Random rand = new Random(seed); in createInputArrayFloat() local
57 array[i] = rand.nextFloat(); in createInputArrayFloat()
62 Random rand = new Random(seed); in createInputArrayInt() local
65 array[i] = rand.nextInt(); in createInputArrayInt()
70 Random rand = new Random(seed); in createInputArrayInt() local
73 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
DUT_reduce.java151 private float[] createInputArrayFloat(int len, Random rand) { in createInputArrayFloat() argument
154 final float val = rand.nextFloat(); in createInputArrayFloat()
155 array[i] = rand.nextBoolean() ? val : -val; in createInputArrayFloat()
165 Random rand = new Random(seed); in createInputArrayFloatWithInfs() local
166 float[] array = createInputArrayFloat(len, rand); in createInputArrayFloatWithInfs()
168 …array[rand.nextInt(len)] = (rand.nextBoolean() ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY… in createInputArrayFloatWithInfs()
173 Random rand = new Random(seed); in createInputArrayInt() local
176 array[i] = rand.nextInt(); in createInputArrayInt()
181 Random rand = new Random(seed); in createInputArrayInt() local
184 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_math_agree.java40 private Random rand; field in UT_math_agree
44 rand = new Random(); in UT_math_agree()
127 fv[i] = rand.nextFloat(); in randvec_float()
133 rand.nextBytes(cv); in randvec_char()
140 ucv[i] = (short) rand.nextInt(0x1 << 8); in randvec_uchar()
147 sv[i] = (short) rand.nextInt(0x1 << 16); in randvec_short()
154 usv[i] = rand.nextInt(0x1 << 16); in randvec_ushort()
161 iv[i] = rand.nextInt(); in randvec_int()
168 uiv[i] = (long) rand.nextInt() - (long) Integer.MIN_VALUE; in randvec_uint()
175 lv[i] = rand.nextLong(); in randvec_long()
[all …]
DUT_reduce_backward.java52 Random rand = new Random(seed); in createInputArrayFloat() local
55 array[i] = rand.nextFloat(); in createInputArrayFloat()
60 Random rand = new Random(seed); in createInputArrayInt() local
63 array[i] = rand.nextInt(); in createInputArrayInt()
68 Random rand = new Random(seed); in createInputArrayInt() local
71 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
DUT_reduce.java149 private float[] createInputArrayFloat(int len, Random rand) { in createInputArrayFloat() argument
152 final float val = rand.nextFloat(); in createInputArrayFloat()
153 array[i] = rand.nextBoolean() ? val : -val; in createInputArrayFloat()
163 Random rand = new Random(seed); in createInputArrayFloatWithInfs() local
164 float[] array = createInputArrayFloat(len, rand); in createInputArrayFloatWithInfs()
166 …array[rand.nextInt(len)] = (rand.nextBoolean() ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY… in createInputArrayFloatWithInfs()
171 Random rand = new Random(seed); in createInputArrayInt() local
174 array[i] = rand.nextInt(); in createInputArrayInt()
179 Random rand = new Random(seed); in createInputArrayInt() local
182 array[i] = rand.nextInt(eltRange); in createInputArrayInt()
/frameworks/rs/tests/java_api/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/base/libs/hwui/tests/common/scenes/
DListViewAnimation.cpp42 SkColor randomColor = BrightColors[rand() % BrightColorsCount]; in createRandomCharIcon()
53 char charToShow = 'A' + (rand() % 26); in createRandomCharIcon()
88 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem()
101 auto box = rand() % 2 ? filledBox : strokedBox; in createListItem()
/frameworks/ml/nn/runtime/test/
DTestOpenmpSettings.cpp69 std::uniform_int_distribution<> rand(1, 20); in TEST_F() local
71 const int sleepFor = rand(randGen); in TEST_F()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMacAddressUtilTest.java60 Random rand = new Random(); in testCalculatePersistentMac() local
64 rand.nextBytes(bytes); in testCalculatePersistentMac()
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp194 float x = ((float)rand()) / (float)RAND_MAX; in randUniform()
195 float y = ((float)rand()) / (float)RAND_MAX; in randUniform()
196 float z = ((float)rand()) / (float)RAND_MAX; in randUniform()
197 float w = ((float)rand()) / (float)RAND_MAX; in randUniform()
/frameworks/rs/tests/java_api/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()
/frameworks/av/media/libaaudio/examples/loopback/src/analyzer/
DRandomPulseGenerator.h39 return static_cast<uint8_t>(rand()); in onNextByte()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DZigZagClassifierTest.java363 Random rand = new Random(23); in test_randomOrigins() local
365 setOffsetX(rand.nextInt(2000) - 1000); in test_randomOrigins()
366 setOffsetY(rand.nextInt(2000) - 1000); in test_randomOrigins()
/frameworks/wilhelm/tests/listening/
DseekTorture.c122 SLmillisecond delay = 100 + (rand() & 8191); in main()
125 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main()
/frameworks/base/cmds/statsd/src/anomaly/
Dsubscriber_util.cpp39 && ((float)rand() / (float)RAND_MAX) >= subscription.probability_of_informing()) { in triggerSubscribers()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPictureCaptureDemo.java100 final Random rand = new Random(); in onCreate()
103 if (rand.nextInt(20) == 0) { in onCreate()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java878 byte[] rand = null; in getGsmAuthResponseWithLength()
880 rand = parseHex(challenge); in getGsmAuthResponseWithLength()
886 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmAuthResponseWithLength()
951 byte[] rand = null; in getGsmSimpleSimNoLengthAuthResponse()
953 rand = parseHexWithoutLength(challenge); in getGsmSimpleSimNoLengthAuthResponse()
959 String base64Challenge = Base64.encodeToString(rand, Base64.NO_WRAP); in getGsmSimpleSimNoLengthAuthResponse()
1028 byte[] rand = null; in get3GAuthResponse()
1034 rand = parseHex(requestData.data[0]); in get3GAuthResponse()
1044 if (rand != null && authn != null) { in get3GAuthResponse()
1045 String base64Challenge = Base64.encodeToString(concatHex(rand, authn), Base64.NO_WRAP); in get3GAuthResponse()
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperComp.py23 rawCoords = np.floor(np.random.rand(1000,2) * activeArray)
/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()
/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.cpp237 size_t ni = rand() * rand(); in runMemoryLatencyTest()
/frameworks/wilhelm/tools/permute/
Dpermute.c96 unsigned r = rand() & 0x7FFFFFFF; in split()
231 unsigned r = rand() & 0x7FFFFFFF; in permute()

123