OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:nextInt
(Results
101 - 125
of
231
) sorted by null
1
2
3
4
5
6
7
8
9
10
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
BitwiseStreamsTest.java
101
int x = random.
nextInt
();
145
int x = random.
nextInt
();
/libcore/luni/src/test/java/tests/api/java/math/
OldBigIntegerTest.java
147
bi = BigInteger.valueOf(rand.
nextInt
(1000000)).multiply(
148
BigInteger.valueOf(rand.
nextInt
(1000000)));
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
SparseTableTests.java
72
if (mRandom.
nextInt
(100) < prop) {
73
mRandomIndex.set(i, mRandom.
nextInt
());
/development/samples/ApiDemos/src/com/example/android/apis/view/
GameView.java
423
int edge = mRandom.
nextInt
(4);
427
positionY = mRandom.
nextInt
(getHeight());
431
positionY = mRandom.
nextInt
(getHeight());
434
positionX = mRandom.
nextInt
(getWidth());
438
positionX = mRandom.
nextInt
(getWidth());
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
BackupTestActivity.java
199
editor.putInt(INT_PREF, (random.
nextInt
(100) + 1));
209
editor.putString(STRING_PREF, "Random number: " + (random.
nextInt
(100) + 1));
217
writer.write("Random number: " + (random.
nextInt
(100) + 1));
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
FilterDrawRepresentation.java
359
stroke.mColor = sreader.
nextInt
();
363
stroke.mType = (byte) sreader.
nextInt
();
365
stroke.noPoints = sreader.
nextInt
();
FilterMirrorRepresentation.java
199
Mirror r = Mirror.fromValue((char) reader.
nextInt
());
FilterRotateRepresentation.java
179
Rotation r = Rotation.fromValue(reader.
nextInt
());
/cts/tests/tests/renderscript/src/android/renderscript/cts/
IntrinsicBase.java
97
f[(y * w + x) * vs + v] = (byte)r.
nextInt
(256);
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
MusicRetriever.java
109
return mItems.get(mRandom.
nextInt
(mItems.size()));
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
CharSinkTester.java
168
expected[c] = (char) ('A' + dice.
nextInt
(26));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
PKCS1Encoding.java
176
block[i] = (byte)random.
nextInt
();
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/test/
ProviderBookmarkNodeTest.java
55
return mImageBlobs[mGenerator.
nextInt
(mImageBlobs.length)];
/external/jmdns/src/javax/jmdns/impl/tasks/
Responder.java
83
int delay = (iAmTheOnlyOne && !_in.isTruncated()) ? 0 : DNSConstants.RESPONSE_MIN_WAIT_INTERVAL + JmDNSImpl.getRandom().
nextInt
(DNSConstants.RESPONSE_MAX_WAIT_INTERVAL - DNSConstants.RESPONSE_MIN_WAIT_INTERVAL + 1) - _in.elapseSinceArrival();
/external/jmdns/src/javax/jmdns/impl/tasks/state/
Prober.java
70
timer.schedule(this, JmDNSImpl.getRandom().
nextInt
(1 + DNSConstants.PROBE_WAIT_INTERVAL), DNSConstants.PROBE_WAIT_INTERVAL);
/external/nist-sip/java/gov/nist/core/net/
SslNetworkLayer.java
76
secureRandom.
nextInt
();
/external/smack/src/org/xbill/DNS/
Header.java
147
id = random.
nextInt
(0xffff);
/frameworks/base/core/tests/coretests/src/android/app/
DownloadManagerStressTest.java
79
int size = r.
nextInt
(MAX_FILE_SIZE);
/frameworks/base/core/tests/coretests/src/android/util/
Base64Test.java
355
int l = writeLengths[rng.
nextInt
(writeLengths.length)];
394
int l = writeLengths[rng.
nextInt
(writeLengths.length)];
470
int l = writeLengths[rng.
nextInt
(writeLengths.length)];
513
int l = writeLengths[rng.
nextInt
(writeLengths.length)];
/frameworks/base/services/java/com/android/server/location/
GpsXtraDownloader.java
77
mNextServerIndex = random.
nextInt
(count);
/libcore/luni/src/main/java/libcore/io/
IoUtils.java
143
String candidateName = prefix + TEMPORARY_DIRECTORY_PRNG.
nextInt
();
/packages/apps/Gallery2/src/com/android/gallery3d/util/
Profile.java
81
int firstDelay = 1 + mRandom.
nextInt
(cycleTime);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DictionaryService.java
200
final long alarmTime = now + new Random().
nextInt
(MAX_ALARM_DELAY);
/development/samples/Snake/src/com/example/android/snake/
SnakeView.java
383
int newX = 1 + RNG.
nextInt
(mXTileCount - 2);
384
int newY = 1 + RNG.
nextInt
(mYTileCount - 2);
/packages/apps/Mms/tests/src/com/android/mms/ui/
LongThreadTest.java
136
int wordsInMessage = mRandom.
nextInt
(9) + 1; // up to 10 words in the message
139
msg.append(mWords.get(mRandom.
nextInt
(mWordCount)) + " ");
Completed in 410 milliseconds
1
2
3
4
5
6
7
8
9
10