/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
ATResponseParserTest.java | 27 assertEquals(0, p.nextInt()); 32 p.nextInt(); 39 assertEquals(0, p.nextInt()); 40 assertEquals(1, p.nextInt()); 44 assertEquals(0, p.nextInt()); 45 assertEquals(1, p.nextInt()); 49 assertEquals(0, p.nextInt()); 50 assertEquals(1, p.nextInt()); 54 p.nextInt(); 61 assertEquals(0, p.nextInt()); [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
CodePointUtils.java | 66 final int r = Math.abs(random.nextInt()); 88 final int count = 1 + (Math.abs(random.nextInt()) % 5) 89 + (Math.abs(random.nextInt()) % 5) 90 + (Math.abs(random.nextInt()) % 5) 91 + (Math.abs(random.nextInt()) % 5) 92 + (Math.abs(random.nextInt()) % 5) 93 + (Math.abs(random.nextInt()) % 5) 94 + (Math.abs(random.nextInt()) % 5) 95 + (Math.abs(random.nextInt()) % 5); 97 builder.appendCodePoint(codePointSet[Math.abs(random.nextInt()) % codePointSet.length]) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
ProcFileReaderTest.java | 62 assertEquals(1, reader.nextInt()); 63 assertEquals(2, reader.nextInt()); 64 assertEquals(3, reader.nextInt()); 68 assertEquals(4, reader.nextInt()); 70 assertEquals(5, reader.nextInt()); 74 assertEquals(10, reader.nextInt()); 83 assertEquals(1, reader.nextInt()); 84 assertEquals(21, reader.nextInt()); 85 assertEquals(3, reader.nextInt()); 86 assertEquals(41, reader.nextInt()); [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
RandomBenchmark.java | 28 rng.nextInt(); 35 rng.nextInt(); 42 rng.nextInt(); 49 rng.nextInt();
|
/libcore/luni/src/test/java/libcore/java/util/ |
RandomTest.java | 36 r1.nextInt(); 40 r2.nextInt();
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
FakeView.java | 72 mPaint.setTextSize(mRandom.nextInt(40) + 10); 73 mPaint.setColor(0xff000000 + mRandom.nextInt(0x1000000)); 74 int x = mRandom.nextInt(getWidth()) - (getWidth()/2); 75 int y = mRandom.nextInt(getHeight());
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
LatinImeStressTests.java | 36 changeLanguageWithoutWait(locales[random.nextInt(locales.length)]); 37 final int wordCount = random.nextInt(maxWordCountToTypeInEachIteration); 53 changeLanguageWithoutWait(locales[random.nextInt(locales.length)]); 54 final int wordCount = random.nextInt(maxWordCountToTypeInEachIteration);
|
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
NonsenseGenerator.java | 106 if (!isHeadline && mRandom.nextInt(4) == 0) 113 if (mRandom.nextInt(2) == 0) { 128 if (mRandom.nextInt(3) != 0) { 138 if (mRandom.nextInt(3) != 0) { 143 if (mRandom.nextInt(3) == 0) { 148 if (mRandom.nextInt(3) != 0) { 156 return options[mRandom.nextInt(options.length)];
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/ |
MeteringTest.java | 245 square1 = mRandomGenerator.nextInt(6); 246 weight1 = mRandomGenerator.nextInt(100) + 1; 250 weight2 = mRandomGenerator.nextInt(100) + 901; 265 square1 = mRandomGenerator.nextInt(5); 266 weight1 = mRandomGenerator.nextInt(1000) + 1; 269 square2 = mRandomGenerator.nextInt(6 - square1 - 1) + square1 + 1; 284 square1 = mRandomGenerator.nextInt(5); 285 weight1 = mRandomGenerator.nextInt(1000) + 1; 303 square1 = mRandomGenerator.nextInt(4); 304 weight1 = mRandomGenerator.nextInt(1000) + 1 [all...] |
/art/test/102-concurrent-gc/src/ |
Main.java | 36 int index = rnd.nextInt(buckets); 56 int b = rnd.nextInt(a);
|
/external/guava/guava-tests/test/com/google/common/io/ |
RandomAmountInputStream.java | 34 return super.read(b, off, random.nextInt(len) + 1);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
SendToClientBlockingTest.java | 57 int id = random.nextInt(10); 76 int id = random.nextInt(10); 77 int data = random.nextInt();
|
AllocationCopy2DRangeTest.java | 33 int width = random.nextInt(512); 34 int height = random.nextInt(512); 40 inArray[i] = random.nextInt();
|
/libcore/luni/src/main/java/java/util/ |
Random.java | 108 rand = nextInt(); 165 public int nextInt() { 173 public int nextInt(int n) {
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ThreadLocalRandom.java | 115 public int nextInt(int least, int bound) { 118 return nextInt(bound - least) + least; 133 // Divide n by two until small enough for nextInt. On each 147 return offset + nextInt((int) n);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ConcurrentHashMultisetBasherTest.java | 118 int keyIndex = random.nextInt(nKeys); 120 Operation op = operations[random.nextInt(operations.length)]; 123 int delta = random.nextInt(10); 129 int newValue = random.nextInt(3); 135 int newValue = random.nextInt(3); 143 int delta = random.nextInt(6); // [0, 5] 149 int delta = random.nextInt(5); // [0, 4]
|
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabasePerformanceTests.java | 208 int r = random.nextInt(100000); 241 int r = random.nextInt(100000); 279 int r = random.nextInt(100000); 319 int r = random.nextInt(100000); 358 int r = random.nextInt(100000); 398 int r = random.nextInt(100000); 404 int r = random.nextInt(100000); 438 int r = random.nextInt(100000); 444 int r = random.nextInt(100000); 478 int r = random.nextInt(100000) [all...] |
NewDatabasePerformanceTests.java | 117 int r = random.nextInt(100000); 149 int r = random.nextInt(100000); 186 int r = random.nextInt(100000); 225 int r = random.nextInt(100000); 263 int r = random.nextInt(100000); 302 int r = random.nextInt(100000); 308 int r = random.nextInt(100000); 341 int r = random.nextInt(100000); 347 int r = random.nextInt(100000); 380 int r = random.nextInt(100000) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
RandomTest.java | 42 .nextInt() == r2.nextInt()); 151 * @tests java.util.Random#nextInt() 154 // Test for method int java.util.Random.nextInt() 155 int lastNum = r.nextInt(); 159 nextNum = r.nextInt(); 164 assertTrue("Calling nextInt 100 times resulted in same number", 169 * @tests java.util.Random#nextInt(int) 172 // Test for method int java.util.Random.nextInt(int) 174 int lastNum = r.nextInt(range) [all...] |
SortedMapTestBase.java | 51 ref.put(rnd.nextInt(N) * 2, rnd.nextBoolean() ? null : rnd.nextInt(N) * 2); 62 int key = rnd.nextInt(N); 70 int value = rnd.nextInt(N); 91 int key = rnd.nextInt(N); 113 int key = rnd.nextInt(N); 114 int value = rnd.nextInt(N); 125 int key = rnd.nextInt(N); 126 int value = rnd.nextInt(N); 135 mixin.put(rnd.nextInt(N), rnd.nextInt(N)); [all...] |
/external/guava/guava-tests/test/com/google/common/hash/ |
HashTestUtils.java | 95 int value = random.nextInt(); 103 short value = (short) random.nextInt(); 111 char value = (char) random.nextInt(); 119 int value = random.nextInt(); 151 byte[] value = new byte[random.nextInt(128)]; 160 byte[] value = new byte[random.nextInt(128)]; 162 int off = random.nextInt(value.length + 1); 163 int len = random.nextInt(value.length - off + 1); 175 return actions[random.nextInt(actions.length)];
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
RandomScheduler.java | 49 int r = mRand.nextInt(candidates.size());
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
DriverCall.java | 64 ret.index = p.nextInt(); 66 ret.state = stateFromCLCC(p.nextInt()); 68 ret.isVoice = (0 == p.nextInt()); 83 ret.TOA = p.nextInt();
|
/libcore/luni/src/test/java/tests/api/java/util/ |
RandomTest.java | 42 .nextInt() == r2.nextInt()); 151 * java.util.Random#nextInt() 154 // Test for method int java.util.Random.nextInt() 155 int lastNum = r.nextInt(); 159 nextNum = r.nextInt(); 164 assertTrue("Calling nextInt 100 times resulted in same number", 169 * java.util.Random#nextInt(int) 172 // Test for method int java.util.Random.nextInt(int) 174 int lastNum = r.nextInt(range) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
SSLUtilsTest.java | 58 int length = (r.nextInt() % 5) + 10; 61 sb.append(RANDOM_DICT[Math.abs(r.nextInt()) % RANDOM_DICT.length]);
|