/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_math_agree.java | 42 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 …]
|
D | UT_reduce_backward.java | 54 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()
|
D | UT_reduce.java | 151 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/ |
D | UT_math_agree.java | 40 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 …]
|
D | UT_reduce_backward.java | 52 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()
|
D | UT_reduce.java | 149 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/ |
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/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 42 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/ |
D | TestOpenmpSettings.cpp | 69 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/ |
D | MacAddressUtilTest.java | 60 Random rand = new Random(); in testCalculatePersistentMac() local 64 rand.nextBytes(bytes); in testCalculatePersistentMac()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | fill_common.cpp | 194 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/ |
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()
|
/frameworks/av/media/libaaudio/examples/loopback/src/analyzer/ |
D | RandomPulseGenerator.h | 39 return static_cast<uint8_t>(rand()); in onNextByte()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ZigZagClassifierTest.java | 363 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/ |
D | seekTorture.c | 122 SLmillisecond delay = 100 + (rand() & 8191); in main() 125 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main()
|
/frameworks/base/cmds/statsd/src/anomaly/ |
D | subscriber_util.cpp | 39 && ((float)rand() / (float)RAND_MAX) >= subscription.probability_of_informing()) { in triggerSubscribers()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | PictureCaptureDemo.java | 100 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/ |
D | WifiCarrierInfoManager.java | 878 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/ |
D | DistortionMapperComp.py | 23 rawCoords = np.floor(np.random.rand(1000,2) * activeArray)
|
/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()
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | Bench.cpp | 237 size_t ni = rand() * rand(); in runMemoryLatencyTest()
|
/frameworks/wilhelm/tools/permute/ |
D | permute.c | 96 unsigned r = rand() & 0x7FFFFFFF; in split() 231 unsigned r = rand() & 0x7FFFFFFF; in permute()
|