/frameworks/av/media/libaudioclient/tests/ |
D | audioclient_serialization_tests.cpp | 94 s[i] = data[rand() % data.size()]; in CreateRandomString() 107 attr.content_type = kContentType[rand() % kContentType.size()]; in fillAudioAttributes() 108 attr.usage = kUsages[rand() % kUsages.size()]; in fillAudioAttributes() 109 attr.source = kInputSources[rand() % kInputSources.size()]; in fillAudioAttributes() 111 attr.flags = static_cast<audio_flags_mask_t>(rand() & 0x3ffd); // exclude AUDIO_FLAG_SECURE in fillAudioAttributes() 113 CreateRandomString((int)rand() % (AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1)).c_str()); in fillAudioAttributes() 132 VolumeGroupAttributes volumeGroupAttr{static_cast<volume_group_t>(rand()), in TEST_F() 133 kStreamtypes[rand() % kStreamtypes.size()], in TEST_F() 137 product_strategy_t psId = static_cast<product_strategy_t>(rand()); in TEST_F() 161 volume_group_t groupId = static_cast<volume_group_t>(rand()); in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BinderHeavyHitterTest.java | 71 final Random rand = new Random(); in generateRandomInput() local 75 container = flatternedHeavyHitters.remove(rand.nextInt(totalHeavyHitters)); in generateRandomInput() 78 container = newContainer(rand.nextInt(maxUid), in generateRandomInput() 79 binders[rand.nextInt(binders.length)].getClass(), in generateRandomInput() 80 rand.nextInt(maxCode), 0.0f); in generateRandomInput() 83 int val = rand.nextInt(total - i); in generateRandomInput() 85 container = flatternedHeavyHitters.remove(rand.nextInt(totalHeavyHitters)); in generateRandomInput() 88 container = newContainer(rand.nextInt(maxUid), in generateRandomInput() 89 binders[rand.nextInt(binders.length)].getClass(), in generateRandomInput() 90 rand.nextInt(maxCode), 0.0f); in generateRandomInput()
|
/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/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | ComplicationLayoutEngineTest.java | 119 final Random rand = new Random(); in testCombineMargins() local 120 final Margins margins1 = new Margins(rand.nextInt(), rand.nextInt(), rand.nextInt(), in testCombineMargins() 121 rand.nextInt()); in testCombineMargins() 122 final Margins margins2 = new Margins(rand.nextInt(), rand.nextInt(), rand.nextInt(), in testCombineMargins() 123 rand.nextInt()); in testCombineMargins() 133 final Random rand = new Random(); in testComplicationMarginPosition() local 134 final int startMargin = rand.nextInt(); in testComplicationMarginPosition() 135 final int topMargin = rand.nextInt(); in testComplicationMarginPosition() 136 final int endMargin = rand.nextInt(); in testComplicationMarginPosition() 137 final int bottomMargin = rand.nextInt(); in testComplicationMarginPosition() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 51 SkColor randomColor = BrightColors[rand() % BrightColorsCount]; in createRandomCharIcon() 62 char charToShow = 'A' + (rand() % 26); in createRandomCharIcon() 97 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem() 110 auto box = rand() % 2 ? filledBox : strokedBox; in createListItem()
|
D | StretchyListViewAnimation.cpp | 96 SkColor randomColor = BrightColors[rand() % BrightColorsCount]; in createRandomCharIcon() 107 char charToShow = 'A' + (rand() % 26); in createRandomCharIcon() 147 textPaint.setColor(rand() % 2 ? Color::Black : Color::Grey_500); in createListItem() 165 auto box = rand() % 2 ? filledBox : strokedBox; in createListItem()
|
/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/base/cmds/interrupter/ |
D | interrupter.c | 44 if (rand() < probability) { in maybe_interrupt()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserPackage.java | 173 final Random rand = new Random(); in maybePurgeRandomEntriesLocked() local 176 final int removeIdx = rand.nextInt(numCached--); in maybePurgeRandomEntriesLocked()
|
/frameworks/hardware/interfaces/sensorservice/utils/ |
D | direct_channel_buffer_reader_test.cc | 322 bool write = rand() % 2 == 0; in TEST_F() 325 int num_writes = rand() % (kMaxReadWritePerRound * 2); in TEST_F() 330 int num_reads = rand() % kMaxReadWritePerRound; in TEST_F()
|
/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/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | ZigZagClassifierTest.java | 380 Random rand = new Random(23); in test_randomOrigins() local 382 setOffsetX(rand.nextInt(2000) - 1000); in test_randomOrigins() 383 setOffsetY(rand.nextInt(2000) - 1000); in test_randomOrigins()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | PictureCaptureDemo.java | 109 final Random rand = new Random(); in onCreate() 126 if (rand.nextInt(20) == 0) { in onCreate()
|
/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/include/media/stagefright/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()
|