/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 107 int value = random.nextInt(); in PUT_BYTE() 116 short value = (short) random.nextInt(); in PUT_SHORT() 125 char value = (char) random.nextInt(); in PUT_CHAR() 134 int value = random.nextInt(); in PUT_INT() 170 byte[] value = new byte[random.nextInt(128)]; in PUT_BYTES() 180 byte[] value = new byte[random.nextInt(128)]; in PUT_BYTES_INT_INT() 182 int off = random.nextInt(value.length + 1); in PUT_BYTES_INT_INT() 183 int len = random.nextInt(value.length - off + 1); in PUT_BYTES_INT_INT() 192 byte[] value = new byte[random.nextInt(128)]; in PUT_BYTE_BUFFER() 194 int pos = random.nextInt(value.length + 1); in PUT_BYTE_BUFFER() [all …]
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashTestUtils.java | 107 int value = random.nextInt(); in PUT_BYTE() 116 short value = (short) random.nextInt(); in PUT_SHORT() 125 char value = (char) random.nextInt(); in PUT_CHAR() 134 int value = random.nextInt(); in PUT_INT() 170 byte[] value = new byte[random.nextInt(128)]; in PUT_BYTES() 180 byte[] value = new byte[random.nextInt(128)]; in PUT_BYTES_INT_INT() 182 int off = random.nextInt(value.length + 1); in PUT_BYTES_INT_INT() 183 int len = random.nextInt(value.length - off + 1); in PUT_BYTES_INT_INT() 192 byte[] value = new byte[random.nextInt(128)]; in PUT_BYTE_BUFFER() 194 int pos = random.nextInt(value.length + 1); in PUT_BYTE_BUFFER() [all …]
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
D | SmaliLexerTest.java | 179 int type = random.nextInt(10); in randomString() 184 randomCodepoint = random.nextInt(); in randomString() 190 randomChar = (char)random.nextInt(2^16); in randomString() 194 sb.append((char)random.nextInt(256)); in randomString() 198 sb.append((char)random.nextInt(128)); in randomString()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/internal/ |
D | LockFreeLinkedListAtomicLFStressTest.kt | 43 when (rnd.nextInt(4)) { in <lambda>() 45 val list = lists[rnd.nextInt(nLists)] in <lambda>() 53 val list = lists[rnd.nextInt(nLists)] in <lambda>() 61 val list = lists[rnd.nextInt(nLists)] in <lambda>() 67 val idx1 = rnd.nextInt(nLists - 1) in <lambda>() 68 val idx2 = idx1 + 1 + rnd.nextInt(nLists - idx1 - 1) in <lambda>() 87 val idx1 = rnd.nextInt(nLists - 1) in <lambda>() 88 val idx2 = idx1 + 1 + rnd.nextInt(nLists - idx1 - 1) in <lambda>()
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | HtmlSanitizerFuzzerTest.java | 80 for (int fuzz = 1 + rnd.nextInt(25); --fuzz >= 0;) { in testFuzzHtmlParser() 82 fuzzyHtml0[rnd.nextInt(length)] = (char) rnd.nextInt(0x10000); in testFuzzHtmlParser() 85 int s0 = rnd.nextInt(length - 1); in testFuzzHtmlParser() 87 int e0 = s0 + (int) (rnd.nextInt(length - s0) * d); in testFuzzHtmlParser() 90 int s1 = rnd.nextInt(length - 1); in testFuzzHtmlParser() 92 int e1 = s1 + (int) (rnd.nextInt(length - s1) * d); in testFuzzHtmlParser()
|
D | HtmlPolicyBuilderFuzzerTest.java | 97 int r = rnd.nextInt(3); in testFuzzedOutput() 102 for (int k = rnd.nextInt(4); --k >= 0;) { in testFuzzedOutput() 163 return choices[rnd.nextInt(choices.length)]; in pick() 171 start = rnd.nextInt(end - 1); in pickChunk() 174 end = start + rnd.nextInt(end - start); in pickChunk()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ConcurrentHashMultisetBasherTest.java | 120 int keyIndex = random.nextInt(nKeys); in call() 122 Operation op = operations[random.nextInt(operations.length)]; in call() 126 int delta = random.nextInt(10); in call() 133 int newValue = random.nextInt(3); in call() 140 int newValue = random.nextInt(3); in call() 149 int delta = random.nextInt(6); // [0, 5] in call() 156 int delta = random.nextInt(5); // [0, 4] in call()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | ConcurrentHashMultisetBasherTest.java | 120 int keyIndex = random.nextInt(nKeys); in call() 122 Operation op = operations[random.nextInt(operations.length)]; in call() 126 int delta = random.nextInt(10); in call() 133 int newValue = random.nextInt(3); in call() 140 int newValue = random.nextInt(3); in call() 149 int delta = random.nextInt(6); // [0, 5] in call() 156 int delta = random.nextInt(5); // [0, 4] in call()
|
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/ |
D | RandomHelper.java | 41 int offset = random.nextInt(26); in randomString() 48 int nextInt(int n) { in nextInt() method in RandomHelper 49 return random.nextInt(n); in nextInt() 59 currentNodeLength = random.nextInt(MAX_NODE_LENGTH) + 1; in buildRandomFileName()
|
D | AbbreviatorTest.java | 101 int fixedLen = rh.nextInt(MAX_RANDOM_FIXED_LEN); in testTheories() 103 int averageLen = rh.nextInt(MAX_RANDOM_AVG_LEN) + 3; in testTheories() 106 int maxLen = rh.nextInt(MAX_RANDOM_MAX_LEN) + fixedLen; in testTheories() 111 int targetLen = (maxLen / 2) + rh.nextInt(maxLen / 2) + 1; in testTheories()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | RandomAdaptor.java | 142 public int nextInt() { in nextInt() method in RandomAdaptor 143 return randomGenerator.nextInt(); in nextInt() 158 public int nextInt(int n) { in nextInt() method in RandomAdaptor 159 return randomGenerator.nextInt(n); in nextInt()
|
D | AbstractRandomGenerator.java | 109 int randInt = nextInt(); in nextBytes() 136 public int nextInt() { in nextInt() method in AbstractRandomGenerator 156 public int nextInt(int n) { in nextInt() method in AbstractRandomGenerator
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/crypto/ |
D | AesFlushingCipherTest.java | 102 int bytes = (1 + random.nextInt(50)) * 16; in aligned() 115 int bytes = (1 + random.nextInt(50)) * 16; in aligned() 136 int bytes = 1 + random.nextInt(4095); in unAligned() 148 int bytes = 1 + random.nextInt(4095); in unAligned() 168 int bytes = 1 + random.nextInt(4095); in midJoin() 180 offset = random.nextInt(4096); in midJoin() 187 int bytes = 1 + random.nextInt(4095); in midJoin()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/ |
D | LayerParser.java | 106 layerId = reader.nextInt(); in parse() 112 int layerTypeInt = reader.nextInt(); in parse() 120 parentId = reader.nextInt(); in parse() 123 solidWidth = (int) (reader.nextInt() * Utils.dpScale()); in parse() 126 solidHeight = (int) (reader.nextInt() * Utils.dpScale()); in parse() 135 matteType = Layer.MatteType.values()[reader.nextInt()]; in parse() 210 preCompWidth = (int) (reader.nextInt() * Utils.dpScale()); in parse() 213 preCompHeight = (int) (reader.nextInt() * Utils.dpScale()); in parse()
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | GapStringTest.java | 25 int randomPos = random.nextInt(b.length() + 1); in TestCorrectness() 27 switch (random.nextInt(4)) { in TestCorrectness() 29 int randomEnd = randomPos + random.nextInt(b.length() - randomPos + 1); in TestCorrectness() 35 char randomChar = (char) ('a' + random.nextInt(26)); in TestCorrectness() 148 for (int i = random.nextInt(maxLength); i >= 0; --i) { in getRandomString() 149 result.append((char) ('a' + random.nextInt(26))); in getRandomString()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/ |
D | BlockingCoroutineDispatcherTerminationStressTest.kt | 30 Thread.sleep(rnd.nextInt(30).toLong()) in testTermination() 31 repeat(rnd.nextInt(5) + 1) { in testTermination() 33 Thread.sleep(rnd.nextInt(5).toLong()) in testTermination()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/ |
D | RawStringWriteTest.java | 132 int bits = rnd.nextInt(13); in generateStrings() 150 switch (rnd.nextInt(3)) { in generateString() 152 i = 2048 + rnd.nextInt(16383); in generateString() 155 i = 128 + rnd.nextInt(1024); in generateString() 158 i = rnd.nextInt(192); in generateString()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathBenchmarking.java | 96 int digits = RANDOM_SOURCE.nextInt(numBits); in randomNonNegativeBigInteger() 138 result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1)); in randomDouble() 144 return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1); in randomExponent()
|
/external/guava/android/guava-tests/test/com/google/common/math/ |
D | MathBenchmarking.java | 96 int digits = RANDOM_SOURCE.nextInt(numBits); in randomNonNegativeBigInteger() 138 result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1)); in randomDouble() 144 return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1); in randomExponent()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 59 int s = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 60 int t = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 61 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 62 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 137 int s = rand.nextInt(0x7fff) % source.length(); in TestCompare() 138 int t = rand.nextInt(0x7fff) % source.length(); in TestCompare() 139 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() 140 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare()
|
D | CollationFrozenMonkeyTest.java | 74 int s = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 75 int t = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 76 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 77 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 165 int s = rand.nextInt(0x7fff) % source.length(); in TestCompare() 166 int t = rand.nextInt(0x7fff) % source.length(); in TestCompare() 167 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() 168 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 56 int s = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 57 int t = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 58 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 59 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 134 int s = rand.nextInt(0x7fff) % source.length(); in TestCompare() 135 int t = rand.nextInt(0x7fff) % source.length(); in TestCompare() 136 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() 137 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare()
|
D | CollationFrozenMonkeyTest.java | 71 int s = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 72 int t = rand.nextInt(0x7fff) % source.length(); in TestCollationKey() 73 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 74 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() 162 int s = rand.nextInt(0x7fff) % source.length(); in TestCompare() 163 int t = rand.nextInt(0x7fff) % source.length(); in TestCompare() 164 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() 165 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare()
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | MessageDigestConsistencyTest.kt | 74 val size = random.nextInt(1000) + 1 // size must be >= 1. in test() 76 val offset = random.nextInt(size) in test() 77 val byteCount = random.nextInt(size - offset) in test()
|
/external/guava/guava-tests/test/com/google/common/graph/ |
D | GraphMutationTest.java | 60 graph.addNode(gen.nextInt(NODE_POOL_SIZE)); in testGraphMutation() 73 int numEdgesToRemove = gen.nextInt(NUM_EDGES); in testGraphMutation() 84 int numNodesToRemove = gen.nextInt(NUM_NODES); in testGraphMutation() 117 return list.get(gen.nextInt(list.size())); in getRandomElement()
|